Directing a Crystal report to a printer other than the default printer 
Author Message
 Directing a Crystal report to a printer other than the default printer

I am trying to redirect my report to a printer other than the default
printer. The control (v. 5.0.1.108) gives me the properties PrinterName,
PrinterDriver and PrinterPort to direct the report to. Does anyone know a
good way to get these values from what is returned from the Windows common
dialog or preferably the printer common dialog Win32 api call? Ideally I
would prefer NOT to change the default printer.

Todd Speary
TFP Inc.



Sun, 28 Nov 1999 03:00:00 GMT  
 Directing a Crystal report to a printer other than the default printer

Hi, Todd,

I think Steve Quinn answered this question in his post to a similar
question in this newsgroup on 6/11/97.

Annette Gates



Quote:
> I am trying to redirect my report to a printer other than the default
> printer. The control (v. 5.0.1.108) gives me the properties PrinterName,
> PrinterDriver and PrinterPort to direct the report to. Does anyone know a
> good way to get these values from what is returned from the Windows
common
> dialog or preferably the printer common dialog Win32 api call? Ideally I
> would prefer NOT to change the default printer.

> Todd Speary
> TFP Inc.



Mon, 29 Nov 1999 03:00:00 GMT  
 Directing a Crystal report to a printer other than the default printer

I am doing the same thing in my application, my solution was to write a
small C DLL that calls PESelectPrinter with the information retrieved from
the printer common dialog box.  I tried to do the same thing in VB, but VB
has problems using a structure that has pointers in it(GPFs - Fun Stuff).

N-JOY



Quote:
> I am trying to redirect my report to a printer other than the default
> printer. The control (v. 5.0.1.108) gives me the properties PrinterName,
> PrinterDriver and PrinterPort to direct the report to. Does anyone know a
> good way to get these values from what is returned from the Windows
common
> dialog or preferably the printer common dialog Win32 api call? Ideally I
> would prefer NOT to change the default printer.

> Todd Speary
> TFP Inc.



Mon, 29 Nov 1999 03:00:00 GMT  
 Directing a Crystal report to a printer other than the default printer

I'm glad to see someone else is having problems with pointers in VB! :)
Sorry Stephen. I ended up creating a custom form to display the contents of
the Printers collection, which provides everything I need to set the
Crystal control. Thanks anyway Stephen.



Quote:
> I am doing the same thing in my application, my solution was to write a
> small C DLL that calls PESelectPrinter with the information retrieved
from
> the printer common dialog box.  I tried to do the same thing in VB, but
VB
> has problems using a structure that has pointers in it(GPFs - Fun Stuff).

> N-JOY



Tue, 30 Nov 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Directing a Crystal report to a printer other than the default printer

2. Directing a Crystal report to a printer other than the default printer

3. Q: Printing report on non-default printer w/o user selecting printer

4. Changing Printers property reset printer to Windows default printer

5. Macro to change default printer and then restore original default printer settin

6. printer default to non-default printer

7. VB5 / Crystal Reports -- resetting default printer

8. Crystal Reports Printing to the not-default printer sq Landscape printing

9. Setting Default Printer in VB 5.0 for Crystal Reports 5.0 under NT 4.0

10. Choosing a printer during run-time (other than default) - Crystal Report 9 (CR 9)

11. Crystal Report default printer

12. Setting Default Printer in VB 5.0 for Crystal Reports 5.0 under NT 4.0

 

 
Powered by phpBB® Forum Software