i need asp.net with c# to convert word doc to pdf without using [B]Microsoft.Office.Interop.Word[/B

Posted by Karthikreddy under Visual Studio on 2/13/2013 | Points: 10 | Views : 4017 | Status : [Member] | Replies : 4
i need asp.net with c# to convert word doc to pdf without using Microsoft.Office.Interop.Word lib please any one post the code please

Thanks
K@rth!k

k@rth!k
karthikreddy08a50@gmail.com



Responses

Posted by: Johnw on: 2/18/2013 [Member] Starter | Points: 25

Up
0
Down
[code]//Load Document
Document document = new Document();
document.LoadFromFile(@"..\..\test.docx");

//Convert to PDF and Launch PDF
document.SaveToFile("ToPDF.PDF", FileFormat.PDF);[/code]

I use a ASP.NET Component, Spire.Doc for .NET

Not what, but how

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 2/18/2013 [Member] Starter | Points: 25

Up
0
Down
from where we can import this namespace Spire.Doc


k@rth!k
karthikreddy08a50@gmail.com

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 2/18/2013 [Member] Starter | Points: 25

Up
0
Down
@johnw

hi i got it .but it showing error message like Evaluation Warning : The document was created with Spire.Doc for .NET in the pdf header
is there is any way to avoid it


k@rth!k
karthikreddy08a50@gmail.com

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Arronlee on: 5/15/2014 [Member] Starter | Points: 25

Up
0
Down
How about convert Word documents to PDF files( http://www.yiigo.com/guides/csharp/how-to-word-convert-pdf.shtml ) with the help of some 3rd party Word Doc converters directly?

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response