0% found this document useful (0 votes)
317 views

Smart DB User Manual

Smart DB User Manual
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
317 views

Smart DB User Manual

Smart DB User Manual
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

Smart DB

User Manual

CONTENTS
1

Introduction 7
1.1

System Requirements 7

1.2

Program Structure 7

1.3

Copyright 8

Program Start 9
2.1

Execution 9

2.2

New Project 10

2.3

Data Input 12

2.4

Data Modification15

2.5

Printing 16

Main Function18
3.1

New Project 18

3.2

Creating / Modifying Database 18


3.2.1

Auto create database 18

3.2.2

Manual Create Database19

3.3

ODBC Connection 23

3.4

Save 25

3.5

Import 25

3.6

Addition 26

3.7

Modifying Image 27

3.8

Selection 30

3.9

Printing 31

3.10 Changing Printing Data 33


3.11 Usage of Conditional Formula 33
4

Menu and Display35


4.1

Toolbars introduction 35
4.1.1

New Project 35

4.1.2

Open Project 35

4.1.3

Save Project 35

4.1.4

Print 35

4.1.5

Set Printed 35

4.1.6

Reset printed 35

4.1.7

View All Cards 36

4.1.8

View Printed Card 36

4.2

4.1.9

View Not Printed Cards36

4.1.10

Find Next Printed Cards 36

4.1.11

Find Next not Printed Card 36

4.1.12

Find Next Matched Card 36

4.1.13

Find Next Directed Position 36

4.1.14

Add Card37

4.1.15

Update Card 37

4.1.16

Delete Card 38

4.1.17

Execute SmartDesign 38

Menu38
4.2.1

File38

4.2.2

Edit 44

4.2.3

Database45

4.2.4

Options48

4.2.5

Help 48

APPENDIX 49
1

Plugin49
1.1 Plugin Registration 49
1.2 Plugin Development 50

Figure
Figure 1 SmartDB Operation Structure. 8
Figure 2 SmartDB Window 9
Figure 3 New Project10
Figure 4 Connect Fields11
Figure 5 After DB connection 11
Figure 6 Add Data 12
Figure 7 Capture 13
Figure 8 Add Figure Image 13
Figure 9 Plugin Data Added 13
Figure 10 Print & Continue 13
Figure 11 Add Data 14
Figure 12 After Adding Data 14
Figure 13 Editing Data15
Figure 14 Direct Input in Column 15
Figure 15 Select Data for Printing 16
Figure 16 Select Printer 16
Figure 17 Print Spooler 16
Figure 18 Printing 17
Figure 19 After Printing 17
Figure 20 New Project 18
Figure 21 Connect Fields 19
Figure 22 MDB Management 19
Figure 23 Auto Create MDB20
Figure 24 Connect Fields 20
Figure 25 Input MDB Name 21
Figure 26 MDB Management 21
Figure 27 Create New Table 21
Figure 28 Create New Table Import from CSD22
Figure 29 MDB Management 22
Figure 30 Connect Fields 23
Figure 31 ODBC Select ODBC Data Source.23
Figure 32 ODBC Data Source Administrator 24

Figure 33 Select ODBC Data Source 24


Figure 34 Connect Fields 24
Figure 35 Select MDB 25
Figure 36 Caption Bar of Project Information 25
Figure 37 Add Data26
Figure 38 View after Add Data27
Figure 39 Image Editing Window 27
Figure 40 Edit Image Location28
Figure 41 Edit Brightness 28
Figure 42 Edit Contrast28
Figure 43 Zoom in / Zoom out 29
Figure 44 Image Rotation29
Figure 45 Before Image Edit 30
Figure 46 After Image Edit30
Figure 47 Information of Edit Image30
Figure 48 Select data 31
Figure 49 Select Printer 31
Figure 50 Print Standby 31
Figure 51 Screen at the printing.32
Figure 52 Results 33
Figure 53 Filter Bar 33
Figure 54 Filterbar Create Conditional formula 34
Figure 55 Toolbars35
Figure 56 find matched card 36
Figure 57 Find Position37
Figure 58 Modify Card 38
Figure 59 Contents of Excel File 39
Figure 60 Select Excel File 39
Figure 61 Import from Excel39
Figure 62 after import from Excel 40
Figure 63 Select ODBC Data Source 41
Figure 64 Import from ODBC 41
Figure 65 Export to Excel 42
Figure 66 Export to MDB43
Figure 67 Print History44
Figure 68 Find next matched Card 45

