Loading an embedded report

Codeless

Well-known member
Joined
Jan 24, 2003
Messages
59
Location
Great NW
I am using VS.NET to display a crystal report. I want to load the embedded report without specifying an actual physical address (i.e. "C:\myreport.rpt"). If the report is embedded in my project when its deployed, shouldnt I be able to just refer to the report like: oRpt.Load("rptOrderForm.rpt")? Or do I always have to specify a physical address?

Ive searched for examples high and low and cant come up with anything. Seems like the CrystalDesicisions support website is almost useless.
 
Ok, figured that out. I just need to do it like this:
Me.CrystalReportViewer1.ReportSource = New rptOrderForm

But now how do I load my data to that report? And why does it ask me for a username/password and where the server is located. Its an ADO.NET dataset that really doesnt have a database back-end. It simply will save an xml file and dispose of the dataset.
 
Back
Top