Adressing an Embedded Crystal Report from VB code?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

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
 
Hi Lars!

Add the reports to your project and call them this way:


Dim crReportDocument As New <ReportName>
CrystalReportViewer1.ReportSource = crReportDocument

Kind Regards
Jorge
 
Back
Top