Hello, we are using the XML data and XSLT templates to generate our pdf. However we came to a problem that when TextSegment element has empty value it resolves to
after XSLT transformation. When document containing this is put into the BindXml method it causes an exception
An unhandled exception of type ‘System.Exception’ occurred in Aspose.Pdf.dll
Additional information: Type Cell does not exists
When manually adding text to this element in XSLT template to resolve it to
it works fine.
I would like to ask how can I work with empty cells (not all data has value in the source XML) without causing this exception.
at . (String )
at Aspose.Pdf.Cell. (XmlReader )
at Aspose.Pdf.Row. (XmlReader )
at Aspose.Pdf.Table.ctbyndf6krwz6e2pvkqhvayl56j9kkys (XmlReader )
at Aspose.Pdf.Page. (XmlReader )
at Aspose.Pdf.Document.BindXml(Stream stream)
When manually adding text to this element in XSLT template to resolve it to
addedsampletext
it works fine.
I would like to ask how can I work with empty cells (not all data has value in the source XML) without causing this exception.
Best Regards.