Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

RecordCount

Read only.

This property contains the total number of records in the Crystal Data Source recordset.

Example

Dim numRecords as Long

numRecords = myCRDataSource.CRDataSource_RecordCount

CRDataSource Methods

The Crystal Data Source type library defines the following two methods:

MoveFirst, Page 138

MoveNext, Page 138

MoveFirst

Sub MoveFirst()

Moves to the first record in the Recordset. The first record is set as the current record.

Example

myCRDataSource.CRDataSource_MoveFirst

MoveNext

Sub MoveNext()

Moves to the next record in the Recordset and sets that record to the current record. A Visual Basic error occurs if the current record before calling this method is the last record. Use EOF, Page 136 to determine if the current record is the last record in the recordset.

Example

If Not myCRDataSource.CRDataSource_EOF Then myCRDataSource.CRDataSource_MoveNext

End If

Crystal Data Source Object Models

138

Volume 3

 

4

Smart Viewer Object Models

What you will find in this chapter. . .

Crystal Smart Viewer/ActiveX Object Model Technical Reference, Page 140

...including an outline of the Object Model hierarchy, and the Objects listed alphabetically with their properties, methods, and events.

The Crystal Smart Viewer/Java Bean Technical Reference, Page 165

...including properties, methods, and events listed alphabetically.

Smart Viewer Object Models

139

Crystal Smart Viewer/ActiveX Object Model Technical

Reference

The following diagram outlines the Crystal Smart Viewer hierarchy.

The following Objects are discussed in this section. Objects are listed alphabetically; Properties, Methods, and Events are listed under the appropriate Object.

CRVEventInfo Object, Page 142

¾CRVEventInfo Object Properties, Page 142 CRViewer Object, Page 143

¾CRViewer Object Properties, Page 143

¾CRViewer Object Methods, Page 145

¾ActivateView, Page 145

¾AddView, Page 146

¾CloseView, Page 146

¾Drag Method, Page 146

¾ExportReport, Page 147

¾GetCurrentPageNumber, Page 147

¾GetViewPath, Page 147

¾Move Method, Page 148

¾PrintReport, Page 148

¾Refresh, Page 149

¾SearchByFormula, Page 149

¾SearchForText, Page 149

¾SetFocus, Page 150

¾ShowFirstPage, Page 150

¾ShowGroup, Page 150

¾ShowLastPage, Page 150

Smart Viewer Object Models

140

¾ShowNextPage, Page 151

¾ShowNthPage, Page 151

¾ShowPreviousPage, Page 151

¾ShowWhatsThis, Page 151

¾ViewReport, Page 152

¾Zoom, Page 152

¾ZOrder, Page 152

¾CRViewer Object Events, Page 153

¾Clicked Event, Page 153

¾CloseButtonClicked Event, Page 153

¾DblClicked Event, Page 153

¾DownloadFinished Event, Page 154

¾DownloadStarted Event, Page 154

¾DragDrop Event, Page 155

¾DragOver Event, Page 155

¾DrillOnDetail Event, Page 156

¾DrillOnGroup Event, Page 156

¾ExportButtonClicked Event, Page 157

¾FirstPageButtonClicked Event, Page 157

¾GotFocus Event, Page 157

¾GoToPageNClicked Event, Page 158

¾GroupTreeButtonClicked Event, Page 158

¾LastPageButtonClicked Event, Page 158

¾LostFocus Event, Page 159

¾NextPageButtonClicked Event, Page 159

¾OnReportSourceError Event, Page 159

¾PrevPageButtonClicked Event, Page 160

¾PrintButtonClicked Event, Page 160

¾RefreshButtonClicked Event, Page 160

¾SearchButtonClicked Event, Page 161

¾SearchExpertButtonClicked Event, Page 161

¾SelectionFormulaBuilt Event, Page 161

¾SelectionFormulaButtonClicked Event, Page 162

¾ShowGroup Event, Page 162

Smart Viewer Object Models

141

Соседние файлы в папке crystal