Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showprinter method of the common dialog acxtivex
Message
 
To
12/10/1999 13:32:36
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00275528
Message ID:
00275541
Views:
19
>George,
>
>I know i asked this before, but i did never get a satisfying answer...
>
>When using the showprinter method of the common dialog control, how do you print a VFP report according the settings you made in the dialog ?
>
Hi Walter,

I assume that, for example, the user indicates that they want to print 2 copies. Well, in a situation like that it'd you'd simply retrieve the value of the .Copies property. Working off the top of my head, I think there's also a FromPage, and ToPage properties.

If you're speaking of the where the user selects to print, using this control is a bit more complex. First, and this is how I handle it, I get the current default printer from SET('PRINTER', 2) and store it. Next, I set the PrinterDefault property to .T. This will cause any selection that user makes in the dialog to become the default printer. I use the previously retrieved value to later restore the original setting. A PITA? Yes, but given (IMHO) the overall flexibility that I get with the control, I don't consider it major.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform