I cannot see chart on pdf file when converting excel file to pdf
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Please provide us your file which you are converting to pdf. We will look into your issue and help you asap.
Attached, you will find the file
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Please download and use the latest version: Aspose.Cells
for .NET v7.4.1.4 it is working fine. Charts are displayed inside the output pdf.
Below is a sample code for a reference. Please check the output pdf attached.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\ProjectionRetraite_1072.xls”;
Workbook workbook = new Workbook(filePath);
workbook.Save(filePath + “.out.pdf”);
i have this error:
Description:
System.InvalidOperationException:
Response is not well-formed XML. —> System.Xml.XmlException: ‘[1]’,
hexadecimal value 0x02, is an invalid character. Line 2, position -172.
at
System.Xml.XmlTextReaderImpl.Throw(Exception e)
at
System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
at
System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean
expand, BufferBuilder internalSubsetBuilder, Int32& charCount,
EntityType& entityType)
at
System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32&
charCount, EntityType& entityType)
at
System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos,
Int32& outOrChars)
at
System.Xml.XmlTextReaderImpl.ParseText()
at
System.Xml.XmlTextReaderImpl.ParseElementContent()
at
System.Xml.XmlReader.ReadElementString()
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadSoapException(XmlReader
reader)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)
— End of inner
exception stack trace —
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)
at
MarshallingExcelToPDF.PSWS.PSWS.ExcelToPDF(Byte[] excelStream) at
MarshallingExcelToPDF.Caller.Convert(Byte[] excelStream)
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Your error does not seem to be related with Aspose.Cells for .NET. Could you please tell, which platform you are using?