Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Setup selections are not applied
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00462509
Message ID:
00462730
Views:
9
>Hi:
>
>I have managed to get the API call to the page setup dialog working and can retieve the users selections. However, after making selections and closing the form, the selections (page orientation and margins) are not applied not to the document (RTF Control) when printed. Any ideas?
>

My understanding of the way printing with the RichTextBox control works is that you have to create a Printer Device Context with the proper settings established, and then call the RichTextBox control's SelPrint method, passing the handle to the printer device context (hDC) as the first parameter, with a second optional parameter specifying whether the control should send a StartPage/EndPage command pair (0) or a StartDoc/EndDoc command pair (-1) to the printer to start the RTF print - you want to pass 0 to keep your document setup.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform