Free Support Forum - aspose.com

I cannot see chart on pdf file when converting excel file to pdf

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: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

System.InvalidOperationException:
Response is not well-formed XML. —> System.Xml.XmlException: ‘[1]’,
hexadecimal value 0x02, is an invalid character. Line 2, position -172.<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.Throw(Exception e)<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean
expand, BufferBuilder internalSubsetBuilder, Int32& charCount,
EntityType& entityType)<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32&
charCount, EntityType& entityType)<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos,
Int32& outOrChars)<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ParseText()<o:p></o:p>

at
System.Xml.XmlTextReaderImpl.ParseElementContent()<o:p></o:p>

at
System.Xml.XmlReader.ReadElementString()<o:p></o:p>

at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadSoapException(XmlReader
reader)<o:p></o:p>

at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)<o:p></o:p>

at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)

— End of inner
exception stack trace —<o:p></o:p>

at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)<o:p></o:p>

at
MarshallingExcelToPDF.PSWS.PSWS.ExcelToPDF(Byte[] excelStream) at
MarshallingExcelToPDF.Caller.Convert(Byte[] excelStream)<o:p></o:p>

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?