Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Dialog using API
Message
From
29/04/2002 09:20:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00649502
Message ID:
00650335
Views:
25
George,
this was a misunderstanding from my side with that "build-in" class.

CommonDlg is something I never understand how to use it.
It is simple on a first try, but then I figured out that it change may windows default printer.
This is cruel, I only like to change for the next printout, maybe as long as I stay inside my app. (The way let's say MSWord would work)

So I was looking around and found
.PrinterDefault = .F.
But this switches the CommonDlg use off. Simply nothing is happend after the change of a printer in ShowPrinter(), VFP uses the same printer as before.

AFAIK CommonDlg provides a kind of handle to the printer, but I have no idea how to use this to switch printer in foxpro.

BTW, it looks like Ajay runs in the same problem, look at thread#650272.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform