converting a word doc to pdf in .net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to convert a microsoft word document to pdf in .net code. If
anyone has done this before, please let me know.
 
Vinki,

There are a lot of "ifs" in this reply.

First, if you are using Office 2007 documents, then the content is XML
(for the most part). You can easily parse this and feed any PDF generator
with this content.

If you are not using pre-Office 2007 documents, but they are stored in
WordML (another XML format for Word documents), then you can use that
content to feed a PDF generator.

If you have Office 2007 installed, then you can load any word document
and save it through automation. MS released a plugin for Office 2007 which
allows the saving of Word documents in PDF format.

If you have a version prior to Office 2007 installed, then I believe
Adobe has a plugin which allows the saving of Word documents to PDF.

If you are running in an ASP.NET environment, then the first two options
are your only viable ones, really, as automating Word in an ASP.NET
environment is discouraged (that's an understatement when it comes to how
much it is discouraged).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top