CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 1999
    Location
    Chile
    Posts
    177

    How to use Crystal Reports without using Crystal Report control

    Hi..

    I want to program a DLL for using Crystal Reports. Since this isn't a Form, I couldn't use the Crystal Reports control... how can I do it then?

    Thanks
    Jaime


  2. #2
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: How to use Crystal Reports without using Crystal Report control

    If you purchase Crystal Reports developer suite (or whatever it's called), you get besides the CR report designer, a bunch of dll's (CR API) with which you can manupilate/show a report without using the ocx. I've used it and it works pretty easy.

    Crazy D @ Work :-)

  3. #3
    Guest

    Re: How to use Crystal Reports without using Crystal Report control

    With your Crystal Reports runtime, you get the Crystal Report Print Engine (CRPE32.dll), which contains all the functions needing to show/print the crystal reports. You can use this dll without buying the Crystal Reports Developer Suite.
    eg., OpenPrintJob(FileName as String) as long opens a report and StartPrintJob(PrintJob as long) prints it. There are various functions which can be invoked to control the display/printing of the report.


  4. #4
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: How to use Crystal Reports without using Crystal Report control

    True, but since the documentation that comes with the suite is quite worth it (I think...) ...
    And since you can control everything of the report from within code, it's quite handy to have it all (at least I had big help from the helpfile and the book)

    Crazy D @ Work :-)

  5. #5
    Join Date
    May 2000
    Location
    India
    Posts
    7

    Re: How to use Crystal Reports without using Crystal Report control

    Hi All,
    I am trying to use CRPE APIs in my C++ code to export a .rpt file in HTML format. I have linked the crpe32.dll for API support.I have been successfully able to create the report in HTML format using the APIs: PEExportTo and PEStartPrintJob. But if I run my code multiple times then the API PEStartPrintJob fails with errorcode=529 or errocode=999.I can't figure out why it is failing? Moreover sometimes the API PEStartPrintJob doesn't fail and don't print the HTML either.This sounds very unusual?
    If any one of u can help me out to solve my problem then send me mail at [email protected]

    Thanks and Regards,
    Jatinder



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured