Hello,
I am finding few flaws when converting XlsIO and DocIO to PDF. Below is the code I use and attached is the orignial file and the associated pdf. If anyone can notice a flaw in the code or help it anyway it would be great.
Thanks.
Dim od As New OpenFileDialog()
If od.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim excelEngine As New ExcelEngine
' Instantiate the excel application object.
Dim application As IApplication = excelEngine.Excel
Dim myWorkbook As IWorkbook = application.Workbooks.Open(od.FileName)
Dim ms As New System.IO.MemoryStream()
myWorkbook.SaveAsXml("out.xml", ExcelXmlSaveType.DLS)
Dim pdfDocument As PDFLogicDocument = New PDFLogicDocument()
pdfDocument.OpenXml("out.xml")
'Save as PDF.
pdfDocument.Save(System.IO.Path.GetFileName(od.FileName.Remove(od.FileName.Length - 4, 4)) + ".pdf")
End If
PDF Documents.zip