BIRT Exchange Forum: How to generate word report output when i submit the BIRT report from the application - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to generate word report output when i submit the BIRT report from the application Rate Topic: -----

#1 User is offline   ramshankar 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 42
  • Joined: 26-January 10

Posted 28 February 2010 - 10:39 AM

They have used following code with in the JSP for displaying the BIRT report.

function init()
{
actuate.load("viewer");
actuate.initialize( "<%=PORT_URL%>/", null, "<%=username%>", "<%=password%>", GetParamValue );
}

}
myViewer = new actuate.Viewer( "myViewerDivContainer" );
myViewer.setWidth(1000);
myViewer.setReportName("<%=Report_Name%>" );
myViewer.setParameters(
{
"pin_Market": theStatus['market']
}
);

myViewer.submit();

I would like to know what exactly do i need to do added to get generated in doc format instead of viewing in BIRT Viewer.
0

#2 User is offline   averma 

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 266
  • Joined: 08-August 07

Posted 03 March 2010 - 04:48 PM

Hi ramshankar,
You could use JSAPI call "actuate.Viewer.downloadReport" to download the report. At this time this API only supports PDF and HTML formats. Here is the link to documentation on JSAPI:
http://www.birt-exch...mming-jsapi.pdf


Ashwini
0

#3 User is offline   ramshankar 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 42
  • Joined: 26-January 10

Posted 03 March 2010 - 04:57 PM

I have gone through the document and found out JS API only supports PDF and HTML formats.

I want your expert opinion on feasibility using this approach, otherwise i will end up with alot of code change in application JSP.

Waiting for your reply
0

#4 User is offline   averma 

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 266
  • Joined: 08-August 07

Posted 04 March 2010 - 06:44 AM

Hi ramshankar,

The other option would be to use actuate.Viewer.showDownloadReportDialog JSAPI call to display a export report dialog window and let the user choose Word format from the drop down.

Ashwini
0

#5 User is offline   ramshankar 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 42
  • Joined: 26-January 10

Posted 04 March 2010 - 09:31 AM

I have some how convince my client to choose Word Format from the Drop Down Tool bar. Other wise i have to change the existing approach used to call the birt report using JS API from the application.
0

#6 User is offline   ramshankar 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 42
  • Joined: 26-January 10

Posted 04 March 2010 - 04:47 PM

I am planning to use the below approach for generating word doc.

1.
http://localhost:890...me=/Public/BIRT and BIRT Report Studio Examples/Sales by Customer.rptdesign&__format=doc

2.
http://localhost:890...d=&__format=doc

Please let me know which one is better ?
0

#7 User is offline   averma 

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 266
  • Joined: 08-August 07

Posted 05 March 2010 - 10:22 AM

Hi ramshankar,
My recommendation would be #1.

Ashwini
0

#8 User is offline   ramshankar 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 42
  • Joined: 26-January 10

Posted 05 March 2010 - 10:51 AM

I appreciate your guidance.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users