Figure 69 Find Next Directed Position 45


Figure 70 Set field Connecting 46
Figure 71 Update Data 47
Figure 72 Select Plugins 48
Figure 73 SmartDB Information 48
Figure 74 No plugin.dll49
Figure 75 Copy of Plugins 49
Figure 76 Plugin Auto-Registration 49

1 Introduction
SmartDesign is the program which focuses on designing a card so you can print card data
one by one. However when the data is huge, it takes too much time to print every data one
by one.
For this reason, SmartDB is developed and you can print several data at once using this
program. This program is able to be linked with DBMS via ODBC function and have many
useful functions such as Multi-language Support and Print History.

1.1 System Requirements


SmartDB can be operated with only I&A Systems SMART card printers.
The required software and hardware configuration for your computer system to execute
SmartDB is.
-

Windows XP, Vista, 7

Pentium 1G Hz

256MB RAM

1.2 Program Structure


If you design a card in SmartDesign and save in your PC, the file will be saved as
*.CSD. In this CSD file, there is Field section and it is for linking texts, images and
barcodes to SmartDB so that SmartDB program can modify the items.
You dont need to change data case by case in SmartDesign but you can modify
different data using SmartDB at once. If you edit CSD Field in SmartDB, it will be the
same effect as you modified the CSD file. But this changed data is valid until closing
CSD file in SmartDB. So if you close CSD file or exit SmartDB program, the original
design of CSD data would not be changed.
You can design and modify large number of cards through SmartDB quickly and safely.

Field

Smart
Design

Field

Smart

Data

DB

Base

Field
Field

Figure 1 SmartDB Operation Structure.

1.3 Copyright
You are not allowed to use SmartDB commercially also may not distribute this software
for profit. We cannot accept any liability for any problem caused by those kinds of use.
All rights reserved to I&A System about this program.

2 Program Start
Usage of this program will be introduced in this chapter briefly.

2.1 Execution
SmartDB can be executed in start menu.

Start Menu > Program > Smart > SmartDB Start

Or you can execute using the shortcut icon in desktop.

When you run the program, it will be displayed as Fig. 2.

Figure 2 SmartDB Window


Menu
Please see chapter 4.2
Shortcut Icon
Please see chapter 4.1 Toolbar

Filter
Please, refer to chapter 3.11 Conditional Formula
Data
It shows data which is connected to CSD field and DB field.
Preview
It shows preview image. If a document has single side, it shows only front side. If a
document has both sides, it shows another tap for the back of the document.
When select the tap, it will present preview image of back side.
CSD fields / DB fields
When you select a CSD field tap, it shows field information of the CSD file opened.
When you select DB field tap, it shows recorded information of Database.

2.2 New Project


Create new project in order to connect a CSD file and Database.
First, create a CSD file which has fields section using SmartDesign.
For more information, please refer to user manual of SmartDesign.

Select Create menu in File menu or Click

button in toolbar.

Window for New Project will be displayed.

Figure 3 New Project

Enter new project name in Project Name" section.


Click button and select and open saved CSD file. When you select a CSD file,
Project Name will be changed as the CSD file name.
Project Location indicates the path where newly created project is saved in.
You can click "..." button and change the path where the project is saved in.

Auto Create Database is the function which creates and connects database
automatically according to CSD fields when you make new project.

10

Select CSD file and mark Auto Create Database. Click Yes.

Figure 4 Connect Fields

Above image shows how CSD fields and Database(DB) are connected. Database is
created and connected automatically according to CSD fields because Auto Create
Database is activated.
In CSD Fields column, the blue color section is Field Name of the CSD file. Pink
color section is print record fields, and these sections are used in SmartDB. Yellow
color section is Image field. It will be created automatically, in case, there is connected
CSD field images.

When Do you want to connect fields? window appears, select Yes to connect CSD
fields with DB fields.

After CSD fields are connected to DB fields, the program will be changed as Fig. 5.

Figure 5 After DB connection

11

CSD preview will be shown to the right side and CSD fields and DB fields will be
displayed.

From now on, you can input and modify data.

SmartDB manages projects as the unit of directories. So a directory is created as


Project Name on appointed Project Location and all files will be copied in the folder.

2.3 Data Input


To input data, click Add Card in Database menu.

Input data in Value column.


Select an image after click button when you use image field. To delete or change
an image, click mouse button on Value column. When you click Select Image on
menu, you can select new image and also you can delete an image using Delete
Image menu.

Figure 6 Add Data

If you select Image Fields when USB camera is connected to PC, Capture button
will be activated on the right side.
Click activated Capture button, and then camera view window appears like Fig. 7.
If you click Capture button in the window, the program will save the image as Fig. 8.

12

Figure 7 Capture

Figure 8 Add Figure Image

If Plugin is installed in SmartDB program folder, the buttons will be displayed as


plugin names like figure 9. Click a button and execute plugin so that you can import an
image. Please refer to Appendix Plugin part.

Figure 9 Plugin Data Added

You can click Print and Continue button and print the data you entered in the
program.

Figure 10 Print & Continue

Select a printer on upper combo box and click Issue button. Then printing will be

13

started.
After printing process, preview will be closed automatically and the data of printed
content will be added in Database automatically.

Figure 11 Add Data

After inputting data, you can save it by clicking Close after Save or Continue after
Save button.
Close after Save will save data and close the display.
Continue after Save will save data and keep this window.
Clear will clear whole data in current window.
Close will just close the program without save.

Figure 12 After Adding Data

If you add a card, the new data is updated on the screen as Figure 12.
Selected data is updated through data field and it is displayed in preview section.

14

2.4 Data Modification


There are two way to edit data user entered.
The first one is through Modify Card menu in Database menu.
The second one is direct modification by double clicking of the column.
If you choose first method, it will be displayed as Fig. 13.

Figure 13 Editing Data

If you click Close after Update button after modifying the data, the modified data will
be applied to the database and it will be return to the main program. If you click
Capture button, it will bring an image from USB camera connected on PC. If you click
Print and Continue button, it will print using present data.
If you click Continue after Update, the modified contents will be applied to the
database but the current window will shown continually.
When you select Close button, it will be return to the main program without saving.
If you use the second way, you can input data directly to the column as Fig. 14.

Figure 14 Direct Input in Column

15

2.5 Printing
Connect a card printer to PC before printing
To print, select the data as Fig. 15 and execute Printing menu in File menu or click
button on Toolbar.

Figure 15 Select Data for Printing

Figure 16 Select Printer

Fig. 16 shows available printer which is connected PC or network


The printers which have a word USB on the lists are connected to PC directly.
The printers which names start with IP address, are connected to network

Choose a printer and click Confirm button.

Figure 17 Print Spooler

16

Figure 17 shows printer spooler window.


If you click Print button, all data on the lists will be printed.

Figure 18 Printing

The white background means the data which is ready to print. The green color means
under printing. After finish the printing, the color will be changed to yellow. If there is an
error during the printing, it will be changed to red color. Even though it is under printing,
you can add more data to print.

When printing is done, click Close to return to main program.

Figure 19 After Printing

Printing results will be applied to data list as Fig. 19.

17

3 Main Function
The main function will be explained in this chapter.

3.1 New Project


Create new project and link CSD file from SmartDesign to database.

Select New button or Click

button.

Figure 20 New Project

New Project window will be displayed and you can input new project information.
Input a project name to Project Name section.
Click button on the right side and select CSD file. After selecting, CSD file name
will be applied on Project Name.
Newly created project will be saved in Project Location directory. Click to select
the location.
Auto Create Database is the function which creates and connects the database
automatically as CSD files fields. If it is connected with the existing database, you
have to remove the mark in this section.
Project file will be generated as *.csp in the folder under the directory which set on
Project Location.

3.2 Creating / Modifying Database


3.2.1 Auto create database
If Auto Create Database option is activated in chapter 3.1, MDB database will
be created and connected automatically as CSD files fields.

In CSD Fields column, the blue color section is field name of the CSD file.
Pink color section is the print record field, and these are used in SmartDB.

18

Yellow color section is Image field. If there is connected image in SmartDB, it


will add _CONFIG in the last part of the field name and will be created.

Figure 21 Connect Fields

If Do you want to connect field? box appears, select Yes to connect


CSD field name and DB field name automatically.

3.2.2 Manual Create Database


If Auto Create Database option is not activated at chapter 3.1, need to create
database or connect to ODBC.
When execute MDB connect at Database menu, MDB Management will be
displayed as Fig. 22.

