Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print & Save Crystal Report (7.02) from VB6 program

Status
Not open for further replies.

kimr

Programmer
Jun 12, 2001
16
US
I am trying to print a report that was created in Crystal Reports 7.02 from a VB6 program. I created a Crystal ActiveX control on a separate form and call this from my main sub using the following code:

frmRptCntl.crwBondRpt.Connect= &quot;DSN=servername;UID=user;PWD=password;DBQ=<CRWDC>Database=databasename&quot;
frmRptCntl.crwBondRpt.PrintReport
End

I have the report name and location setup in the control properties, as well as the printer port number and name.

When I run the program a printer icon appears on my taskbar and I get a message that the file is printing, but it never comes out of the printer. Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top