ComponentOne VSView Reporting Edition
OnError Event

Fired when an error occurs while rendering a report.

Syntax

Private Sub VSReport_OnError( ByVal Number As Long, ByVal Description As String, Handled As Boolean)

Remarks

The parameters for the OnError event are described below:

Number As Long

This parameter contains a code that identifies the type of error. Possible values for this code are:

 

Value

Description

1000

Can't create XML parser (check whether MSXML.DLL is present and registered.)

1001

Can't open XML report definition file.

1002

Report definition not found in XML file.

1003

Can't create ADO objects (check whether MSADO15.DLL is present and registered.)

1004

Can't open connection (check Connection string).

1005

Can't open recordset (check RecordSource string).

1006

Bad or missing data source for subreport.

1007

Error loading report (check XML syntax).

1008

Can't open recordset (check Sort and Filter expressions).

1009

Can't create VSPrinter object (is VSPRINTER8.ocx present and registered?)

1010

Can't start document (VSReport object is busy).

1011

Can't start document (VSPrinter object is busy).

1012

Failed to filter recordset. Check the Filter property for the report and the Text property for any Subreport fields.

1013

Failed to sort recordset.

1014

This feature is unavailable to preserve browser security.

 

Description As String

This parameter contains a description of the error.

Handled As Boolean

The default value for this parameter is False, which indicates that the error has not been handled and that the control should raise an exception. Set it to True to indicate that you have handled the error and the control should ignore it and continue rendering the report.

 

 


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

Product Support Forum  |  Documentation Feedback