Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
PDF files are widely used for exchanging documents between organizations, government sectors and individuals. It is a standard document format and software developers are often asked to find a way to convert Microsoft Excel files into PDF documents. Aspose.Cells supports converting Excel files to PDF and maintains high visual fidelity in the conversion.
Aspose.Cells for .NET supports conversion from spreadsheets to PDF independently of other software. Save an Excel file to PDF using the Workbook class' Save method. The Save method provides the SaveFormat.Pdf enum member that converts the native Excel files to PDF format.
Converting directly from spreadsheet to PDF, instead of using a third-party tool or external API, has several advantages:
To convert files to PDF:
Workbook workbook = new Workbook(openFileDialog1.FileName);
workbook.Save(saveFileDialog1.FileName, SaveFormat.Pdf);
MHTML combines normal HTML with external resources (that is, content that is usually linked in, like images, animations, audio and so on) into one file. They are used for emails with the .mht file extension. Aspose.Cells supports reading and writing MHTML files.
Workbook workbook = new Workbook(openFileDialog1.FileName);
//Specify the HTML Saving Options
HtmlSaveOptions sv = new HtmlSaveOptions(SaveFormat.MHtml);
workbook.Save(saveFileDialog1.FileName, sv);
Sometimes, you want to convert or save a workbook with multiple worksheets into text format. For text formats (for example TXT, TabDelim, CSV etc.), by default both Microsoft Excel and Aspose.Cells save the contents of the active worksheet only.
Workbook workbook = new Workbook(openFileDialog1.FileName);
workbook.Save(saveFileDialog1.FileName, SaveFormat.CSV);
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.