471,356 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Getting dataset to a sub-report

Hello,
I needed to add a subreport to an existing report I've created in
VB.NET/Crystal Reports.

Pasted below is the code I use to open my existing report. This works fine.
How do I pass a 2nd dataset, used to populate the sub-report?
TIA!
amber

Protected Overrides Sub onload(ByVal e As System.EventArgs)
MyBase.OnLoad(e)
_rpt = New RepFormC
_rpt.SetDataSource(_ds)
Me.ReportViewer.ReportSource = _rpt
_rpt.PrintOptions.PaperOrientation =
CrystalDecisions.[Shared].PaperOrientation.Landscape
End Sub
Jul 21 '05 #1
0 1037

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nathan Sokalski | last post: by
1 post views Thread by Manuel Canas | last post: by
1 post views Thread by momo | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.