>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