Skip to main content



      Home
Home » Archived » BIRT » repost: Chart Output Format
repost: Chart Output Format [message #240906] Fri, 01 June 2007 15:11 Go to next message
Eclipse UserFriend
Originally posted by: eric.garrett.sybase.com

How do I go about programmatically setting the output format for my chart?
I build up a chart and place it on a report in a servlet, but I want to
alter it from the default of PNG to JPG or SVG. I can't seem to find it in
the
documentation.

I'm using BIRT 2.1.1.

Thanks,
Eric.
Re: repost: Chart Output Format [message #240936 is a reply to message #240906] Sat, 02 June 2007 01:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Eric,

I am not certain this is what you want, but you can do this in the
beforeFactory script like:

chrt =
reportContext.getReportRunnable().designHandle.getDesignHand le().findElement( "mychart");
chrt.setProperty( "outputFormat", "SVG" );

Name you chart.

Jason

Eric Garrett wrote:
> How do I go about programmatically setting the output format for my chart?
> I build up a chart and place it on a report in a servlet, but I want to
> alter it from the default of PNG to JPG or SVG. I can't seem to find it in
> the
> documentation.
>
> I'm using BIRT 2.1.1.
>
> Thanks,
> Eric.
>
>
Re: repost: Chart Output Format [message #240939 is a reply to message #240936] Sat, 02 June 2007 01:46 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

BTW in the 2.2 build this can be done by

var chart1 = this.getReportElement( "Chart1" );
chart1.setOutputType("JPG");

Jason

Jason Weathersby wrote:
> Eric,
>
> I am not certain this is what you want, but you can do this in the
> beforeFactory script like:
>
> chrt =
> reportContext.getReportRunnable().designHandle.getDesignHand le().findElement( "mychart");
>
> chrt.setProperty( "outputFormat", "SVG" );
>
> Name you chart.
>
> Jason
>
> Eric Garrett wrote:
>> How do I go about programmatically setting the output format for my
>> chart?
>> I build up a chart and place it on a report in a servlet, but I want to
>> alter it from the default of PNG to JPG or SVG. I can't seem to find
>> it in the
>> documentation.
>>
>> I'm using BIRT 2.1.1.
>>
>> Thanks,
>> Eric.
>>
>>
Previous Topic:dynamically selecting a data source
Next Topic:Problem with Charts and Solaris
Goto Forum:
  


Current Time: Sat Jul 19 05:26:30 EDT 2025

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

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

Back to the top