Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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, shouldn't I be able to just refer to the report like: oRpt.Load("rptOrderForm.rpt")? Or do I always have to specify a physical address?

 

I've searched for examples high and low and can't come up with anything. Seems like the CrystalDesicisions support website is almost useless.

Codeless

...it just goes on and on.

Posted

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 doesn't have a database back-end. It simply will save an xml file and dispose of the dataset.

Codeless

...it just goes on and on.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...