General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only