Is there microsoft solution for convert in ASP NET application a word document (doc,docx,rtf) in PDF ?? I only need the pdf file from the original.
Please help me. I read a lot of solution (http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html) but all are very SLOW and not good for Server.
If your server has office installed you can use Microsoft.Office.Interop.Word ExportAsFixedFormat method.
YEs but you better not use Microsoft.Office.Interop in ASP .NET
"Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit
unstable behavior and/or deadlock when Office is run in this environment."
Ok fair enough I did not read the fine print. I am now working on a project where I create a word add-in that converts the document to a custom html class and then sends it to a wcf running on my website, which intern saves it with correct css files and
images and also updates the website data base correctly. Maybe you should try a similar project.
You can try
Aspose components for manipulating Office documents using .NET code. Aspose.Words for .NET, Aspose.Cells for .NET, and Aspose.Slides for .NET allow you to work with Word, Excel and Powerpoint documents on the server or the client alike. They do not require
MS Office to be installed on the server where you develop/deploy your application. You can also
convert office documents to PDF using very simple .NET code.You can select any components of your choice. Please see if this might help.
Becouse my company have license for Microsoft Office and share point. Why we have to spend other money if microsoft have a solution for us!??!?! I ask if there becouse i don't know....but if there is some function or library in microsoft software that can
i use for this scope...i want use it?!? is it so strange?
Becouse my company have license for Microsoft Office and share point
Does this license include that you can install it on a (unattended) webserver?
sintetico82
Why we have to spend other money if microsoft have a solution for us!??!?!
Microsoft doesn't have a solution to open Office files form a webserver. If they had, do you think that those third party tools would cost so much? But Office 2007 (and higher) files do meet the OpenXML standard:
sintetico82
Member
46 Points
32 Posts
Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 22, 2011 02:31 PM|LINK
Hello,
Is there microsoft solution for convert in ASP NET application a word document (doc,docx,rtf) in PDF ?? I only need the pdf file from the original.
Please help me. I read a lot of solution (http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html) but all are very SLOW and not good for Server.
HELP!!!
everlearnin
Member
398 Points
82 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 22, 2011 02:39 PM|LINK
If your server has office installed you can use Microsoft.Office.Interop.Word ExportAsFixedFormat method.
http://msdn.microsoft.com/en-us/library/bb412305%28v=office.12%29.aspx
hans_v
All-Star
35986 Points
6550 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 22, 2011 02:45 PM|LINK
YEs but you better not use Microsoft.Office.Interop in ASP .NET
"Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment."
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2
everlearnin
Member
398 Points
82 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 22, 2011 03:10 PM|LINK
Ok fair enough I did not read the fine print. I am now working on a project where I create a word add-in that converts the document to a custom html class and then sends it to a wcf running on my website, which intern saves it with correct css files and images and also updates the website data base correctly. Maybe you should try a similar project.
sintetico82
Member
46 Points
32 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 22, 2011 03:49 PM|LINK
I have to use SharePoint 2010 for this?
http://msdn.microsoft.com/en-us/library/ee558830.aspx
shahzad.lati...
Member
82 Points
21 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 26, 2011 11:51 AM|LINK
You can try Aspose components for manipulating Office documents using .NET code. Aspose.Words for .NET, Aspose.Cells for .NET, and Aspose.Slides for .NET allow you to work with Word, Excel and Powerpoint documents on the server or the client alike. They do not require MS Office to be installed on the server where you develop/deploy your application. You can also convert office documents to PDF using very simple .NET code.You can select any components of your choice. Please see if this might help.
sintetico82
Member
46 Points
32 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 26, 2011 11:59 AM|LINK
Yes.. this component can help me..but not is a microsoft solution.
hans_v
All-Star
35986 Points
6550 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 26, 2011 12:22 PM|LINK
And why is that a problem?
sintetico82
Member
46 Points
32 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 26, 2011 12:37 PM|LINK
Becouse my company have license for Microsoft Office and share point. Why we have to spend other money if microsoft have a solution for us!??!?! I ask if there becouse i don't know....but if there is some function or library in microsoft software that can i use for this scope...i want use it?!? is it so strange?
hans_v
All-Star
35986 Points
6550 Posts
Re: Microsoft solution from SERVER side Office Word documento convert to PDF
Sep 26, 2011 02:13 PM|LINK
Does this license include that you can install it on a (unattended) webserver?
Microsoft doesn't have a solution to open Office files form a webserver. If they had, do you think that those third party tools would cost so much? But Office 2007 (and higher) files do meet the OpenXML standard:
http://openxmldeveloper.org/