
Printing Crystal Reports problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have solved it by setting my printer to be the default printer,
printing the report and restoring previous state.
First, I get default printer parameters from Printer object.
Then I use rpt.PrinterSelect CRPT method.
At the end, I restore Printer object with old values by using a API
call.
If you like this solution, pls notify me and I will send you some
source code.
Cheers.
Quote:
> I am having major problems printing a Crystal Report using
> a Printer Setup Common Dialog Control. Every time the user
> selects a different printer the report always prints to
> the default printer. I have tried using the Crystal32.OCX
> control instead to get the Print Setup Dialog Box, but
> there are issues with setting print orientation
> dynamically with the OCX control.
This is really doing my head in, has anyone got any ideas??
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPIOPGvAhoWqxISh2EQLbNACg/Ab0Tjlytsef69PMLEL61dtKfXEAoMJd
UjSZGPq3+RTIjB+AcWDoAMF3
=Hna0
-----END PGP SIGNATURE-----