Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert word doc to pdf in silverlight?

send answer to my mail id
[Email removed]
Posted
Updated 14-May-12 22:43pm
v2
Comments
Sandeep Mewara 15-May-12 4:44am    
Did you try anything?

No need to post email id, once someone answers, you will get an email to your CP registered id.
Krishna KV 22-May-13 5:04am    
Ok.

One way that I have done this using Silverlight is to use the Office Automation on the server and have it create the pdf using the standard interface from Word. This of course means that the conversion part runs on the server and not in Silverlight directly since you can never be sure if a particular version of Office is installed on the users machine or even if they are running Windows or Mac.

Another possibilty is to use something like itextsharp to generate the pdf files. But you would have to read in the Word file separately. I don't like that method as well but I thought I would put it out there as well.
 
Share this answer
 
Comments
Krishna KV 22-May-13 5:01am    
Thank you
Using Office Automation or Interop on server side is not very good. Please see:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].

I would rather recommend using Open Office SDK:
http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

This way, you can work without Office installed.

As to the conversion to PDF, please see my past answer: Question Convert word to PDF without offce or openoffice[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900