Unmanaged reports can be opened from a file path accessible to the RAS server and stored as a ReportClientDocument object.
|
|
|
The report must reside in a directory that the RAS server has access to. |
|
Visual Basic |
|
|
Dim path As Object = CType(reportPath, Object) |
|
|
C# |
|
|
object path = (object)sampleReportPath; |
|
|
Visual Basic |
|
|
Dim rcd As ReportClientDocument = New ReportClientDocumentClass() |
|
|
C# |
|
|
ReportClientDocument rcd = new ReportClientDocumentClass(); |
|
|
Visual Basic |
|
|
rcd.ReportAppServer = "hostname:port" |
|
|
C# |
|
|
rcd.ReportAppServer = "hostname:port"; |
|
The second parameter accepts an integer value that specifies the open options. See the CdReportClientDocumentOpenOptionsEnum enumeration for details.
|
Visual Basic |
|
|
rcd.Open(reportPathObject, CType(CdReportClientDocumentOpenOptionsEnum.cdReportClientDocumentOpenAsReadOnly, Integer)) |
|
|
C# |
|
|
rcd.Open(ref reportPathObject, (int)CdReportClientDocumentOpenOptionsEnum.cdReportClientDocumentOpenAsReadOnly); |
|
A ReportClientDocument object is created that represents the report, and can be modified using the controllers in this class.
The following code opens an unmanaged report called World Sales Report.rpt from a file path accessible to the RAS server.
|
Visual Basic |
|
|
Private Function OpenSampleReport_unmanagedRAS(ByVal sampleReportPath As String) As ISCDReportClientDocument |
|
|
C# |
|
|
private ISCDReportClientDocument OpenSampleReport_unmanagedRAS(String sampleReportPath) |
|
This list includes the namespaces used by the sample code:
© 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: Easily create Help documents