Solved

PowerBuilder 12.5 : How to PrintPreview from PowerBuilder for  file with *.doc, *.excel, *.xls , .*txt ?

Posted on 2013-10-28
2
1,309 Views
Last Modified: 2013-11-14
After get  docname for attachment to send through mail, How can I PrintPreview  document without datawindow from  PowerBuilder ?  does anyone know how to make a call to Adobe Acrobat function Create PDF from file in PowerBuilder so that it can convert these file to PDF for view (those doc file with extension *.txt, *.doc, *.xlsx, *.excel  ...)

li_rtn = GetFileSaveName("Select File", & 
                       docpath, docname[], "DOC", &                                      +      "PDF Files (*.PDF),*.PDF," &                  
       + "Text Files (*.TXT),*.TXT," &
       + "Doc Files (*.DOC),*.DOC," &                              
       + "All Files (*.*), *.*", &      
                                         default_dir, 18)

Thanks

MyWoody
0
Comment
Question by:Mywoody
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
sarabande earned 500 total points
ID: 39609525
as far as i know acrobat has no function to create pdf from doc.

that was done by using word automation and using an installed pdf printer (driver).

as far as i know, the only program beside of ms word that could read .doc files was openoffice. you may look for an openoffice library if you would like to call office functions  programmatically (first read the .doc file, then print it as pdf file).

if the input files are image files like .bmp, .png, +.gif, .jpg you could use imagemagick to convert them to pdf. you also could merge files with that tool. there are also a lot of pdf libraries which would do what you want though they would need to perform word automation to convert the word documents to pdf. that means you need ms office word installed at the pc.

Sara
0
 

Author Closing Comment

by:Mywoody
ID: 39650392
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question