ComponentOne VSView Reporting Edition
VSReport Control

All of the properties, methods, and events for the VSReport control are listed below, and are documented in the following sections. Properties, methods, and events that apply only to this control, or that require special consideration when used with it, are marked with an asterisk (*). These are documented in later sections. For documentation on the remaining properties, see the Visual Basic documentation.

 

Properties

 

*Cancel

Returns or sets whether to cancel generation of the current report.

*DataSource

Returns the current report's DataSource object.

*DoEvents

Returns or sets whether the control should process Windows messages while rendering reports.

*Fields

Returns the current report's Fields collection.

*Font

Returns or sets the default font for new fields.

*Groups

Returns the current report's Groups collection.

*IsBusy

Returns whether a report is currently being generated.

*Layout

Returns the current report's Layout object.

*MaxPages

Returns or sets the maximum number of pages allowed for a report.

*OnClose

Returns or sets the VBScript handler for the OnClose event.

*OnError

Returns or sets the VBScript handler for the OnError event.

*OnNoData

Returns or sets the VBScript handler for the OnNoData event.

*OnOpen

Returns or sets the VBScript handler for the OnOpen event.

*OnPage

Returns or sets the VBScript handler for the OnPage event.

*Page

Returns or sets the current page number.

*ReportName

Returns or sets the name of the report.

*Sections

Returns the current report's Sections collection.

Tag

Stores any extra data needed for your program.

 

Methods

 

*Clear

Clears the current report.

*Copy

Copies all the information from an existing report object.

*Evaluate

Evaluates a VBScript expression in the current report context.

*Execute

Executes a VBScript statement in the current report context.

*GetReportInfo

Returns information from a report definition file.

*Load

Loads a report from an XML report definition file.

*Render

Renders a report into a VSPrinter control.

*RenderToFile

Renders a report into a file.

*RenderToFileWithLock

Renders a report into a file and is thread-safe for use in ASP applications.

 

Events

 

*OnClose

Fired when the control finishes rendering the report.

*OnError

Fired when an error occurs while rendering a report.

*OnFormat

Fired before the Section is formatted.

*OnNoData

Fired when the control starts rendering a report and the source recordset is empty.

*OnOpen

Fired when the control starts rendering the report, before it opens the source recordset.

*OnPage

Fired when the control finishes rendering each page.

*OnPrint

Fired before the Section is printed (after it is formatted).

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback