How to adress an Embedded Crystal Report from VB code?
(Thursday, January 27, 2005)
Found the following interesting discussion in the Newsgroups:
Adressing an Embedded Crystal Report from VB code? by:Lars Netzel
| I'm asking here since I hardly ever get answers on CR questions in the CR NewGroup. Although this question is also posted there.
I have a working solution with Crystal Reports but the reports are external, that means I address them as filenames when I open them in the Reportviewer. I need to change this so they are all a part of the EXE file, (embedded) and I have no idea what to do... I have embedded the reports in the exe, I can see that on the filesize.. but it still askes for the files that are external.. (off course, sincve I haven't changed any code yet)
What do I do?
/Lars Netzel
| | | Reply: by:Jorge
| | | Hi Lars!
Add the reports to your project and call them this way: Dim crReportDocument As New <ReportName> CrystalReportViewer1.ReportSource = crReportDocument
Kind Regards Jorge
|
|
0 Comments:
Post a Comment