Originally posted by Satishpp
Hi,
I am using the following code to view a report in VB.
--------
Dim CrxApp As New CRAXDRT.Application
Dim CrxRpt As CRAXDRT.Report
Set CrxRpt = CrxApp.OpenReport("emp.rpt")
CrxRpt.DiscardSavedData
CRViewer1.ReportSource = CrxRpt
CRViewer1.ViewReport
------------
This works fine. Now I want to use something similar to print the report without showing it on screen.
I searched this forum and got 2 methods of doing this
1) setting the destination property of the Crviewer object to the printer.... However, I dont see a destination property for this object - (I am using crystal reports 8.5)
2) using CRViewer1.PrintReport
When I do this, I get a blank CrViewer control i.e. the control appears without the report and nothing is printed.
Where am I going wrong?
Thanks in advance
Satish