Page breaks using the API [message #250265] |
Sun, 29 July 2007 14:50  |
Eclipse User |
|
|
|
I want to add a page break that is always_after to a table. While this
is easy enough in the Designer I am trying to do this using the API.
Do I use styles? If so how, I always get a null from table.getStyle. I
f I create a new style from the element factory when I try
table.setStyle(newStyle) I get "The style "NewStyle" used by
Table("table") is not found"?
Any suggestions on how to do something as simple as add a page break to
a report item using the API?
Thanks,
Lester
|
|
|
|
|
Re: Page breaks using the API [message #250879 is a reply to message #250754] |
Wed, 01 August 2007 23:50  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Lester,
Look at the ROM
http://www.eclipse.org/birt/phoenix/ref/rom/elements/Table.h tml
Jason
Lester Mundt wrote:
> Thanks Jason,
>
> This worked quite well. One last question though were is the best place
> to find all the properties and the possible values for a given report item.
>
> I realize for a single item I could use getProperties to see the
> available properties but it won't provide the potential values.
>
> Is there some documentation somewhere?
>
> Thanks,
> Lester
>
>
> Jason Weathersby wrote:
>> Lester,
>>
>> This is a property of the table and you should be able to do this
>> using the TableHandle like:
>>
>> th.setPropertyBinding("pageBreakAfter", "always");
>> Jason
>>
>> Lester Mundt wrote:
>>> I want to add a page break that is always_after to a table. While
>>> this is easy enough in the Designer I am trying to do this using the
>>> API.
>>>
>>> Do I use styles? If so how, I always get a null from
>>> table.getStyle. I f I create a new style from the element factory
>>> when I try table.setStyle(newStyle) I get "The style "NewStyle" used
>>> by Table("table") is not found"?
>>>
>>> Any suggestions on how to do something as simple as add a page break
>>> to a report item using the API?
>>>
>>> Thanks,
>>> Lester
|
|
|
Powered by
FUDForum. Page generated in 0.03929 seconds