Crystal Reports Assigning Report Source

  • Thread starter Thread starter Bernie Hunt
  • Start date Start date
B

Bernie Hunt

I'm having trouble assigning the reportsource value at run time. I'm
running a test setup, one form with only a Crystal Viewer, called cvwMail.
My report is called CustomersBasic.rpt and it draws directly from the
TradeWinds.MDB test database.

If I use
Me.cvwMain.ReportSource = "J:\Learning\CMP 214\Crystal Test\CrystalTest
\CustomersBasic.rpt
to point to the file directly it works.

If I use
Me.cvwMain.ReportSource = New CustomersBasic
to instantiate a new object of the report I get an error of "Invalid Report
Source".

All the references on usenet say this should work, so I must be missing
something silly. Can anyone see what is wrong?

Thanks,
Bernie
 
Yes I did. That was what I started with. The error is still "Invalid
Report Source". I'm thinking it may be something in my developement
environment.

I'm going to have to figure out how to interrogate the
CrystalReportViewer.ReportSource to see the difference between it working
with a hard coded report location vs a setting the location on the fly.

Bernie
 

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

Back
Top