Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know which printer user selected in ComDlg?
Message
From
22/09/2006 20:59:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/09/2006 18:47:32
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01155181
Message ID:
01156660
Views:
22
>If you only want to prevent printing to file then you can just give the flag cdlPD_HIDEPRINTTOFILE
>
>#Define cdlPD_HIDEPRINTTOFILE  0x00100000
>
>oCommDialog.Flags = cdlPD_ALLPAGES + cdlPD_HIDEPRINTTOFILE + cdlPD_RETURNDC
>oCommDialog.ShowPrinter()
>
Tried that already, but the pdf995 doesn't care about that checkbox at all. It's only called printer driver and gets installed as such, but doesn't respect the flag. I figure Amyuni and Adobe's stuff may behave the same way.

>However, as you probably know, that ShowPrinter() from CommDialog ActiveX is limited. So, if you want to get the selected printer name than you will have to use PrintDlg() API

>About filtering the Printer Name, I can think of the solution, but it's kind of ugly <*bg*>. Just let me know if you are interesting. I'll work on it and post it here or mail it to you

Post it here - even if it doesn't work. Just need the idea, to get pointed into right direction. And I don't care if it's ugly, I won't show it to anyone :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform