Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Word 2013 can't render xml based docs correctly
Word 2013 can't render xml based docs correctly [message #1441062] Thu, 09 October 2014 07:56 Go to next message
Poh Jun Wei is currently offline Poh Jun WeiFriend
Messages: 6
Registered: October 2014
Junior Member
Hi all, I am facing the exact same problem with this guy. But since there is no response to it, I re-post the problem again at here.

"I use the BIRT reporting tool to generate word reports for the company I work for.
The tool outputs an xml based word doc and up until now there has been no issues with our reports, until we started using Office 2013.
I am confident that this is not an issue with the tool as previous versions of it and the current version have worked fine with previous versions of word but we are now seeing issues with older and current versions of our reports in word 2013.

The same report viewed in office 2010 looks perfect but it 2013 random tables in the report start getting torn apart or go missing, there are formatting errors and text get overlapped from one line into another .
It differs from report to report where the errors occur but given the same report viewed on multiple devices running office 2013 the errors appear in the same place, so its not a completely random occurrence.

It is also not a view issue as I have printed the docs and printing from 2010 is fine, but 2013 still has a large amount of errors.
In some cases when printing 2013 takes information in one column from one cell and puts it into another cell above or below it, all other cells get populated correctly but this one column gets populated with the wrong information in each of the cells.
This is what has led me to believe that it must be an issue with word as the idea of skipping around an xml file to pick an element that is not in sequence points to an obvious flaw in its ability to render xml correctly.

Viewing the doc in its raw xml form it seems to have the correct tags.
My question is can someone point me somewhere where I could do a comparison of what xml tags are expected in 2010 vs 2013 and if there has been any change to the schema?
Or if someone has the knowledge; is this a known issue and is there a bug in 2013 that causes this?"

The Birt version I'm using is 2.5.1. Is there any known solution or explanation to it?
Re: Word 2013 can't render xml based docs correctly [message #1441487 is a reply to message #1441062] Thu, 09 October 2014 20:10 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

In BIRT 4.3+, DOCX is available for the newer Microsoft Office suites. If you must use the older version of BIRT, you might need to create a new emitter for it. You could look at the 4.3 source to see the DOCX emitter code.

Michael

Developer Evangelist, Silanis
Re: Word 2013 can't render xml based docs correctly [message #1441627 is a reply to message #1441487] Fri, 10 October 2014 01:12 Go to previous messageGo to next message
Poh Jun Wei is currently offline Poh Jun WeiFriend
Messages: 6
Registered: October 2014
Junior Member
Michael Williams wrote on Thu, 09 October 2014 20:10
In BIRT 4.3+, DOCX is available for the newer Microsoft Office suites. If you must use the older version of BIRT, you might need to create a new emitter for it. You could look at the 4.3 source to see the DOCX emitter code.


Thanks for the response. However, I need to use this older version of Birt. Is it possible if I edit the report template of BIRT so that the output generated fits just nice in Word 2013?
Re: Word 2013 can't render xml based docs correctly [message #1441638 is a reply to message #1441627] Fri, 10 October 2014 01:38 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Unfortunately, I don't know that there will be anything you can do inside the report to get it to render properly. Your best bet would be to get the source code for 4.3, find the DOCX emitter and modify it to get it working in 2.5.1.

Michael

Developer Evangelist, Silanis
Re: Word 2013 can't render xml based docs correctly [message #1443621 is a reply to message #1441638] Mon, 13 October 2014 02:09 Go to previous messageGo to next message
Poh Jun Wei is currently offline Poh Jun WeiFriend
Messages: 6
Registered: October 2014
Junior Member
Michael Williams wrote on Fri, 10 October 2014 01:38
Unfortunately, I don't know that there will be anything you can do inside the report to get it to render properly. Your best bet would be to get the source code for 4.3, find the DOCX emitter and modify it to get it working in 2.5.1.


Thanks for the response again and sorry for the late reply. Ok, so now I'm going to need the new emitter but I'm not sure how to do it as I'm still new to Birt. I'll search around the forum. Thanks for helping.

[Updated on: Wed, 22 October 2014 02:10]

Report message to a moderator

Re: Word 2013 can't render xml based docs correctly [message #1449370 is a reply to message #1443621] Tue, 21 October 2014 08:55 Go to previous messageGo to next message
Poh Jun Wei is currently offline Poh Jun WeiFriend
Messages: 6
Registered: October 2014
Junior Member
Sorry for double posting but I need to clarify about the source code. Is there a .birt.report.engine.emitter.docx.jar in Birt 4.3 that I could use? Can I put it in Birt 2.5.1 after modifying it to make emitter work? Has it been done successfully before in other versions of Birt?
Re: Word 2013 can't render xml based docs correctly [message #1827986 is a reply to message #1441062] Thu, 28 May 2020 10:25 Go to previous message
Henning von Bargen is currently offline Henning von BargenFriend
Messages: 23
Registered: May 2011
Junior Member
This is years old, but recently I stumbled across a similar problem.

The reason is just that Microsoft changed behavior with Word 2013.

See https://answers.microsoft.com/en-us/msoffice/forum/all/word-2016-tables-appear-to-be-indented/42c7e4b1-7ba0-470b-90c5-12c1faaf8c4c

Converting the document in Word with File/Information/Compatibility/Convert can help.
Previous Topic:BIRT - 4.9 release
Next Topic:how to remove Null Value.
Goto Forum:
  


Current Time: Sun Oct 17 13:49:51 GMT 2021

Powered by FUDForum. Page generated in 0.01985 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top