|
|
Cannot bind XML
Last post 04-20-2008, 8:42 PM by mechjman. 10 replies.
-
04-13-2008, 8:59 PM |
-
mechjman
-
-
-
Joined on 04-10-2008
-
-
Posts 12
-
-
-
-
Issues: PDFNET-4850
|
Cannot bind XML
Attachment: Present (inaccessible)
Hi,
I'm trying to do a Doc to Pdf conversion, but the pdf component throws the following exception, even though I can export the doc to any other format (except PDF) fine and is readable.
Any ideas? I have attached the document.
System.ApplicationException was unhandled Message="Unknown sub element in Cell element. The element name is Section." Source="Aspose.Pdf" StackTrace: at Aspose.Pdf.Xml.ᙩ.ᙪ(Pdf ӕ, Section ᙠ, HeaderFooter ՠ, Table բ, Row ࿖, XmlTextReader Ӗ, ჿ Ꮗ) at Aspose.Pdf.Xml.ᙞ.ᙟ(Pdf ӕ, Section ᙠ, HeaderFooter ՠ, Table բ, XmlTextReader Ӗ, ჿ Ꮗ) at Aspose.Pdf.Xml.ᖐ.ᖑ(Pdf ӕ, Section , HeaderFooter ՠ, Cell ՜, ჿ Ꮕ, XmlTextReader Ӗ) at Aspose.Pdf.Xml.ᖄ.ᖅ(Pdf ᖆ, XmlTextReader Ӗ) at Aspose.Pdf.Xml.ᧆ.(ᤧ Ԃ, XmlTextReader Ӗ) at Aspose.Pdf.Xml.ᤧ.ᤱ(XmlTextReader ᤲ) at Aspose.Pdf.Xml.ᤧ.ᤰ(XmlDocument ᖆ, XslTransform ) at Aspose.Pdf.Xml.ᤧ.(Pdf , XmlDocument ᖆ, XslTransform ) at Aspose.Pdf.Pdf.BindXML(Stream xmlStream, Stream xslStream) at AsposeDoc2Pdf.Form1.button1_Click(Object sender, EventArgs e) in C:\Temp\cpp\AsposeDoc2Pdf\AsposeDoc2Pdf\Form1.cs:line 69 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at AsposeDoc2Pdf.Program.Main() in C:\Temp\cpp\AsposeDoc2Pdf\AsposeDoc2Pdf\Program.cs:line 17 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
|
|
-
04-13-2008, 10:32 PM |
-
Hans.firefox
-
-
-
Joined on 12-24-2006
-
-
Posts 909
-
-
-
-
|
Re: Cannot bind XML
Attachment: Present (inaccessible)
Hi, I am not able to reproduce the exception error when working with Aspose.Pdf 3.6.2.3(see attachment) and Aspose.Words 5.1.0. But there are still some format issues remain. I have logged it as PDFNET-4846 in our defect database. We will try our best to fix them ASAP. Best regards.
Hans Zhang Product Developer Aspose Changsha Team About UsContact Us
|
|
-
04-13-2008, 11:56 PM |
-
mechjman
-
-
-
Joined on 04-10-2008
-
-
Posts 12
-
-
-
-
|
Re: Cannot bind XML
Attachment: Present (inaccessible)
Hi,
I just tried the pdf dll you attached and still the same problem. I have the error code below. I also have attached my test code I have been writing which throws up the exception. Hope this helps.
System.ApplicationException was unhandled
Message="Unknown sub element in Cell element. The element name is Section."
Source="Aspose.Pdf"
StackTrace:
at Aspose.Pdf.Xml.ᰦ.ᰧ(Pdf ຯ, Section ᰝ, HeaderFooter Ꮏ, Table , Row ᒄ, XmlTextReader Ꮁ, ᕶ ᕥ)
at Aspose.Pdf.Xml.ᰛ.ᰜ(Pdf ຯ, Section ᰝ, HeaderFooter Ꮏ, Table , XmlTextReader Ꮁ, ᕶ ᕥ)
at Aspose.Pdf.Xml.ᭈ.ᭉ(Pdf ຯ, Section ᔻ, HeaderFooter Ꮏ, Cell Ꮋ, ᕶ , XmlTextReader Ꮁ)
at Aspose.Pdf.Xml.ᬼ.ᬽ(Pdf ᬾ, XmlTextReader Ꮁ)
at Aspose.Pdf.Xml.ᾓ.ỳ(ử ፶, XmlTextReader Ꮁ)
at Aspose.Pdf.Xml.ử.ỷ(XmlTextReader Ỹ)
at Aspose.Pdf.Xml.ử.Ỷ(XmlDocument ᬾ, XslTransform ỵ)
at Aspose.Pdf.Xml.ử.ỳ(Pdf Ỵ, XmlDocument ᬾ, XslTransform ỵ)
at Aspose.Pdf.Pdf.BindXML(Stream xmlStream, Stream xslStream)
at AsposeDoc2Pdf.Form1.button1_Click(Object sender, EventArgs e)
in C:\Temp\cpp\AsposeDoc2Pdf\AsposeDoc2Pdf\Form1.cs:line 68
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at AsposeDoc2Pdf.Program.Main() in C:\Temp\cpp\AsposeDoc2Pdf\AsposeDoc2Pdf\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
|
|
-
04-14-2008, 10:20 AM |
-
AdeelTaseer
-
-
-
Joined on 12-15-2006
-
-
Posts 2,437
-
-
-
-
|
Hi,
I have tested your code and was able to reproduce the error. I have logged this as PDFNET-4850 in our issue tracking system. We will try our best to resolve this as soon as possible.
Thanks.
|
|
-
04-14-2008, 7:36 PM |
-
mechjman
-
-
-
Joined on 04-10-2008
-
-
Posts 12
-
-
-
-
|
Re: Cannot bind XML
Attachment: Present (inaccessible)
Hi
I located the issue down to the text form fields inside the tables to causing the exception error. Now I have some new issues that appears (and I have attached the documents as proof):
Page 2 of the generated pdf, at the bottom of the page, the image is not suppose to be there.
Page 4 of the generated pdf, paragraph 5, the text is running vertical, which is not right.
Many thanks, Jimmy
|
|
-
04-14-2008, 8:11 PM |
-
Hans.firefox
-
-
-
Joined on 12-24-2006
-
-
Posts 909
-
-
-
-
|
Hi Jimmy, I had noticed these format issues and logged them as PDFNET-4846. We will try to resolve it ASAP. Thanks. Best regards.
Hans Zhang Product Developer Aspose Changsha Team About UsContact Us
|
|
-
04-15-2008, 8:59 AM |
-
mechjman
-
-
-
Joined on 04-10-2008
-
-
Posts 12
-
-
-
-
|
Hi Any idea on when this will be resolved? we are currently evaluating, and having that fixed would allow us to make our purchasing decision for our organisation.
Cheers, Jimmy
|
|
-
04-15-2008, 9:34 AM |
-
Hans.firefox
-
-
-
Joined on 12-24-2006
-
-
Posts 909
-
-
-
-
|
Hi Jimmy, I have checked the problem and I think it would be fixed in one week. Thanks. Best regards.
Hans Zhang Product Developer Aspose Changsha Team About UsContact Us
|
|
-
04-18-2008, 4:24 AM |
-
04-20-2008, 4:48 PM |
-
Klepus
-
-
-
Joined on 06-01-2007
-
-
Posts 1,071
-
-
-
-
|
Hello!
Thank you for your interest in Aspose products.
I have reproduced the issue with failing BindXML and logged it in our defect database. In this case Aspose.Words produces incorrect XML.
#4887 – Manipulations with bookmarks corrupt the model.
We’ll investigate it and provide more information here in the thread. As a workaround you can try reorganizing the document. Maybe removing some section breaks could help.
Regards,
Viktor Sazhaev Software Engineer, Aspose Auckland Team
|
|
-
04-20-2008, 8:42 PM |
-
mechjman
-
-
-
Joined on 04-10-2008
-
-
Posts 12
-
-
-
-
|
Hi!
Many thanks on the quick fix. The formatting issues that was found previously has been fixed. Only issue now is the occasional carriage return that goes missing, so I have to use page breaks to force text to flow like the Word document.
|
|
|
|