New, unmanaged reports on a file path accessible to a RAS server can be created using the ReportClientDocument.New method.
|
|
|
Do not use the ReportAppFactory.NewDocument method, which is reserved for creating new, managed reports in a SAP BusinessObjects Enterprise repository. |
|
Visual Basic |
|
|
Dim rcd As ReportClientDocument = New ReportClientDocumentClass() |
|
|
C# |
|
|
ReportClientDocument rcd = new ReportClientDocumentClass(); |
|
|
Visual Basic |
|
|
rcd.ReportAppServer = "hostname:port" |
|
|
C# |
|
|
rcd.ReportAppServer = "hostname:port"; |
|
|
Visual Basic |
|
|
rcd.New() |
|
|
C# |
|
|
rcd.New(); |
|
|
Visual Basic |
|
|
Dim reportDirectory As String = "C:\" |
|
|
C# |
|
|
string reportDirectory = "C:\\"; |
|
The following code creates a new, blank, unmanaged report called MyNewReport.rpt in a folder located at C:\MyReports\.
|
Visual Basic |
|
|
Private Sub CreateNewUnmanagedReport() |
|
|
C# |
|
|
private void CreateNewUnmanagedReport() |
|
This list includes the namespaces used by the sample code:
After creating a new, blank report, the report can be further modified to establish a data source connection, add tables and table links, and design the layout.
© 2021 SAP AG. All rights reserved.
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites