ActiveReports 8 Server SDK
Using the ReportList Web Control
Show AllShow All
Hide AllHide All

The Web controls need to be directed to the server used for ActiveReports 8 Server in order to function. In your production application, specify the user name and password based on the current user and store information in the current session to persist these values.

To create a Log In page

  1. In Visual Studio, create a new C# ASP.NET Web Site.
  2. Open the Design view of your default Web Form and from the Standard section of the Toolbox, drag the following controls and drop them onto the body section of the Web Form, setting their properties as in the table below.

    Controls for the Log In page

  3. Double-click the button to create the button click event. The *.cs file for the page appears with the cursor inside the button click event.
  4. In the button click event, paste the following code to get the security token from the user.

    To get the security token from the user

  5. At the top, with the other using directives, paste the following code to use the Servicing namespace.

    To get the security token from the user

To add the ReportList control to a Web Form

  1. Add a second Web Form to your project, Default2.aspx.
  2. Open the Design view of your Web Form and from the toolbox, drag and drop the ReportList control onto the body section of the Web Form.

    If you need to add the control to your toolbox, drop down these steps.

  3. On the message box that appears, click Yes to automatically add .svc file to your Web site to give the report list access to proxy services.
  4. In the Properties window, set the ServerEndpointRootPath property to the URL that you want to use as the basis for all of the other URLs in your site, which can then be set as relative URLs.
  5. You can resize the control using the Properties grid by changing the Width property.

To direct the ReportList to the server used for ActiveReports 8 Server

You can specify the security token and ActiveReports 8 Server host using code in a Global Application Class.

You can also specify the user name, password, and ActiveReports 8 Server host in your web application's web.config file.

At run time, the ReportList control retrieves all of the reports from ActiveReports 8 Server, and provides buttons to export each to PDF, Word, and Excel.

See Also

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Send comments on this topic.