This message was posted using Banckle Live Chat 2 Forum
Hi,
I assume you are using Aspose.Cells for .NET product.
See the document on how to convert the Excel files to PDF format:
Convert an Excel file to PDF format
If you still find any issue regarding conversion, attach your template Excel file and code to reproduce the issue on our end. We will check your issue soon.
Also, try our latest version v5.3.3.
Thank you.
I am using the latest version(5.3.3) and passing the stream to the WorkBook object instead file path. Here’s my code.
public Stream Convert(Stream input)
{
MemoryStream result = new MemoryStream();
Workbook workbook = new Workbook(input);
workbook.Save(result, Aspose.Cells.SaveFormat.Pdf);
return result;
}
Also, I tried to couple of different files but the results are same.
And I wish I can upload the excel file here but I cannot find a way.
Thanks,
Hi,
var result = new System.IO.MemoryStream();
var workbook = new Workbook(“C:\temp\in.xls”);
workbook.Save(result, Aspose.Cells.SaveFormat.Pdf);
var ofs = System.IO.File.OpenWrite(“C:\temp\out.pdf”);
result.WriteTo(ofs);
ofs.Close();
Thank you for your response.
The application we are using to open pdf file is RAD PDF.
I attached files I was working to evaluate Aspose PDF convertor library.
Thanks,
Hi,
I am not sure about your RAD PDF tool. But, your converted PDF file (by Aspose.Cells for .NET) opens fine in Adobe Acrobat e.g 8, 9 etc. So, the converted PDF file is a standard file and is fine tuned.
Thank you.
When I convert the excel file to PDF using MS Office 2007 and open with the RAD PDF application, there was no problem. However, when I use aspose PDF to convert the excel file and open with RAD PDF, I have an error.
Thanks,
Hi,
Please attach your source excel file and your converted pdf (s) by Aspose.Cells and by MS Office 2007.
And screenshots showing error on your RAD Pdf tool. We will investigate the issue.
Hi There,
The attachment has source excel file, converted pdf file by aspose.cells, converted pdf file by MS office 2007, and error message when I open the pdf file converted by aspose.cells with RAD PDF.
Please let me know what is the issue.
Thanks,
Hi,
Hi There,
With RAD PDF application, I can open the MSOffice_PivotTable.PDF but I cannot open the Aspose-PivotTable.PDF.
Thanks,
Corio
Hi Corio,
Hi,
I cannot give it to you since there is license key embedded but you can test their evaluation version.
Here’s Rad Pdf website;
http://www.radpdf.com/
We simple convert excel file to pdf file and view using Rad Pdf viewer.
Thanks,
Corio
Hi Corio,
Thanks for your input.
It is ok for us, if you provide us a sample project with simplest relevant code using the evaluation version of RadPdf. This will help us sorting out the issue as well as it will speed up everything.
Thanks for your cooperation.