A
avtar.jain
Guest
Hi, If you are on a windows machine then there is quite an easy way to directly generate PDF from within openedge. Here is simple 4GL for your persual - DEF VAR wordappl as com-handle. DEF VAR Word-Func-OK AS LOG. CREATE "Word.Application" wordAppl. do on error undo, LEAVE: Word-Func-OK = wordappl
ocuments:OPEN("c:\temp\testfile.docx"). Wordappl:ActiveDocument:SaveAS("c:\temp\testfile.pdf",17). wordappl:QUIT(FALSE). RELEASE OBJECT wordAppl. end. c:\temp\testfile.docx is a pre-formed template created using MS WORD. If you know about handling MergeMarks wihtin MSWORD using 4GL then this will give you added advantage to dynamically modify content within template before converting it to PDF.
Continue reading...
Continue reading...