ASP. NET

Contents

    - Requirements
    - Create ASPX
    -  Integration with IIS

Requirements

- Elixir Report Server
- .Net Framework > version  1.1
- Elixr Report Server Client (.Net) component i.e. ERSClient.dll and log4net.dll
- Integrating into  Internet Server

Writing your ASPX C# script with the  Server Client .Net Components
================================================

The Elixr Report Server .Net Client (com.elixirtech.ers2.client.ERSClient) components provide the API to interface with the Elixir Report Server. It provides the following basic functionalities

a) List the available filesystem in the Server Repository

API   public string[] GetFileSystems()
sample ERSClient ersclient = new ERSClient( .....  );
string[] values    = ersclient.GetFileSystems();
ersclient.Close();

b) List the available item in the filesystem as reports.

API   public string[] GetReports(string fs)
     
fs is the name of the file system you to list the report available
sample ERSClient ersclient = new ERSClient( .....  );
string[] values    = ersclient.GetFileSystems();
ersclient.Close();


c) Discover the parameters available with a report
           this allow you customize  GUI such as web forms  to submit to dynamics data to the server.

API   public Parameter[] GetParameters(String report)
     
fs is the name of the file system you to list the report available
sample ERSClient ersclient = new ERSClient( .....  );
Parameter[] values    = ersclient.GetParameters("/MyFileSystem/Myfolder/MyReport.rml" );

ersclient.Close();


d)  Request for generating report from report server

API   public JobInfo RenderReport(string reportName, Stream os, string mimeType, string propertylist, string target)
     
fs is the name of the file system you to list the report available
sample FileStream fs = new FileStream(cacheLocation+filename,  FileMode.CreateNew);    
...
ersclient.RenderReport(
            "/MyFileSystem/MyFolder/MyTemplate.rml",
            "application/pdf",
            fs,
            properties,
            "me"
        );  
ersclient.Close();


A full set of the ASPX files sample can be found in the source directory.

Integrating with ASP. NET with IIS

To deploy the Elixir Report Server .Net Client and the APSX script to IIS server. 

You will need to provide in the root directory a bin directory where it should contain the ERSClient.dll and log4net.dll. The other directory may contain the aspx file.
S
Walk through with deploying JSPX and Client's Component 
=========================================

Locate the Internet Information Server .

.Window Control Panel


Open to the Tree view of the IIS directory.


IIS


Select the Default Web Site node and right click to create a new Virtual Directory

IIS Website

Set  the virtual directory name

Mapping to Virtual


Set the physical location of the directory


Physical


Set Permission for excuting the script.

Access

Add aspx extension to be mapped to .Net framework.

Application Configuraiion


Select the .Net Framework application to run the script.


Add ASPX extension

Once this mapping is done. This completes the deployment steps. Next, verify the virtual path and file location of 'web.config'


verify properties

Start Elixir Report Server

Elixir Report Server Startup

Access the URL : http://localhost/ERApp/

Access Web Application

Click on 'To Start select this link' to list file systems

File System Listings

Click on 'ReportSamples' to list the reports in ReportSamples

Listing reports in ReportSample

Click on the links to generate erport in PDF format

Generated Report in PDF

Report Generation is complete and shown on the console of Elixir Report Server

Report Generation status