Download SuperReport Pro User Manual - e-Node
Transcript
SR Document SR Document(reportArea:L; document:S ) -> resultCode:L Parameter Data Type Description ReportArea Document C_LONGINT C_STRING(255) Report plug-in area Current document -> ResultCode C_LONGINT Result Code SR Document returns the current full-pathname for the defined SuperReport Pro area. ReportArea — The desired SuperReport Pro area. Document — A valid 4th Dimension variable, which will receive the full-pathname for the defined SuperReport Pro area. If the report area contains a new report or a report that was not read from disk, the Document parameter will contain a null string. -> Result Code —If the routine completed successfully, a value of zero will be returned; otherwise a valid SuperReport Pro result code will be returned. For a complete list of all return codes, please refer to the SuperReport Pro Error Codes section below. Example: The following example will load a report from disk using the SR Load Report routine, and then use the SR Document routine to determine the full-pathname of the selected file. C_TEXT(tSR_ReportPath) C_LONGINT(iSR_Err) iSR_Err:=SR Load Report (eReportArea) If(iSR_Err=0) iSR_Err:=SR Document (eReportArea;tSR_ReportPath) End if SuperReport Pro Page 111 of 226