You can download the reports uploaded in the ActiveReports Server using the Download method and can save it into report definition format. This topic explains how to download an XML-based section report to PDF format.
Paste in the Address box, replacing 8080 with the site port where you installed ActiveReports 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> |
Add INSIDE the binding element of the app.config file |
Copy Code
|
---|---|
<bindings> <wsHttpBinding> <binding name="WSHttpBinding_IReportService" maxReceivedMessageSize="10000000"> <security mode="None" /> </binding> </wsHttpBinding> </bindings> |
Visual Basic
Visual Basic code (Add to the list of Imports statements at the top of the code.) |
Copy Code
|
---|---|
Imports System.IO |
C#
C# code(Add to the list of using statements at the top of the code.) |
Copy Code
|
---|---|
using System.IO; |
Visual Basic
Visual Basic code (Paste the following code into the Main method of the Module1 module declaration) |
Copy Code
|
---|---|
Dim serverUserName As String = "USER" ' Get the report description of the output target For Each des As ReportDescription In description ' Get the encoded form data
|
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 the output target // Get the encoded form data // Specify the target folder System.IO.FileStream outFile = new System.IO.FileStream(outFileName, |