Contents
4
2.5.10 Extend Designer by Custom Function .......................................... 31
2.5.11 Join and Convert Preview Files ..................................................... 31
2.5.12 Sending E-Mail .............................................................................. 32
2.5.13 Store Project Files in a Database .................................................. 32
2.5.14 Network Printing ........................................................................... 32
3. Programming With the VCL Component .............................................. 34
3.1 Integration of the Component ................................................................. 34
3.1.1 FireDAC Component ..................................................................... 34
3.1.2 BDE Component ........................................................................... 34
3.2 Data Binding ........................................................................................... 35
3.2.1 Binding List & Label to a Data Source ........................................... 35
3.2.2 Working With Master Detail Records ........................................... 35
3.2.3 Additional Options for Data Binding ............................................. 35
3.3 Simple Print and Design Methods ........................................................... 36
3.3.1 Working Principle .......................................................................... 36
3.3.2 Using the UserData Parameter ..................................................... 37
3.4 Transferring Unbound Variables and Fields ............................................. 37
3.4.1 Pictures ......................................................................................... 37
3.4.2 Barcodes ....................................................................................... 37
3.5 Language Selection ................................................................................ 37
3.6 Working With Events .............................................................................. 38
3.7 Displaying a Preview File ........................................................................ 38
3.8 Working With Preview Files .................................................................... 38
3.8.1 Opening a Preview File ................................................................. 38
3.8.2 Merging Multiple Preview Files .................................................... 38
3.8.3 Debugging .................................................................................... 38
3.9 Extending the Designer .......................................................................... 38
3.9.1 Using the Formula Wizard to Add Your Own Functions ............... 39
3.9.2 Adding Your Own Objects to the Designer .................................. 40
4. Programming With the OCX Component .............................................. 41
4.1 Integration of the Component ................................................................. 41
4.2 Simple Print and Design Methods ........................................................... 41
4.2.1 Working Principle .......................................................................... 41
4.2.2 Using the UserData Parameter ..................................................... 42
4.3 Transferring Unbound Variables and Fields ............................................. 42
4.3.1 Pictures ......................................................................................... 42
4.3.2 Barcodes ....................................................................................... 42
4.4 Language Selection ................................................................................ 42
4.5 Working With Events .............................................................................. 42
4.6 Displaying a Preview File ........................................................................ 42
4.7 Working With Preview Files .................................................................... 43
4.7.1 Opening a Preview File ................................................................. 43
4.7.2 Merging Multiple Preview Files .................................................... 43
4.7.3 Debugging .................................................................................... 43
4.8 Extending the Designer .......................................................................... 43
4.8.1 Using the Formula Wizard to Add Your Own Functions ............... 43
4.8.2 Adding Your Own Objects to the Designer .................................. 44
4.9 The Viewer OCX Control ......................................................................... 45
4.9.1 Overview ....................................................................................... 45
4.9.2 Registration ................................................................................... 45
4.9.3 Properties ...................................................................................... 45
4.9.4 Methods ........................................................................................ 46
4.9.5 Events ........................................................................................... 47
4.9.6 Visual C++ Hint ............................................................................ 47
4.9.7 CAB Files Packaging ..................................................................... 47
4.9.8 Inserting the OCX Into Your Internet Page.................................... 48
5. Programming Using the API ................................................................. 49
5.1 Programming Interface ........................................................................... 49
5.1.1 Dynamic Link Libraries .................................................................. 49
5.1.2 General Notes About the Return Value ......................................... 50
5.2 Programming Basics .............................................................................. 50
5.2.1 Database Independent Concept ................................................... 50
5.2.2 The List & Label Job ...................................................................... 51
5.2.3 Variables, Fields and Data Types .................................................. 51