Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prompt dialog
Message
 
 
To
29/09/2009 18:19:51
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01426748
Message ID:
01426756
Views:
52
>>Hi everybody,
>>
>>Is there a way to simulate the exact Prompt dialog (with number of pages, etc.) or the GetPrinter() is the best we can have? Did someone already create this dialog so I would not need to re-invent the wheel?
>>
>>Thanks a lot in advance..
>
>You can try the common dialog I can tell you first I don't know how to work with it but maybe someone else does
>
>
>lo_printer = NEWOBJECT('MSComDlg.CommonDialog')
>
>WITH lo_printer
>   .PrinterDefault = .t.
>   .flags = 256 
>   .ShowPrinter()
>ENDWITH
>
>? set('printer', 2) && Will return the printer name
>
>
>But I don't know how to get access do the # pages they selected or anything else. I know not much of a help.

Nice, unfortunately Intellisense doesn't work here. See my reply to myself - Bob Durban's code should work for me, but how should I use its results?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform