Quantcast
Viewing all articles
Browse latest Browse all 3636

Help with Printing a Crystal report from Visual Basic

I have some Visual Basic logic that was used with IFIX 3.5 and an older version of Crystal Reports (not sure which one)

 

I have now upgraded to IFIX 5.5 and Crystal Reports XI, and when i try to run the below code, it cannot find the "CrystalReport"..  I think i am missing a reference library or plugin, but there are over 75 librarys and plugins to chose from.  Is there a list with explanations of each one so I can see what each one does?

 

Current Code:

 

Dim rptHOURLY85 As New CrystalReport

     rptHOURLY85.ReportFileName ="C:\Program Files\Proficy\Proficy iFIX\APP\HOURLY85.rpt"

     rptHOURLY85.RetrieveDataFiles

     rptHOURLY85.Destination = crptToPrinter

     rptHOURLY85.PrintReport

     Set rptHOURLY85 = Nothing

 

 

I would also like to modify this to print to a PDF file instead of to a printer.  But I think I could figure it out if I had explanations of all the libraries and Plugins

 

Thanks for the help

John


Viewing all articles
Browse latest Browse all 3636

Trending Articles