Figure 22 MDB Management

3..2.1

Auto create MDB

Click Automatic Create MDB button, then Automatic Create MDB as Fig.
23 will be displayed.

19

Figure 23 Auto Create MDB

MDB Name means that created MDB file name. You can change the name.
Table Name means that, created table name in MDB file. You can also
change the name.
DB table structure will be created according to CSD file field structure.
Click Create button, DB will be created as setting. It will be connected with
CSD files fields automatically as below.

Figure 24 Connect Fields

If you click Yes, CSD file fields and DB fields will be linked.
Click No, the fields are not synchronized.

3..2.2

Create MDB

Click Create MDB, then Input MDB Name window will be displayed.

20

Figure 25 Input MDB Name

You can input name.


If you click OK button, MDB Table Management window will appear as Fig.
26.

Figure 26 MDB Management

Selected table structure of MDB file will be displayed on the left list and you
can create, edit and remove the table.

To create table, click New Table button.

Figure 27 Create New Table

Input a name in Table name section.


To input/edit the Field name, double click to the empty Fieldname index or

21

data.
You can set the field type on Type column.
In Length column, you can set the maximum data size of the field.
If you click Import from CSD on the right button, table field will be set
automatically according to CSD file field structure as below.

Figure 28 Create New Table Import from CSD

When you click Create button, a question message will pop up.
To create it, click O.K.

Figure 29 MDB Management

Figure 30 is created table.

To change selected table structure, click Edit Table button


To remove the selected table, click Remove Table button.
If you click Connect Fields, you can connect the fields as Fig. 30.

22

Figure 30 Connect Fields

3.3 ODBC Connection


To connect variety sorts of DBMS, it will support ODBC.
All databases supported by ODBC are available.

Figure 31 ODBC Select ODBC Data Source.

On the left side, you can see the data which is available to connect.
If you click ODBC Management, ODBC Data Source Administrator will appear as
Fig. 32.

For more information, please refer to the related materials.

23

Figure 32 ODBC Data Source Administrator

If you click Select Table after select one source, you can see the different
window as per each source.
SMART Test data source is created from ODBC original administrator. Click Select
Table,then Available Tables and Views will appear, and you can select table or view.

Figure 33 Select ODBC Data Source

Click Connect Fields button after selecting a table, then Fig. 34 will appear

Figure 34 Connect Fields

24

CSD fields and DB fields can be connected.


While selecting MS Access Database, click Select Table button then you can select
MDB file as Fig. 35

Figure 35 Select MDB

If select a MDB file and click OK button then table or window will appear.
Thereafter it will run through same process as described before.

3.4 Save
Information of CSD file and Database connection will be saved in the project file
(*.csp).
If it cannot be recorded, you need to proceed many steps as above.
To avoid the inconvenience, if connection setting is finished, you need to save project
file.
To save project, click save at file menu or click the

button

Figure 36 Caption Bar of Project Information

If you save a project file, CSD file information will be displayed as Fig. 36.

3.5 Import
You can import project file with Open button at file menu. When you import a file,
CSD fields automatically will be connected database fields.

25

3.6 Addition
Input new data through Add Card at Database menu.

Figure 37 Add Data

Input data in value index.


Select indicated column, input with keyboard or mouse double click.
To select image, if the type is image field, click button. To change or to clear
selected image, mouse right click at value section of image field. In this case, if select
Select Image, you can select new image. If select Delete Image, the image will not
be used. If you click Capture button, you can use the images which are in USB
Camera connected to PC.

After input all of data, you can save using Close after Save and Continue after
Save buttons.
You can click Print and Continue button and print procedure will be done immediately
also you can click Save and Close and Save and Continue button and save data.
Click Close after Save button then will be saved data and close.
Click Continue after Save button then will be saved data and keep the program
running.
Click Clear Fields button then all of currently entered data will be removed.
Click Close button then will close the window without add data.

When input data, entered data will be printed as Fig. 38

Selected data is applied through the field. It will appear in the top right of the preview.

26

Figure 38 View after Add Data

3.7 Modifying Image


The image which is connected on Image fields can be modified. You can edit image
size and location easily using this function.

Double click a point of indicated field in preview screen on the right side then Image
Edit window will appear. And also double click image field on CSD fields on the
bottom will be the same.

When Image Edit window appears, the amount of changes is displayed as


