Printing Crystal Reports problem 
Author Message
 Printing Crystal Reports problem

Hi Katharine,
    I have used the "PrinterSelect" method with the OCX and have no trouble
choosing a printer or the orientation.  This method presents the windows
Print dialog box.

Bob Holmes


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??



Fri, 20 Aug 2004 23:08:10 GMT  
 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-----



Fri, 20 Aug 2004 23:13:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Printing Crystal Reports without Crystal Control ActiveX or Crystal Reports API call

2. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

3. Print a report via crystal reports without print dialogue displaying

4. printing without crystal report or data report for non data base reports

5. Problems printing Crystal Reports in Visual Basic 5

6. Printing problem in VB3/Crystal Report- application

7. problem with crystal report/access printing

8. Problems with printing using Crystal Reports

9. Problems with printing using Crystal Reports

10. Crystal Reports / print preview problems

11. Crystal Reports Printing Problem

12. Problem printing pictures with Crystal report

 

 
Powered by phpBB® Forum Software