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.
OffThere is no place like [::1]