Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  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

 
Previous Posts
    - How to run only once
    - OutOfMemoryException
    - How to transfer values bewteen Integer and UInt32 ...
    - How to transfer values between Integer and UInt32 ...
    - How to set file persmissions with WMI using a UNC ...
    - Week date
    - How to set a dataset date value to null
    - If only MSDN examples would actually work!
    - How to use managed code in Office 2003
    - Click Event not fired

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland