Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » The 3D chart from our app is not same with birt designer's preview
The 3D chart from our app is not same with birt designer's preview [message #554773] Tue, 24 August 2010 11:52 Go to next message
Ricky Ru is currently offline Ricky RuFriend
Messages: 14
Registered: February 2010
Junior Member
Hi friends,

I have a simple birt report which contains a jdbc data source and a data set. I created a 3D chart using some of the data set columns. I am able to preview the 3D chart in birt designer. We also have an application developed based on birt engine API. User also can use it to run the birt report instead of birt designer. But the result(3D chart) is not same as the one previewed in birt designer for some 3D chart reports. I mean the contents of the images are not same. Sometimes they have a big difference.

Since our application is complexed and it's not developed by me. It's not easy to find where the issue is.
So, my thought is that If I can write a java class which uses birt engine to run the report, it will be very helpful to find the reason because it gets rid of much unnecessary code in our app.

But I am a beginner in birt, do you have some resource to demonstrate how the java class should be written? Any feedback is welcome!

Thanks,
-Ricky
Re: The 3D chart from our app is not same with birt designer's preview [message #554869 is a reply to message #554773] Tue, 24 August 2010 15:00 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

In the report engine download there is a ReportRunner class and a bat
file to run the report if you want. Also to build a simple Java app
take a look at this:
http://wiki.eclipse.org/Simple_Execute_%28BIRT%29_2.1 Make sure to
scroll down and use the BIRT 2.2 sample. Add the libs from the report
engine download and set the birt home to the reportengine directory and
the sample should work.

Jason

On 8/24/2010 7:52 AM, Ricky Ru wrote:
> Hi friends,
>
> I have a simple birt report which contains a jdbc data source and a data
> set. I created a 3D chart using some of the data set columns. I am able
> to preview the 3D chart in birt designer. We also have an application
> developed based on birt engine API. User also can use it to run the birt
> report instead of birt designer. But the result(3D chart) is not same as
> the one previewed in birt designer for some 3D chart reports. I mean the
> contents of the images are not same. Sometimes they have a big difference.
>
> Since our application is complexed and it's not developed by me. It's
> not easy to find where the issue is. So, my thought is that If I can
> write a java class which uses birt engine to run the report, it will be
> very helpful to find the reason because it gets rid of much unnecessary
> code in our app.
>
> But I am a beginner in birt, do you have some resource to demonstrate
> how the java class should be written? Any feedback is welcome!
>
> Thanks,
> -Ricky
>
Re: The 3D chart from our app is not same with birt designer's preview [message #554975 is a reply to message #554869] Wed, 25 August 2010 03:16 Go to previous messageGo to next message
Ricky  is currently offline Ricky Friend
Messages: 9
Registered: June 2010
Junior Member
Hi Jason,

Thank you.
The result of my testing is same as our app. So, I think this may be a birt engine issue.

-Ricky

[Updated on: Wed, 25 August 2010 03:18]

Report message to a moderator

Re: The 3D chart from our app is not same with birt designer's preview [message #555019 is a reply to message #554975] Wed, 25 August 2010 08:22 Go to previous messageGo to next message
Ricky  is currently offline Ricky Friend
Messages: 9
Registered: June 2010
Junior Member
The problem occurs if there is much data in the table. At first, the table contained 1660 rows(3 columns with integer type) of data. I deleted 1200 rows and the problem disappeared. Maybe the data amount and the way the columns used to generate the chart caused birt engine could not properly render the complex image.

-Ricky
Re: The 3D chart from our app is not same with birt designer's preview [message #555153 is a reply to message #555019] Wed, 25 August 2010 15:57 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Ricky,

The designer only retrieves a limited amount of rows. It is
configurable in the preferences, but I believe it defaults to 400.

Jason

On 8/25/2010 4:22 AM, Ricky wrote:
> The problem occurs if there is much data in the table. At first, the
> table contained 1660 rows(3 columns with integer type) of data. I
> deleted 1200 rows and the problem disappeared. Maybe the data amount and
> the way the columns used to generate the chart caused birt engine could
> not properly render the complex image.
>
> -Ricky
>
Re: The 3D chart from our app is not same with birt designer's preview [message #555237 is a reply to message #555153] Thu, 26 August 2010 02:02 Go to previous message
Ricky  is currently offline Ricky Friend
Messages: 9
Registered: June 2010
Junior Member
Ooh, you are correct! There is a Note in the preview page in designer saying "The current maximum number of data rows is limited to 500". Clicking the link allows me to change the value to 2000. And everything is ok now.

I was not happy with that why QA did not find the Note before logging this issue. This really wasted me much time. But the good thing is I really learn something during this.

Thank you Jason.

-Ricky

Previous Topic:NoClassDefFound when creating/opening DataSet
Next Topic:Display of Image Using Scripted Data Source
Goto Forum:
  


Current Time: Thu Apr 25 15:09:14 GMT 2024

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

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

Back to the top