Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the Width and Length in Foxpro
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00230634
Message ID:
00230638
Views:
24
>Well, I was wondering if anyone knows how to get that DARN API and DEVMODE working for setting the width and height for print documents from within Foxpro. IE: foxpro is controlling a word document through DDE.
>
>I need to set the PRINT/PROPERTIES/WIDTH and HEIGHT parameters...
>
>Thanks in advance...

You may use OLE here:
oWord=createobject("Word.Application")
oWord.documents.open("c:\develop\word1.doc") && open some file to print
oWord.documents(1).pagesetup.pagewidth=1000 && set page width
You may set all print properties this way.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform