Export to Microsoft Word DOC from BIRT problem
#1
Posted 04 June 2012 - 12:34 PM
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
#3
Posted 06 June 2012 - 09:41 AM
#4
Posted 06 June 2012 - 11:24 AM
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!






MultiQuote