percentage and values.
Blue dotted line on the center is the size of image field and the size is reduced
according to the size of Image Edit window. To modify the location of an image, you
can use left button of mouse. (Drag and Drop)

Figure 39 Image Editing Window

27

In Image Edit window, there are many simple and useful tools for editing images.
Brightness, Contrast, Rotation functions are included from the top

Drag

Figure 40 Edit Image Location

If brightness value is near to 0, image will be darker.


If it is near to 100 image will be shown brighter.

Figure 41 Edit Brightness

If contrast value is close to 0 then image will be more blur, on the contrary, if it is
close to 100 then the image will be shaper. ..

Figure 42 Edit Contrast

28

It is possible to resize an image by zoom function.

Figure 43 Zoom in / Zoom out

Image can be rotated by 90, 180, 270, 360 degrees through Rotation.

Figure 44 Image Rotation

To change brightness, contrast, zoom(minimize, maximize), rotator, move a scroll bar


or input value in edit box, and press Enter or tap key.
You can input zoom value until second minority. (0.xx).
If you do not like modified image, you can back to the default value using Set a
Saved button.
If you click Set a Default button, it will be back to the original CSD image file.
In case of Apply button, you can close the window after save the modified content.
Apply All can be used when you want to apply the changed value to all selected data.
It will be took some time depend on the data volume.
Click Cancel or Escape button then, close without save modified value.

If click apply or Apply All button, you can see modified image on preview.

29

Figure 45 Before Image Edit

Figure 46 After Image Edit

When you modify the image, modified value will be set as Fig. 47.

Figure 47 Information of Edit Image

3.8 Selection
You can select data to print or remove printer data. When you select data, all of the
lines will be selected. To select more data, you can click mouse left button and drag.
To select several data, press Ctrl Key and click lines. If a line has not selected, it will
be added from selected lines. And if a line has selected, it will be excluded from
selected lines.

30

Figure 48 Select data

3.9 Printing
You can select data to print edited cards.
To print cards, click Print menu in File menu, or click

icon in toolbar.

Figure 49 Select Printer

You can see the printer lists which are connected to PC or Network Fig. 49
The printers which have a word USB on the lists are connected to PC directly.
The printers which names start with IP address are connected to network.
Select a printer on the list, and click OK button.

Figure 50 Print Standby

31

Fig. 50 window will pop up.


If there is several print data, you can click Use Printer Spool so that continually you
can print several data. And you can save time.
Click Print then data printing starts from the top

Figure 51 Screen at the printing.

If background color data is white, it is ready to print. Yellow-green represents selected


card is printing now. Bright Yellow-green color represents that the data is spooled and
ready to print. If document printing is completed the data color is changed to Yellow.
Red color data means there was an error during the printing.
If you click Stop button, it will stop all procedure after current printing data is done.
If you click Close button, It will close the window after current printing data is done.
SmartDB will stay Standby mode if there are the data which are spooling or printing.
If printing or spooling is done, the window will be closed.
If you click Printed Card Remove button, Yellow color data (which means printing is
done) will be removed.

If you click Reset failed Card button, it will retry to print Red color data ( which means
there was an error during printing).
When all printing jobs are completed, you can click Close and return to main program.

32

Figure 52 Results

Printing results will be applied on data lists as Fig. 52.

3.10 Changing Printing Data


Printed data cannot be selected or printed again and It is to prevent reissuance,
If you want to re-print a card, click Print Mark Cancel in Edit menu or Click the
button on toolbars and change information of completion item.
Contrary, if you dont want to print unprinted data, you can click Set Print Mark in
Edit menu or Click

button and change information.

3.11 Usage of Conditional Formula


If you want to display to specified data in the screen from lots of data, you can use
Filter Bar.

Figure 53 Filter Bar

First section defines the connecting method of conditional option, if there are more
than two conditions, it will define the relations of two conditions.
AND

The earlier condition and new input condition are satisfied


both of them.

OR

The earlier condition or new input condition is satisfied.

33

Second section is for selecting registered field name.


Third section defines to range of condition value.
=

The data is equal to condition value

like

The data is including to condition value

>

The data is larger than condition value.

<

The data is smaller than condition value

<>

The data is different from condition value.

Fourth section is for inputting condition value.


