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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Third Party Crystal Report Viewer ?

Status
Not open for further replies.

it1234

Programmer
Oct 23, 2001
12
US
The viewer provided with 8.5 developer edition of CR was embedded in a VB application. It does not provide option to select printers on client machine.

Is there any third party viewer application or ActiveX or Java Component available to view and print the generated Crystal Report Files on a client machine?

Thanks in advance.
 
You can fix things with a little bit of code. As usual, why it's not in the product, who knows. There's a support article on it somewhere.

Basically:

1. Add a common dialog control to the VB form with the CR Viewer control.

2. Assuming that you leave the name of the control as the default name (CommonDialog1), paste this code into the PrintButtonClicked() event of the CRViewer and replace "Report." with the name of your Crystal Report object:

UseDefault = False

On Error GoTo Cancel:

CommonDialog1.CancelError = True
CommonDialog1.ShowPrinter


Report.PrintOut False
Exit Sub

Cancel:
MsgBox "Printing cancelled"
Exit Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top