MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

Question regarding HTML Handling in DOCX File #437

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I know you can take HTML and insert it into a DOCX file:  
https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainHTMLTextStyling

I need a way to take an HTML fragment and convert that to the equivalent DOCX 
XML format, but without having the context, handler, etc.  I just want to 
simply generate the XML that would be used in the DOCX file.  Is there any way 
to do that?

Original issue reported on code.google.com by mark.sal...@highq.com on 31 Aug 2014 at 1:01

GoogleCodeExporter commented 9 years ago
Today it's not possible. Context, handler, are required because you need update 
several XML entries (ex : for hyperlink XML entry which contains relashionship 
must be updated too).

Perhaps you post your question to convert HTML -> docx? If it that it was not 
designed to do that.

Original comment by angelo.z...@gmail.com on 31 Aug 2014 at 3:17

GoogleCodeExporter commented 9 years ago
Thanks.  That makes sense.  Of course, i now realize, any links must be added 
in a separate XML file.

Original comment by mark.sal...@highq.com on 31 Aug 2014 at 3:20

GoogleCodeExporter commented 9 years ago
Ok I close this issue.

Original comment by angelo.z...@gmail.com on 31 Aug 2014 at 3:22

GoogleCodeExporter commented 9 years ago
If you want to use HTML text styling outside the process of reporting, or 
understand how it works, you can see our JUNit 
https://code.google.com/p/xdocreport/source/browse/integrationtests/fr.opensagre
s.xdocreport.core.test/src/test/java/fr/opensagres/xdocreport/document/docx/text
styling/DocxDocumentHandlerTestCase.java

Original comment by angelo.z...@gmail.com on 31 Aug 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Ooops sorry, please see Junit at 
https://code.google.com/p/xdocreport/source/browse/document/fr.opensagres.xdocre
port.document.docx/src/test/java/fr/opensagres/xdocreport/document/docx/textstyl
ing/DocxDocumentHandlerTestCase.java

Original comment by angelo.z...@gmail.com on 31 Aug 2014 at 3:58

GoogleCodeExporter commented 9 years ago
cleanup

Original comment by pascal.leclercq on 10 Oct 2014 at 7:37