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.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Vinki" <Vi***@discussions.microsoft.comwrote in message
news:C1**********************************@microsof t.com...
Is it possible to convert a microsoft word document to pdf in .net code.
If
anyone has done this before, please let me know.