Dim doc As New Aspose.Words.Document("D:\a_test\123.doc")
'将文件保存为Aspose.Pdf.Xml格式
doc.Save("D:\a_test\System.xml", Aspose.Words.SaveFormat.Pdf)
Dim pdf As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
'绑定XML
pdf.BindXML("D:\a_test\System.xml", Nothing)
'是否删除生成的临时图片文件
pdf.IsImagesInXmlDeleteNeeded = True
pdf.Save("D:\a_test\MyDocument.pdf")
为什么这段代码跑到pdf.BindXML("D:\a_test\System.xml", Nothing),就报错
未处理 System.Xml.XmlException
LineNumber=1
LinePosition=1
Message="根级别上的数据无效。 行 1,位置 1。"
Source="System.Xml"
SourceUri="file:///D:/a_test/System.xml"