Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Export block based on report template
Haris
hi,
I am using birt viewer in my java web application,and i have 5 reports file...4 report template need pdf and excel export option in birt viewer and 1 report template file need only excel export option....how to control export optionof birt viwer in rptdesign file.can some one help me on this topic.whether this can be done.
iam using birt version 2.5
Find more posts tagged with
Comments
mwilliams
You want to run the report in the web viewer and then have the option to export? One option could be to have a hyperlink next to the report listing however you present it to your users that says PDF or XLS and each link runs the report in the specified format with the viewer url parameter __format=pdf or format=xls.
Haris
Thanks for your reply
mwilliams
Did you solve the issue?
Haris
Hi williams,<br />
<br />
the issue is not yet solved...i want only certain type of export available for certain design file in the webviewer..<br />
<br />
eg:<br />
<br />
temp1.rptdesign needs excel and pdf export<br />
<br />
temp2.rptdesign needs ppt and word export<br />
<br />
how to get that in birt webviewer?<br />
<br />
below is what i have used in the framset<br />
<br />
<blockquote class='ipsBlockquote' ><p><span class='bbc_underline'>
http://localhost:8080/birt-viewer/frameset?__report=temp2.rptdesign__format=pdf__format=xls</span></p></blockquote>
;
mwilliams
I'm not sure how to remove options for the export menu conditionally for certain reports. This could involve changing the code of the viewer. My suggestion was to create two labels at the top of your report. One that says Export to XLS and one that says Export to PDF. Then, create a hyperlink on the label that creates the URL to run the report in XLS or PDF. Obviously you'd only put the XLS label at the top of report that only needs XLS exporting. You can then remove the "export" button from the toolbar by commenting it out in the ToolbarFragment.jsp file, so you don't have conflicting options for export.
abirtuser
What if I want to remove an export format for all reports? I cannot find a way to do that without modifying the code...
Haris
<blockquote class='ipsBlockquote' data-author="'abirtuser'" data-cid="81975" data-time="1314372658" data-date="26 August 2011 - 08:30 AM"><p>
What if I want to remove an export format for all reports? I cannot find a way to do that without modifying the code...<br /></p></blockquote>
<br />
Hi,<br />
<br />
I hope so you are asking for how to remove an particular export format(eg pdf,xls)from the export format dialog box.this can be done by modifying the <strong class='bbc'>viewer.properties</strong> file which is under <strong class='bbc'>\birtviewer\WEB-INF</strong>.<br />
suppose if you want to remove pdf format then go to viewer.properties file just remove or comment two lines<br />
<br />
# [EXTENSION SETTING]<br />
viewer.extension.pdf=pdf<br />
# [OUTPUT FORMAT LABEL NAME]<br />
viewer.label.pdf=PDF
abhijitKol
Hi All,<br />
I have commented the following in viewer.properties<br />
<br />
#viewer.extension.pdf=pdf<br />
<br />
#viewer.label.pdf=PDF<br />
<br />
But still the pdf option is coming,when I click on the "Export report" link.<br />
Could u plz tell me the solution.<br />
<br />
Thanks<br />
Abhijit<br />
<br />
<blockquote class='ipsBlockquote' data-author="'Haris'" data-cid="82005" data-time="1314601327" data-date="29 August 2011 - 12:02 AM"><p>
Hi,<br />
<br />
I hope so you are asking for how to remove an particular export format(eg pdf,xls)from the export format dialog box.this can be done by modifying the <strong class='bbc'>viewer.properties</strong> file which is under <strong class='bbc'>\birtviewer\WEB-INF</strong>.<br />
suppose if you want to remove pdf format then go to viewer.properties file just remove or comment two lines<br />
<br />
# [EXTENSION SETTING]<br />
viewer.extension.pdf=pdf<br />
# [OUTPUT FORMAT LABEL NAME]<br />
viewer.label.pdf=PDF<br /></p></blockquote>