BIRT Exchange Forum: Export to Microsoft Word DOC from BIRT problem - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Export to Microsoft Word DOC from BIRT problem Rate Topic: -----

#1 User is offline   Dejan8888 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 14-May 12


Posted 04 June 2012 - 12:34 PM

Hi,

I previously had a problem with Cyrillic letters (they have not been pretty displayed ) to be shown in PDF when I export it from Maximo.
I solved it. So I changed fontsConfig.xml and fontsConfig_pdf.xml files!

I changed mapping in them:
<mapping name="serif" font-family="Arial Unicode MS" /> to Arial Unicode MS
and also encoding (this is for Cyrillic letters)
<encoding font-family="Arial Unicode MS" encoding="Cp1251" />

and also some composite font
<font font-family="Arial Unicode MS" catalog="Western" />

I changed this in this both files and now pdf is displayed correctly.

But now I have problem to export it to doc Microsoft Word:
when i export it in word non English letters are shown as little squares.
Font selected by default and presented in word is Lucida Sans Typewriter.If I manually select text in Word and then change font to Arial Unicode MS text is displayed OK.

So which file do I have to change for correct Word document when exporting from Maximo?

Is it only fontsConfig_linux.xml???Or and fontsConfig-win32?

I tried to put Arial Unicode Ms instead on Lucida Sans Typewriter on every place (balded ones below) but then I am getting format error corrupted document, and file is not opened!!! Now and my pdf is not opened.
I changed fontsConfig-linux file (I suppose this is for Word files?)

<?xml version="1.0" encoding="UTF-8"?>
<font>
<font-aliases>
<mapping name="serif" font-family="Arial Unicode MS" />
<mapping name="sans serif" font-family="Lucida Sans" />
<mapping name="monospace" font-family="Arial Unicode MS" />
<mapping name="cursive" font-family="Arial Unicode MS" />
<mapping name="fantasy" font-family="Arial Unicode MS" />
</font-aliases>
<composite-font name="all-fonts" default="Arial Unicode MS">
<font font-family="Arial Unicode MS" catalog="Western" />
<font font-family="ZYSong18030" catalog="Chinese" />
<font font-family="Baekmuk Batang" cataalog="Korean" />
<font font-family="Kochi Mincho" catalog="Japanese" />

</composite-font>
</font>


What do I have to change for correct word document export? And which files- fontsConfig_linux or...?
Thanks
0

#2 User is offline   Dejan8888 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 14-May 12


Posted 04 June 2012 - 10:27 PM

Can someone please help me with this?
0

#3 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12953
  • Joined: 16-May 08


Posted 06 June 2012 - 09:41 AM

So, if you change the above config file to use Arial Unicode MS instead of Lucida Sans, you get errors? Have you tried different combinations of which ones you change? Like, only change the mapping ones and not the composite font ones? etc?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#4 User is offline   Dejan8888 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 14-May 12


Posted 06 June 2012 - 11:24 AM

Hi,

thanks for reply and effort I really need help for this.
Firstly I didn't change it to Arial Unicode and then I could open my document but all letters except for English ones, was displayed as little squares.
Does for correct Word format it is only enough to change fontConfig_linux? Why when I changed this to Arial_Unicode my PDF file also can not be opened? Like the change in this file also effects and PDF export which I finally managed to set. But how then to set font for correct WORD document? It is not problem on the WORD side because when I select text and change it manually in Arial Unicode WORD everything is OK.
If fontConfig linux is not supposed to be changed where then I to change this to some format other from Lucida for WORD?

I tried three different combinations but without success-always getting error format error or doc corrupted.
Hope you can help me,regards!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users