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

if(!PEEnableEvent(printJob, &eventInfo)) return FALSE;

//set tracking cursor, gives the user feedback

//when the cursor is in the detail area

//(for a drill-down on detail event)

//use the default cursor behavior in group area.

PETrackCursorInfo cursorInfo; cursorInfo.StructSize = sizeof(PETrackCursorInfo); cursorInfo.groupAreaCursor = PE_UNCHANGED; cursorInfo.groupAreaFieldCursor = PE_UNCHANGED; cursorInfo.detailAreaCursor = PE_TC_CROSS_CURSOR;

cursorInfo.detailAreaFieldCursor = PE_TC_IBEAM_CURSOR; cursorInfo.graphCursor = PE_UNCHANGED;

if(!PESetTrackCursorInfo(printJob, &cursorInfo)) return FALSE;

// set call back function

if (!PESetEventCallback(printJob, lEventCallback, 0)) return FALSE;

return TRUE;

}

Distributing Crystal Report Engine Applications

Seagate Crystal Reports comes with a royalty-free runtime license for any application that uses the Crystal Report Engine through any of the methods described in this chapter. When distributing a Crystal Report Engine application, you must also distribute several runtime files required by the Crystal Report Engine. These files are listed in the Runtime File Requirements online Help. Be sure to carefully examine this Help file and distribute the appropriate runtime files with your application. All runtime files are included under the runtime license agreement unless otherwise stated.

Additional Sources of Information

In addition to the information provided in this chapter, you will find a wide-variety of developer topics in Developer’s online Help. Many of these topics contain sample code in C, Visual dBASE, Delphi, and Visual Basic that you can copy directly into your application. For a list of all developer topics, see Developer’s online Help.

If you are working with the Crystal Report Engine API in Visual Basic, refer to Using the Crystal Report Engine API in Visual Basic, Page 104, for information specific to Visual Basic. Delphi programmers can find information specific to using the Crystal Report Engine API with Delphi under Seagate Crystal Visual Component Library, Page 193.

Crystal Report Engine

102

Volume 1

 

5

Visual Basic Solutions

What you will find in this chapter...

Using the Crystal Report Engine API in Visual Basic, Page 104

...including comments regarding opening and closing the Crystal Report Engine, embedded quotes in VB calls, identifying string issues, passing dates and date ranges, hard coded nulls in User Defined Types and VB Wrapper DLL.

Crystal ActiveX Controls, Page 108

...including comments regarding adding and using ActiveX Controls in your project, and upgrading Crystal Custom Controls.

Crystal Report Engine Automation Server, Page 111

...including comments regarding adding, using and distributing Automation Server in your projects, Object name conflicts, preview window events, viewing the Object Library, and sample applications.

Active Data Driver, Page 118

...including comments regarding using Active Data Driver, Data Definition Files, and using ActiveX Data Sources at design time.

Crystal Data Object, Page 128

...including comments regarding Crystal Data Object, the Object Model, and the Crystal Data Source Type Library

Crystal Data Source Type Library, Page 131

...including adding and implementing the Crystal Data Source Type Library, Crystal Data Source Projects, and passing DataSource objects to the Active Data Driver.

Grid Controls and the Crystal Report Engine, Page 139

...including comments regarding Control Properties, bound and formatted bound reports, and a sample application.

Visual Basic Solutions

103

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