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

Printer Set up dialog does not pick up default driver settings

Status
Not open for further replies.

HowlinHow

Programmer
Jul 14, 2004
7
US
Hi:

I am trying to use the PrinterSetup method. For some reason the Printer Setup dialog does not pick up default driver settings for paper size.

If both A4 and Letter sized paper is available on a printer, the reports will print using Letter even though A4 may be the default paper size .

This is incorrect, the reports should by default, print using the default paper size for the specified printer.

Is there a way to fix this?

I am calling the PrinterSetup dialog using this command:
goInjectionReport.PrinterSetup (0)

 
I am trying to integrate a crystal report with VB6
 
Using VB6/CR 8.5...

If I invoke the Printer Setup screen and my default printer's paper size is set to A4, then it respects that. However, if my default printer's default paper size is Letter, and I switch to a different printer using the Printer Setup dialog, the paper size remains Letter, even though I've got that printer's default paper size set to A4.

Is that what you're experiencing?

-dave
 
The following happens:

If I invoke the Printer Setup screen and my default printer's paper size is set to A4 (as defined through Printing preferences) , the printer set up screen has size set to Letter rather then A4. It prints on Letter rather then the default printer's setting of A4.

Why is the Printer Setup screen picking up the correct paper size as defined for the printer.

Howard
 
Crystal saves printer information with the report file, which can cause some weirdness, and I think that's what you're experiencing.

You might be able to control this by using API calls to get the default printer's information, and set try setting the report's info beforehand.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top