If you click Add button, it changes set value to conditional formula and display next
line.
To create more than two IF formula , you can click Add button and after setting
second conditional formula you can click Add button again.
If you click Apply button, the results of searching will be displayed from database by
conditional formula.

For example, If you want to find data which includes Der, you can find it as Fig. 54.

Figure 54 Filterbar Create Conditional formula

34

4 Menu and Display


4.1 Toolbars introduction

Figure 55 Toolbars

The top of the program, at the bottom of the menu, toolbar are located, and toolbars
include common features, so that it makes more efficient and you can save time.

4.1.1 New Project


This button closes existed project, and create new project.

4.1.2 Open Project


This button loads saved project file.

4.1.3 Save Project


This button saves current project setting after create project.

4.1.4 Print
This button prints selected data through card printer.
For more information, Please refer to Chapter 3.9

4.1.5 Set Printed


This button set selected data as print completed status.

4.1.6 Reset printed


This button set selected data as unprinted data so that you can print the data
again.

35

4.1.7 View All Cards


This button shows all of the data of connected database.

4.1.8 View Printed Card


This button shows all printed data of connected database.

4.1.9 View Not Printed Cards


This button show unprinted data of connected database.

4.1.10 Find Next Printed Cards


This button finds next printed card

4.1.11 Find Next not Printed Card


This button finds next unprinted card

4.1.12 Find Next Matched Card


This button finds cards which have specified string.
If you click the button, the dialog box will appear as Fig. 56

Figure 56 find matched card

To find specified data, click Find button after filling text box.

4.1.13 Find Next Directed Position


This button finds the data which is on specified position.

36

If you click the button, the dialog box will appear as Fig. 56

Figure 57 Find Position

Click Find then will select indicated data after input data position

4.1.14 Add Card


This button adds new data. Please refer to Chapter 3.6.

4.1.15 Update Card


This button updates selected card.
The function is the same as Add Card function.

You can double click the value column to modify card data.
You can click button or double click value column in Image field and you
can choose other images.
If you click Capture button during there is selected image field, you can bring
images from USB camera which is connected to PC.
If you click Print and Continue, modified data will be printed immediately and
printed data will be stored in database.
If you click Close after Update, it will close the window after updating
information of the card by imported contents.
If you click Continue after Update, it will keep the window running and update
information of the card by imported contents.
If you click Close button, it will close the window without any changes.

37

Figure 58 Modify Card

4.1.16 Delete Card


This button deletes the selected cards. If you removed data once, it could not
be recovered, so please be careful to use this button.

4.1.17 Execute SmartDesign


This button executes SmartDesign program so that you can modify the used
CSD file in the program.

4.2 Menu
4.2.1 File
4.2.1.1 New
After close existed project, create new project from designed CSD file.

4.2.1.2 Open
After close existed project, load the saved project file.

4.2.1.3 close
Close the opened project.

4.2.1.4 Save
Save current project setting.

38

4.2.1.5 Import
4.2.1.5.1

Excel

Import excel file and you can modify data.

Figure 59 Contents of Excel File

Fig. 64 is the example of excel file.


When you execute menu, you can select excel file like Fig. 60.

Figure 60 Select Excel File

Import from Excel window will appear.

Figure 61 Import from Excel

39

You can check the bottom of screen and there will be descriptions of
analyzed contents of excel file.
First line is field name. in fact, data will be imported from second line.
The field name and selected data from list of bottom will be
displayed On the right side of screen.
On the left side of screen, you can check DB field name and you can
select excel file in Excel fields topic on the right side.
You can connect the DB field and the Excel field and Click Import
button and excel file will be added to DB.
Connecting DB fields and excel fields, you can click Import button
on the bottom, and the data from excel file will be added in DB.

Figure 62 after import from Excel

Data from excel is added to DB.

4.2.1.5.2

ODBC

Through ODBC, you can input data from the other DB


When execute menu, the window like Fig. 63 Select ODBC Data
source will appear.

40

Figure 63 Select ODBC Data Source

To select data source, click Confirm button.

Figure 64 Import from ODBC

Structure of selected data source on the left of screen is displayed.


Connect ODBC field item to DB field. If the connecting is done,
click import button.

4.2.1.6 Export
4.2.1.6.1

Excel

You can save the current project data using this function.

41

Figure 65 Export to Excel

