Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Re: Export PDF to Excel with Aspose.Pdf

$
0
0
My name is Fabio Rosa.  
I'm the develop manager of Industrial area of Fabril/Forwood System of the Lógica Informática company.
I tested the Aspose.PDF 9.5 to verify the issue correction.
The conversion work is better, but not perfect yet... In some cases, (and I don't know why) the blanks columns didn't respected yet.
Follow one example. Please, pay attention in 'Saldo Inicial' column, where the first value (13,0000) is in the erlier column... and on the ninth value either...

Would you adjust it?

Below is our code

ExcelSaveOptions options = new ExcelSaveOptions();

options.InsertBlankColumnAtFirst = false;

options.UniformWorksheets = true;

//options.MinimizeTheNumberOfWorksheets = true;

Document pdfDoc = new Document(_filePath);

var saveDialog = new SaveFileDialog();

var startIndex = _filePath.LastIndexOf(@"\") + 1;

var endIndex = _filePath.Length - startIndex - (_filePath.Length - _filePath.LastIndexOf('.'));

saveDialog.FileName = _filePath.Substring(startIndex, endIndex) + ".xls";

saveDialog.DefaultExt = ".xls";

saveDialog.Filter = "Pasta de Trabalho do Excel (agrupado)|*.xls|Pasta de Trabalho do Excel (páginas)|*.xls";



var result = saveDialog.ShowDialog();

(...)

pdfDoc.Save(saveDialog.FileName, options);



This message was posted using Email2Forum by Justin Anderson. (attachment)

Viewing all articles
Browse latest Browse all 3131

Latest Images

Trending Articles



Latest Images