PDA

View Full Version : import a Report



nicolas_gsid
01-25-2007, 07:10 AM
Hi,
I'd like to import a JFreeReport (HTML) in a JSP file to create a dashboard.
How can i use an xaction file in a jsp file?
example : have my report in html shown in a scroll panel.

Any idea?

guser
01-25-2007, 08:24 AM
nicolas,

try this.



// run the action sequence 'samples/dashboard/jsp/report.xaction'
ChartHelper.doAction( "samples", "dashboard/jsp", "report_name.xaction", "sampled", parameters, outputStream , userSession, messages, null );


nicolas hope this helps U, to display u r report as dashbosrd in jsp.
instead of "ChartHelper.dochart" call "ChartHelper.doAction".

nicolas_gsid
01-25-2007, 11:16 AM
Yeah, It works-
Thanks for this quick answer

An idea about how to hide "header" infos like
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JFreeReport-WizardReport</title>
<link rel="stylesheet" type="text/css" href="http://localhost:8080/pentaho/getImage?image=tmp_chart39727.css">
</head>
<body>coming from the html report?

aparna_dev
06-02-2008, 09:28 AM
hi nicolas,

I tried the same, but doesnt work. Can u help please?

Please check my previous post.


http://forums.pentaho.org/showthread.php?p=188712#post188712