You can render reports hosted on ActiveReports Server to PDF or Excel format using the RenderReport method. This topic explains how to render an XML-based section report to PDF format.
Paste in the Address box, replacing 8080 with the site port where you installed ActiveReports 12 Server. |
Copy Code
|
---|---|
http://localhost:8080/ReportService.svc |
Confirm the value of the address attribute in the endpoint element of the app.config file |
Copy Code
|
---|---|
<client> |
Visual Basic
Visual Basic code (Add to the list of Imports statements at the top of the code.) |
Copy Code
|
---|---|
Imports System.IO Imports System.Net Imports RenderReport.ReportService |
C#
C# code(Add to the list of using statements at the top of the code.) |
Copy Code
|
---|---|
using System.IO; using System.Net; using RenderReport.ReportService; |
Visual Basic
Visual Basic code (Paste the following code into the Main method of the Module1 module declaration) |
Copy Code
|
---|---|
Dim serverUserName = "USER" ' Get the report description of output target. ' Output into PDF If info.State = RequestState.Accomplished Then |
C#
C# code (Paste the following code into the Main method of the Program class declaration) |
Copy Code
|
---|---|
var serverUserName = "USER"; // Get the report description of output target. // Output into PDF if (info.State == RequestState.Accomplished) |