All of data fields and data from project will be shown at the bottom of
the screen. You can check selected data on the upper right of the
screen. Also you can check DB field name and field name in excel
file on the upper left side. If you double click Excel Fields, you can
edit contents.
Total records and Extra Fields will be shown on the upper screen.
When Extra Fields is activated, hided fields (print results field, print
history field, image field, modify history field) will be recorded in an
excel file.
Image directory column defines the directory which is recorded
image file in. It will create the specified excel file name which is
saved to sub-directory.
If you click Export, it will set the location and name of exported
excel file. If you set an excel file name, project data will be record in
an excel file.

4.2.1.6.2

MDB

Save opened project data in MDB file.

42

Figure 66 Export to MDB

All of data fields and data in the project will be displayed at the
bottom of the screen and selected data from list will be displayed
with field name on the upper right.
DB field name and created MDB field name will be displayed on the
upper left.
If you double click MDB Fields, you can modify contents.
Image data will be saved to MDB from the OLE object type.
The number of all data will be shown on the upper screen. All fields
will be created.
Table sets the name of created table on MDB. Basically current
project name is determined.
Click Export button, and specify location of MDB file and name. If
you specify MDB file name, project data will be recorded immediately.

4.2.1.7 Print
Selected data will be issued through card printer. If you want more
detail, please refer to Chapter 3.9

4.2.1.8 Print History


Data print history from opened project data will be shown. When execute
menu, Log file select window will pop up. Print history is recorded by

43

monthly. When you select a file in specified month, print history appears
as Fig. 67

Figure 67 Print History

Print history will be recorded print time, date, used printer ID, results of
printer, and simple information of error, error code and information of
used data.

4.2.1.9 Exit
If you change the structure of project to exit the program, you have to
save before you exit the program.

4.2.2 Edit
4.2.2.1 Set Print
It Sets the selected data status as print complete. If the data is already
printed, you cannot print again. To print again, reset Print Mark.

4.2.2.2 Reset Print.


It sets the selected data status as unprinted. If the data is already
printed, you cannot print again. To print again, reset Print Mark

4.2.2.3 View All Cards


It will show all connected data.

4.2.2.4 View Printed Cards


It will show the printed data only from connected DB data.

4.2.2.5 View Not printed Data


It displays unprinted data from connected DB data.

44

4.2.2.6 Find Next Printed Cards


It finds the printed data from searched data. If you do this command
again, it will find printed data from current selected data.

4.2.2.7 Find Next Not printed Cards


It finds unprinted data from searched data. If you do this command again,
find not printed data from current found data.

4.2.2.8 Find Next Matched Cards


This function is for finding matched card from searched data. Fig. 68
appears for input string.

Figure 68 Find next matched Card

You can see the dialog Figure68 when you choose this function
Feel String in the dialog box and click Find button.

4.2.2.9 Find Next Directed Position


You can find next directed data from searched data. Fig. 69 appears.

Figure 69 Find Next Directed Position

Firstly, you can fill Position in the dialog box and click Find button

4.2.3 Database
4.2.3.1 Connect MDB
You can connect MDB file.
For more information, refer to the manual create database of Chapter
3.2.2

45

4.2.3.2 Connect ODBC


You can connect database through ODBC
For more information, refer to Chapter 3.3 ODBC

4.2.3.3 Disconnect
This function is to disconnect database
If the database is disconnected, data and information will be
disappeared.

4.2.3.4 Field configuration


When it is connected to database, a connection is composed between
CSD field and database.
DB field which connects with CSD field appears on the left side and you
can change DB field, on the right side, also you can check data in
current DB Fields.

Figure 70 Set field Connecting

4.2.3.5 Compact and Recovery


If connected database type is MDB, you can use this function. MDB
charges inefficient space more than needed. As time goes by, space for
MDB is increased more and more. At that time, Compact and Recovery
function is able to used and through this function useless space can be
removed.

46

4.2.3.6 Add Card


It is used to input the new data.
Please refer to Chapter 3.6

4.2.3.7 Edit Card


Edit selected data
It is similar to Add Card menu.
To edit a card, you can double click Value Column.
Click on the right side and click value column then you can select
an image.
If you click Capture button during there is selected image field, you can
bring images from USB camera which is connected to PC.
If you click Print and Continue, modified data will be printed
immediately and printed data will be stored in database.
If you click Close after update, input data will be updated and the
program will be closed.
You can edit data continually after saving if you click Continue after
update
If you click Close button, the window will be closed without the saving.

Figure 71 Update Data

4.2.3.8 Delete Card


Delete the selected data. Removed data is not able to recover. Please
be careful.

47

4.2.4 Options
4.2.4.1 Language
Select the preferred language.
4.2.4.2 Plugins
Select Plugin lists and Plugin you are going to use.

4.2.4.2.1

Image Capture

The plugins those are available to capture images are displayed as low
level of menu and you can choose plugins for Add-cards and EditCards

Figure 72 Select Plugins

4.2.5 Help
4.2.5.1 Manual
This user manual will be opened.

4.2.5.2 About
Introduce program version, information etc.

Figure 73 SmartDB Information

48

APPENDIX
1 Plugin
Other functions besides basic functions in SmartDB are supported as Plugin type.
If you make a file according to SmartDB plugin regulation, the plugin can be used in
SmatDB.

1.1 Plugin Registration


You can use any name for plugin file but the extension type should be .dll
If you copy plugin files in plugin folder where SmartDB is installed in, and restart
SmartDB, you can use the plugin in SmarDB program.

If there is no plugin in plugin folder, you cannot use plugin like below image.

Figure 74 No plugin.dll

You can copy plugin files like Figure 75 and restart SmartDB, then the plugins are
registered in SmartDB.

Figure 75 Copy of Plugins

Figure 76 Plugin Auto-Registration

49

1.2 Plugin Development


You can develop plugins as DLL type.
There are some regulations for developing plugin and you must follow the regulations.

Plugin must include below functions.

int WINAPI SPI_GetPluginInfo(PLUGININFO * pInfo)


int WINAPI SPI_Start(HANDLE evtDone)
int WINAPI SPI_End()

The below is the explanation of each function.

int WINAPI SPI_GetPluginInfo(PLUGININFO * pInfo)


Imports plugin information.
Parameter

PLUGININFO * pInfo
Structure pointer for the information of plugin.
Please see the explanations of PLUGININFO below.

Return

: Success

Others : Fail

typedef struct
{
wchar_t name[64];

// The name of plugin.

wchar_t desc[256];

// The descriptions of plugin.

int

classid;

// Class information of plugin

BYTE

reserved[64];

} PLUGININFO;
Shows the information of plugin

name records plugins name. Please be careful of overlapping between


this and other names.
2 Byte Wide String (Unicode), MAX size is 64 characters including
NULL.

50

desc is for recording brief information of plugin.


2 Byte Wide String (Unicode), MAX size is 256 characters including
NULL.

classid means class-code which plugin belongs to.


#define SPI_Class_Unknown

0xFFFFFFFF

#define SPI_Class_ImageAcquisition 0x00000000

SPI_Class_ImageAcquisition is the class code which is belong to


plugins for camera, sign-pad and etc.

int WINAPI SPI_Start(HANDLE hevtDone)


Starts plugin action.
Parameter

HANDLE hevtDone
An event for alarming to SmartDB after image capture
process.
If hevtDone is NULL, there is no event after capture is done.
But all the capture process should be done in SPI_Start
function.
If hevtDone is not NULL, You can exit SPI_Start function even
if capture process is not finished. But you should raise an
event using hevtDone handle
create an event like below codes.

if( NULL != hevtDone )


::SetEvent( hevtDone );

hevtDone is created by SmartDB and it is sent to plugin,


so you should not change the name of this event handle.
Return

: Success

Others : Fail

51

int WINAPI SPI_End()


Ends plugin.
Please end plugin in this function.
Parameter
Return

: Success

Others : Fail

In case, class code in plugin is SPI_Class_ImageAcquisition, you have to include


below functions.

int WINAPI SPI_GetCaptureImage(int * pnResult, wchar_t *


szFileName)

The below is the explanation of the function.

int WINAPI SPI_GetCaptureImage(int * pnResult, wchar_t *


szFileName)
Records the result codes of image capture processing and the captured
image file name.
Parameter

int * pnResult
Records the result codes of image capture

#define SPI_SUCCESS

// Capture Success

#define SPI_FAILED

// Capture Fail

#define SPI_USERCANCEL

// Canceled by user

Capture Image will be registered only in the case of


SPI_SUCCESS.

wchar_t * szFileName
Captures and records the entire file name of saved file.
Records as 2 Byte Wide String (Unicode).
Return

: Success

Others : Fail

52

You might also like