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:
00230641
Views:
28
Edward, that is correct for setting the word document settings, but not the printer/properties/custom document/page width and height. IE: if you are using a postscript printer, and exporting to file, or using Adobe PDFWRITER, you must set the printer/properties/width and height to the same as the pagesetup width and height, otherwise it prints to a full page etc...

It is this darn printer/properties/width and height thingy that has me beat. All the printer devmode api examples show retrieving this information, but not setting it....

Thanks


>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform