How do I add my own pdf export button to the Report Viewer?

Expand / Collapse
 

How do I add my own pdf export button to the Report Viewer?


Question:

I want to add my own export button to the Report Viewer, what is the code sample for doing this?

Answer:

The code sample is in html:  



<img src="rs.aspx?image=pdf.gif" onclick="window.location='<%=string.Format("{0}?{1}&output=pdf",Request.ServerVariables["PATH_INFO"],Request.ServerVariables["QUERY_STRING"])%>'">


Details
Type: How-To
Options