Solved

Word To PDF Programmatically

Posted on 2004-09-06
5
367 Views
Last Modified: 2013-11-20
Hello,
   I'm now trying to use MFC to convert word files to pdf files programmatically.
I have known that by using Acrobat Distiller the word files can be converted.
But how can I realize these steps by mfc programme,office automation or other tools?wish your help!
Thank you in advance & best regards!
0
Comment
Question by:aerowang
[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
5 Comments
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 90 total points
ID: 11994097
THere are a number of 'free' utilities such as PDFCreator which can be installed as a printer.  The print you do normally and the user can choose the 'pdf printer' to save it to pdf format on disk (or e-mail...).

Advantage - the user can convert ANY print output from any installed app (that does print) to pdf files.

Also as it is installed as a printer it is possible for you to programatically select this printer as the target for your output.  So it would satisfy your requirement.  The disadvantage is that the user has to have the 'pdf printer' installed on their system, you don't distribute it as part of your app (licencing reasons)
0
 

Author Comment

by:aerowang
ID: 12004850
   I have practiced word automation and pdf automation separately and I think though the way to realize "word to pdf" might not be as easy as the above two,but the probability is still exist!
    Can I call some methods in word automation and if so, which ones can I call?Is that idea feasible,I'm not sure.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 12004978
word doesn't support pdf as a format to save to.  word automation would not be of use to you.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 60 total points
ID: 12213888
It seems to me that one could automate Word to have it print the document and one could also select the PDF driver as the output device.  I have not tried it, but it seems feasible.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 51
twoTwo  challenge 35 119
x-bar in Google Sheets 2 128
Problem to App 4 145
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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