Link to home
Start Free TrialLog in
Avatar of Terry Rogers
Terry RogersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Printing Report

Im using the Crystal Report Viewer in my Visual Basic 6 Applicaton. When a user clicks the print button on the Viewer they only have the option to print to the default printer.

How can I get it so the user can select which installed printer to print to?
Avatar of dylanyee
dylanyee

which version of CR are you using?
When I click the print button from report viewer, it always pop up a print option and let me choose which printer to print to.

dylan
Avatar of Terry Rogers

ASKER

Im using version 10 profesional.
I am using CR9 with .Net 2003, when print from report viewer, it pop up an option which list down all the printers that already installed into my pc. I am not sure about VB6, but I think CR 10 should support it anyway.

dylan
How would I enable this feature?
I didn't do anything to enable this feature, it is attached to the print button of CR Report Viewer.
When you click the print button, will it give you a pop up? or directly print to printer? if there is a pop up, what options can you see from the pop up?

dylan
ASKER CERTIFIED SOLUTION
Avatar of RickJ
RickJ

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok, I do indeed have the PrinterSetupEx function, however is requires a parameter...

PrinterSetupEx(hWnd as Long) As Long

Any ideas on that?
ok, sorted. Thanks for your helps guys!

need to call it as follows ...

Report.PrinterSetupEx (hWnd)