Crystal Subreports

T

tg

I am displaying a report in a CrystalReportViewer. I use the code shown
below. That part works fine. However, I cannot figure out how to display
the report once I've added a subreport to it. I get a Crystal report error
when I try. Can someone please help?

thanks
tg

------------
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Rpt As New CM
Dim Ds As New DataSet
Dim Ds2 As New DataSet

OracleDataAdapter1.Fill(Ds)
'OracleDataAdapter2.Fill(Ds2)

Rpt.SetDataSource(Ds)
'Rpt2.SetDataSource(Ds2)

CrystalReportViewer1.ReportSource = Rpt
OracleConnection1.Close()
End Sub
 
G

Guest

If you are adding a subreport does it point to the right database ? (e.g. try
verify database from the subreport). Also if it needs any parameters then
this needs to be added to the code.

I've used a Crystal Report with 7 subreports and all works okay.

What's the error message you get ?
 
G

guilloryt

Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)
 
G

guilloryt

Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)
 
G

guilloryt

Query Engine Error:
'C:\DOCUME~1\..........\temp_lots of numbers_.rpt'
to paraphrase the path ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top