Codeless Posted February 7, 2005 Posted February 7, 2005 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. Quote Codeless ...it just goes on and on.
Codeless Posted February 7, 2005 Author Posted February 7, 2005 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. Quote Codeless ...it just goes on and on.
Administrators PlausiblyDamp Posted February 7, 2005 Administrators Posted February 7, 2005 IIRC you set the reports record source property to the dataset / datatable Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.