Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Wrapped texts when export to ODP
Wrapped texts when export to ODP [message #1015639] Fri, 01 March 2013 13:58 Go to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi all,

I would like to export my report to a presentation. Since the MS Office 2010 is not supported with PPT emitter,
I'm trying to export to ODP.

But I have problems with text components. The ODP emitter somehow computes text width smaller it should be,
so almost all texts (bigger than 7pt) are wrapped.

index.php/fa/13640/0/

One can adjust the text's width with handles in the opened presentation. Adding minimal amount (something like 1 px) is sufficient
and the text gets inline. It's really annoying.

Do you have any idea how to fix that?

Edit:
Looking at OdpPage class, there is this comment
protected void drawText( String text, float textX, float textY, float baseline,
		float width, float height, TextStyle textStyle ) {

    // width of text is enlarged by 1 point because the text will be
    // automatically wrapped if the width of textbox equals to the width of
    // text exactly.
    
    ...
I don't know what that means, but it exactly happens to me, the text is wrapped.

[Updated on: Fri, 01 March 2013 14:07]

Report message to a moderator

Re: Wrapped texts when export to ODP [message #1015740 is a reply to message #1015639] Sat, 02 March 2013 01:49 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

It looks like a bug. What is your version? If not using 4.2.1, can you try downloading it and seeing if it has the same issue. If it does, please log a bug for it. Are you using fixed layout or auto layout?

Michael

Developer Evangelist, Silanis
Re: Wrapped texts when export to ODP [message #1015911 is a reply to message #1015740] Mon, 04 March 2013 09:04 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
I'm using version 3.7.2, but the same happens with 4.2.2. I have filled a bug for this - https://bugs.eclipse.org/bugs/show_bug.cgi?id=402274

By the way, could you please answer me for my question here? If you don't, nobody does.
Previous Topic:Birt don't start
Next Topic:Replace string in various queryText
Goto Forum:
  


Current Time: Thu Sep 03 13:12:51 GMT 2015

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

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