Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to get a custom property of a text item in emitter?
How to get a custom property of a text item in emitter? [message #555593] Fri, 27 August 2010 09:37 Go to next message
Ivan  is currently offline Ivan Friend
Messages: 3
Registered: August 2010
Junior Member
Hi,
I need to implement an editable text field in PDF with iText and BIRT 2.5.2.

Suppose that we creat a cell like following:

<cell id="5737">
<property name="colSpan">5</property>
<property name="rowSpan">1</property>
<property name="paddingLeft">15pt</property>
<property name="textAlign">left</property>

<property name="CUST_PROPERTY">left</property>

<text id="57371">

<property name="CUST_PROPERTY_2">left</property>

<property name="contentType">html</property>
<text-property name="content"><![CDATA[<B>Content</B>]]></text-property >
</text>
</cell>

In BIRT 2.3.2, ITextArea has the Interface getContent(), but in 2.5.2, that remove the method, so my question is:
In Emitter method
protected void drawTextAt( ITextArea text, int x, int y, int width, int height, TextStyle textInfo )
How can I get custom defined propery "CUST_PROPERTY" or "CUST_PROPERTY_2" here?

Thanks,
Re: How to get a custom property of a text item in emitter? [message #555679 is a reply to message #555593] Fri, 27 August 2010 15:14 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Ivan

Can you log a bugzilla entry for this?

Jason

On 8/27/2010 5:37 AM, Ivan wrote:
> Hi, I need to implement an editable text field in PDF with iText and
> BIRT 2.5.2.
>
> Suppose that we creat a cell like following:
>
> <cell id="5737">
> <property name="colSpan">5</property>
> <property name="rowSpan">1</property>
> <property name="paddingLeft">15pt</property>
> <property name="textAlign">left</property>
>
> <property name="CUST_PROPERTY">left</property>
>
> <text id="57371">
>
> <property name="CUST_PROPERTY_2">left</property>
>
> <property name="contentType">html</property>
> <text-property name="content"><![CDATA[<B>Content</B>]]></text-property >
> </text>
> </cell>
>
> In BIRT 2.3.2, ITextArea has the Interface getContent(), but in 2.5.2,
> that remove the method, so my question is:
> In Emitter method
> protected void drawTextAt( ITextArea text, int x, int y, int width, int
> height, TextStyle textInfo )
> How can I get custom defined propery "CUST_PROPERTY" or
> "CUST_PROPERTY_2" here?
>
> Thanks,
Re: How to get a custom property of a text item in emitter? [message #555839 is a reply to message #555679] Sun, 29 August 2010 12:07 Go to previous messageGo to next message
Ivan  is currently offline Ivan Friend
Messages: 3
Registered: August 2010
Junior Member
Hi Jason,
Thank you for your reply!

I create an entry for this,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323905
I don't know whether it is the right place.

Best regards,
Ivan
Re: How to get a custom property of a text item in emitter? [message #555885 is a reply to message #555679] Mon, 30 August 2010 03:03 Go to previous messageGo to next message
Ivan  is currently offline Ivan Friend
Messages: 3
Registered: August 2010
Junior Member
Done.
Any suggestion?
Re: How to get a custom property of a text item in emitter? [message #556068 is a reply to message #555885] Mon, 30 August 2010 17:20 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

The bug is logged in the correct location. Give the devs a couple of
days to have a look at it.

Thanks for logging it.

Jason

On 8/29/2010 11:04 PM, Ivan wrote:
> Done.
> Any suggestion?
Previous Topic:The minimum number of the libraries to run the BIRT?
Next Topic:Error when exporting Runnable JAR with BIRT
Goto Forum:
  


Current Time: Fri Apr 19 08:18:11 GMT 2024

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

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

Back to the top