ActiveReports 9 Server
Open the Designer without Selecting a Model

If you want to make report designing even faster for your business users, you can allow them to skip the steps involved in selecting a data model. Use the new DataModel property so they can just click a button to open the designer on a blank report with a pre-selected data model, or copy the Create report link from the models list.

This topic assumes that you are already familiar with how to Use the Designer Web Control.

To code a button click event to open a blank report with data

  1. From the Visual Studio Standard toolbox, drag a Button control and drop it onto your Web form.
  2. Double-click the button to create a Click event handling method in the code view.
  3. Paste code like the following into the event to open a blank report in the designer with a pre-selected data model.
    C# code. Paste INSIDE the Button Click event.
    Copy Code
    this.Designer1.ModelName = "ActiveTunes (Sample)";
    this.Designer1.ReportAction = ActiveReports.Server.ReportControls.ReportAction.Create;
    

To copy the Create report link

  1. From the Administrator Dashboard, open the Models page.
  2. In the list of models, find the model that you want to use and, to the right of the model, click the Create report command.
  3. In the browser's address bar, select the URL and copy it.
  4. You can use this link as a hyperlink or in a response.redirect command.
See Also

Reference

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum