Smart DB User Manual
Smart DB User Manual
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
3.2.2
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
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
4.1.8
4.2
4.1.9
4.1.10
4.1.11
4.1.12
4.1.13
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
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.
Pentium 1G Hz
256MB RAM
Field
Smart
Design
Field
Smart
Data
DB
Base
Field
Field
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.
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.
button in toolbar.
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.
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.
11
CSD preview will be shown to the right side and CSD fields and DB fields will be
displayed.
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
You can click Print and Continue button and print the data you entered in the
program.
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.
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.
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
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.
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.
16
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.
17
3 Main Function
The main function will be explained in this chapter.
button.
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.
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
3..2.1
Click Automatic Create MDB button, then Automatic Create MDB as Fig.
23 will be displayed.
19
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.
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
Selected table structure of MDB file will be displayed on the left list and you
can create, edit and remove the table.
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.
When you click Create button, a question message will pop up.
To create it, click O.K.
22
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.
23
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.
Click Connect Fields button after selecting a table, then Fig. 34 will appear
24
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
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.
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.
Selected data is applied through the field. It will appear in the top right of the preview.
26
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.
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
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. ..
28
Image can be rotated by 90, 180, 270, 360 degrees through Rotation.
If click apply or Apply All button, you can see modified image on preview.
29
When you modify the image, modified value will be set as Fig. 47.
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
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.
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.
31
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
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
OR
33
like
>
<
<>
For example, If you want to find data which includes Der, you can find it as Fig. 54.
34
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.4 Print
This button prints selected data through card printer.
For more information, Please refer to Chapter 3.9
35
To find specified data, click Find button after filling text box.
36
If you click the button, the dialog box will appear as Fig. 56
Click Find then will select indicated data after input data position
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
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
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.
4.2.1.5.2
ODBC
40
4.2.1.6 Export
4.2.1.6.1
Excel
You can save the current project data using this function.
41
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
42
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
43
monthly. When you select a file in specified month, print history appears
as Fig. 67
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.
44
You can see the dialog Figure68 when you choose this function
Feel String in the dialog box and click Find button.
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.3 Disconnect
This function is to disconnect database
If the database is disconnected, data and information will be
disappeared.
46
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
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.
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.
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.
49
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];
wchar_t desc[256];
int
classid;
BYTE
reserved[64];
} PLUGININFO;
Shows the information of plugin
50
0xFFFFFFFF
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.
: Success
Others : Fail
51
: Success
Others : Fail
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
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