By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Crystal Reports Assigning Report Source

P: n/a
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

Mar 25 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Bernie,

Did you look for this already on our website.

http://www.vb-tips.com/default.aspx?...1-e779bfb411c5

I hope this helps,

Cor
"Bernie Hunt" <bh***@optonline.net> schreef in bericht
news:Xn*******************************@207.46.248. 16...
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

Mar 25 '06 #2

P: n/a
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
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in
news:uS**************@tk2msftngp13.phx.gbl:
Bernie,

Did you look for this already on our website.

http://www.vb-tips.com/default.aspx?...-8a81-e779bfb4
11c5

I hope this helps,

Cor
"Bernie Hunt" <bh***@optonline.net> schreef in bericht
news:Xn*******************************@207.46.248. 16...
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



Mar 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.