Convertion from MS Word to PDF format...

rcgomez11

Member
Good day ProgressTalkers,

Progress Version: 9.1E
Platform: Windows 7 Ultimate 32 Bit

Is there a way that I can convert uploaded MS Word document to produce PDF formatted file, using 4GL codes?
Hope you can help me with this problem of mine, thanks in advance and you'll have a good day ahead.

Sincerely,
Romel Gomez
 
Are you just wanting to convert the word doc to PDF, or do you need to edit the doc too? Why does it have to be in a Progress application? Can't you use another application to do the conversions?
 
I've not done this before ...

You can use the OLE automation technique to

  • Start MS Word and have it open the document you need to convert.
  • Print the document from MS Word using the PDF printer.
  • Close MS Word ...


You will find sample code on how to use MS Word as OLE automation server in the knowledge base.

Heavy Regards, RealHeavyDude.
 
HI

This works with Word 2010
DEF VAR WORD AS COM-HANDLE.
CREATE "Word.Application" WORD NO-ERROR.
WORD:VISIBLE = TRUE.
WORD:Documents:OPEN("your_file.doc").
WORD:activedocument:saveas("your_file.pdf",17). /* 17 means PDF */
RELEASE OBJECT WORD.

/* change the face with : and letter D together */

MRobles
 
Great, absolutely great mrobles. Thanks alot for sharing.
I've got another question but I think its better to post it on another thread. Thanks again all you who shared your ideas in this post.
 
Back
Top