Hello, I created a new ssrs report and need to call this report from aspx page.
before that we have active reports when I click on btnprintpdf and btnprintexcel this will call active reports and generate the report;now currently no more active reports they are not working.so we created new ssrs report how can I call this from aspx page? We have a table called reportexporttype and this will take care how to export this in pdf or excel based on id's.
This is the url http://devpps02/ReportServer/ReportExecution2005.asmx This is the path /FinWeb/SN/Reports/EligibilityInformation
This is my aspx page
<%@ Control Language="c#" AutoEventWireup="True" Codebehind="DirectPG.ascx.cs" Inherits="GADOE.SN.Web.PageControl.DirectPG" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%> <%@ Register TagPrefix="igsch" Namespace="Infragistics.WebUI.WebSchedule" Assembly="Infragistics2.WebUI.WebDateChooser.v7.2" %> <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <asp:panel id="SearchPanel" Width="100%" Runat="server"> <TABLE id="Table1" cellSpacing="0" cellPadding="3" width="100%" border="0"> <TR> <TH class="tblHead"> Direct</TH></TR>
<TR> <TD style="WIDTH: 100%" align="right" bgColor="#eeeeee"> <asp:Button id="btnPrintPDF" runat="server" Font-Bold="True" BorderColor="LightGray" Text="Print PDF" BorderStyle="Ridge" BackColor="#EEEEEE" onclick="Page_Event"></asp:Button> <asp:Button id="btnXLS" runat="server" Font-Bold="True" BorderColor="LightGray" Text="Export to XLS" BorderStyle="Ridge" BackColor="#EEEEEE" onclick="Page_Event"></asp:Button></TD> </TABLE> </asp:panel>
and this is my code behind file
public void ProcessRequest(object sender, object eventtype) { string controlName=null; try { controlName=((System.Web.UI.WebControls.Button)eventtype).ID; switch(controlName) { case "btnPrintPDF": break; case "btnXLS": break; } } catch (BaseException ex) { if (ex.Message != "Thread was being aborted.") ExceptionManager.AppendException(ex, System.Web.HttpContext.Current); } catch(Exception cEx) { if (cEx.Message != "Thread was being aborted.") ExceptionManager.AppendException(new ControlException(702, "Error in DirectCTL:ProcessRequest", cEx), System.Web.HttpContext.Current, true); } }
Please help me..