Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Multiple Masterpages?
Multiple Masterpages? [message #143176] Sat, 11 March 2006 10:51 Go to next message
Peter Fopma is currently offline Peter FopmaFriend
Messages: 81
Registered: July 2009
Member
Not long and I'll start begging for an answer!

Can anybody tell we whether it is possible to have multiple
MasterPages. And if, can a single report use both?
Or is there another way to mix landscape and portrait?
Or is it planned to support this in the future?
Or should 'Automatic' in the MasterPage do the trick? Well, it doesn't
for me...

Please, a short answer - Yes, you can! Or No, forget it! And we never will!

Thanks
Peter
Re: Multiple Masterpages? [message #143257 is a reply to message #143176] Sun, 12 March 2006 16:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: David.Peterson.mtvnmix.com

Peter,

I'm far from a Birt expert, but I hope this helps you. The module API does
reference multiple master pages in the pageSetup section.
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. birt.doc/birt/birt-24-18.html
So it appears to be possible at least. As for the automatic, there is a
caveat for that in the API that auto doesn't work if the pageType is custom.
<The page orientation. The allowable values for this property are Portrait,
Landscape and Auto, which is the default. This property is ignored if
pageType is set to Custom.>
However, I'd think that you could still use Custom and override the
orientation to what you want via scripting at run time.


"Peter Fopma" <peter.fopma@ifb-group.com> wrote in message
news:3b34e0963471a45f8470263eefab58af$1@www.eclipse.org...
> Not long and I'll start begging for an answer!
>
> Can anybody tell we whether it is possible to have multiple
> MasterPages. And if, can a single report use both?
> Or is there another way to mix landscape and portrait?
> Or is it planned to support this in the future?
> Or should 'Automatic' in the MasterPage do the trick? Well, it doesn't
> for me...
>
> Please, a short answer - Yes, you can! Or No, forget it! And we never
> will!
>
> Thanks
> Peter
>
>
Re: Multiple Masterpages? [message #143735 is a reply to message #143257] Tue, 14 March 2006 15:13 Go to previous messageGo to next message
Peter Fopma is currently offline Peter FopmaFriend
Messages: 81
Registered: July 2009
Member
Hi David,

Yes, the API appears to support multiple masterpages, but calling
the add-method to add a second masterpage yields an error that there
already is a masterpage!? That really puzzles me...

As far a I understand does setting the orientation via scripting set
the orientation for the whole report. I need to mix the orientation
within a report. Do you have an approach how this could be done?

Thanks
Peter
Re: Multiple Masterpages? [message #144096 is a reply to message #143735] Wed, 15 March 2006 17:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: David.Peterson.mtvnmix.com

I hope this helps.

Here is an example of setting up a report library.
http://www.theserverside.com/articles/article.tss?l=EclipseB RT

From Module->PageSetup BIRT documentation:
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. birt.doc/birt/birt-24-18.html
PageSetup
Defines the way that the report appears when printed. It consists of a
master page that defines the page size, page decoration, margins and so
forth. Some reports need to use different master pages, perhaps to have the
first page of the report appear in letterhead, with the remaining pages on
plain paper. Other reports may be printed and bound, requiring differing
page layout for the left and right pages.

A report can omit the page setup information, in which case page setup is
taken from a library, if provided. If the library is not provided or does
not have a page setup, or the master page does not have page dimensions, the
setup comes from BIRT preferences, or from locale-specific defaults.

If the user lists multiple master pages, but no page sequences, BIRT uses
the first master page by default. If the user defines one or more page
sequences, BIRT uses the first page sequence by default. Other than these
two cases, the order of elements within the page setup slot is unimportant.

This slot defines a name space; the name of each master page and page
sequence must be unique across the set of other page setup elements.

The page setup element can contain zero or more master pages of either type
and zero or more page sequences of either type.
Re: Multiple Masterpages? [message #144190 is a reply to message #143735] Wed, 15 March 2006 19:20 Go to previous messageGo to next message
Cristian Popescu is currently offline Cristian PopescuFriend
Messages: 206
Registered: July 2009
Senior Member
Hi. Does anyone knows if it's possible to use several BIRT masterpages in
the same report? Or to include several reports with different masterpages
in a main report... Can I also use several page formatting in the same
report (ex: some pages are plain, others are landscape format). If yes,
can you provide me a short guidance how do do it, please? From what I saw
the template and library option don't allow to create a report with
multiple master pages and switch between them inside the report according
to the subreports.

Thank you,
Cristian
Re: Multiple Masterpages? [message #144515 is a reply to message #143735] Thu, 16 March 2006 15:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: David.Peterson.mtvnmix.com

I think perhaps you cannot do it in the eclipse plugin, but you can do it
via java code. Please see this example as it may help guide you into how to
do it.

http://www.eclipse.org/birt/phoenix/deploy/DeDemo.java
Re: Multiple Masterpages? [message #144579 is a reply to message #143735] Thu, 16 March 2006 16:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: David.Peterson.mtvnmix.com

You can definitely do this, I'm still trying to figure out how. See
documentation:
http://dev.eclipse.org/viewcvs/index.cgi/source/org.eclipse. birt.report.model/romdoc/Specs/ROM%20Page%20Setup%20SPEC.doc ?cvsroot=BIRT_Project&rev=1.3
Re: Multiple Masterpages? [message #144737 is a reply to message #143735] Thu, 16 March 2006 21:15 Go to previous message
Eclipse UserFriend
Originally posted by: David.Peterson.mtvnmix.com

I've put an enhancement request into BIRT asking that they document how to
do this. Feel free to bookmark, vote for, etc.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=132246
Previous Topic:Static Birt Reports
Next Topic:initialization of report parameters
Goto Forum:
  


Current Time: Fri Oct 04 04:18:44 GMT 2024

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

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

Back to the top