Converting of MS Word reports and Excel spreadsheets to PDF format in C#

Our organization has a legal department that works with a variety of documents: reports in DOC/DOCX, comparative tables in the XLS/XLSX format and various documents in RTF format.
By: Yana
 
Nov. 21, 2011 - PRLog -- Article from our customer

Our lawyers often need to send these documents to our clients and partners around the world! Edit these documents and make changes is not desirable, and in some cases simply not acceptable!
We've decided to convert all of the documentation that is sent by e-mail to PDF. That is, all reports, spreadsheets, reports, etc. have to be converted to PDF and emailed to our partners. To convert DOC/DOCX /XLS/XLSX/RTF to PDF our developers found the UseOffice.Net component from the SautinSoft.
Below there is C# code to convert DOCX/XLSX to PDF:
      SautinSoft.UseOffice converter = new SautinSoft.UseOffice();        string inputFilePath = @"E:\Web\DOC.docx";       string outputFilePath = @"E:\Web\DOC.pdf";        //Prepare UseOffice .Net, loads MS Word in memory       int ret = converter.InitWord();                 if (ret==1)          return;                 ret = converter.ConvertFile(inputFilePath, outputFilePath, SautinSoft.UseOffice.eDirection.DOCX_to_PDF);        //Release MS Word from memory         converter.CloseWord();
This is code snippet to export XLSX to PDF:    
      SautinSoft.UseOffice u = new SautinSoft.UseOffice();        string inputFilePath = @"E:\Excel1.xls";       string outputFilePath = @"E:\Result.pdf";        //Prepare UseOffice .Net, loads MS Excel in memory       int ret = u.InitExcel();                 if (ret==1)          return;                 ret = u.ConvertFile(inputFilePath, outputFilePath, SautinSoft.UseOffice.eDirection.XLS_to_PDF);        //Release MS Excel from memory       u.CloseExcel();
Get other details you may at SautinSoft company website: http://www.sautinsoft.com
James Omveri

# # #

SautinSoft is the independent software development company. The line of our software applications was started in 2002 (web-site www.sautin.com) and now developing components for converting such formats as: HTML, RTF, PDF, Word and others.
End
Source:Yana
Email:***@sautinsoft.com Email Verified
Zip:427430
Tags:Word To Pdf, Excel To Pdf, c
Industry:Software
Location:Votkinsk - Udmurt Republic - Russian Federation
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse
Sautinsoft PRs
Trending News
Most Viewed
Top Daily News



Like PRLog?
9K2K1K
Click to Share