ReportDocument Methods

Public Methods

Method Description
Public method Close  Closes the report.
Public method EnableEventLog  Enables the event log for the print engine. By default the log is not enabled.
Public method Export  Exports a report to a format and destination specified within the ExportOptions Object.
Public method ExportToDisk  Exports a report to a file in the specified format.
Public method ExportToHttpResponse  Overloaded. Exports a report to the response object in the specified format.
Public method ExportToStream  Exports a report to a stream in the specified format.
Public method GetConcurrentUsage  Returns the number of concurrent jobs opened allowing developers to build license monitoring into their applications.
Public method Load  Overloaded. Loads a new report and sets the OpenReportMethod enumeration. If a report is already loaded, then it is closed and a new one is opened.
Public method OpenSubreport  Opens a subreport contained in the report and returns a ReportDocument object corresponding to the named subreport.
Public method PrintToPrinter  Prints the specified pages of the report to the printer selected using the PrintOptions.PrinterName property. If no printer is selected, the default printer specified in the report will be used.
Public method Refresh  Removes saved data. This causes fresh data to be loaded when the report is subsequently viewed.
Public method SaveAs  Overloaded. Saves the report and its data into the specified file.
Public method SetCssClass  Sets the cascading style sheet (CSS) for various sections and report objects.
Public method SetDatabaseLogon  Overloaded. Sets the database logon information with a user name and password.
Public method SetDataSource  Overloaded. Passes an Object to the report engine.
Public method SetParameterValue  Overloaded. Sets the current value of a parameter field at the specified index. The value can be a primitive, ParameterValue, an array of either type, or a ParameterValues collection.
Public method VerifyDatabase  Checks whether the database connection is active for the report that is loaded by the ReportDocument object.

Top

See Also

Reference

ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace