Hi,
I am using Aspose.PDF version 3.2.2.0 and Aspose.Words version 4.0.2.0. I am getting the error:
Unknown sub element in Cell element. The element name is FloatingBox.
There is another post like this but it says to use the latest version to fix the problem. I have the latest versions of both products.
Code:
Dim DocPath As String
DocPath = "C:\new folder\"
Dim doc As Document = New Document(System.IO.Path.Combine(DocPath, "PHOTO ADDENDUM 1.doc"))
Dim stream As MemoryStream = New MemoryStream
doc.Save(stream, SaveFormat.AsposePdf)
'Seek to the beginning so it can be read by XmlDocument.
stream.Seek(0, SeekOrigin.Begin)
'Load the document into an XmlDocument
Dim xmlDoc As XmlDocument = New XmlDocument
xmlDoc.Load(stream)
'Load the XML document into Aspose.Pdf
Dim pdf As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf
pdf.IsImagesInXmlDeleteNeeded = True
pdf.BindXML(xmlDoc, Nothing) <--- ERROR ON THIS LINE
pdf.IsTruetypeFontMapCached = False
'Now produce the PDF file.
pdf.Save("c:\new folder\PHOTO ADDENDUM 1.pdf")
Please let me know what the problem is.
John Tracy
NRT Web Services
jtracy@nrtwebservices.com