Upload
natalia-acosta-estevez
View
311
Download
6
Embed Size (px)
DESCRIPTION
Smart DB User Manual
Citation preview
Smart DBUser Manual
CONTENTS
1 Introduction 7
1.1 System Requirements 71.2 Program Structure 71.3 Copyright 8
2 Program Start 9
2.1 Execution 92.2 New Project 102.3 Data Input 122.4 Data Modification152.5 Printing 16
3 Main Function18
3.1 New Project 183.2 Creating / Modifying Database 18
3.2.1 Auto create database 18
3.2.2 Manual Create Database19
3.3 ODBC Connection 233.4 Save 253.5 Import 253.6 Addition 263.7 Modifying Image 273.8 Selection 303.9 Printing 313.10 Changing Printing Data 333.11 Usage of Conditional Formula 33
4 Menu and Display35
4.1 Toolbars introduction 354.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.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
4.2 Menu384.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
71 IntroductionSmartDesign 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 RequirementsSmartDB 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 StructureIf 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.
8Figure 1 SmartDB Operation Structure.
1.3 CopyrightYou 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.
Smart
Design
C
S
D
Field
Field
Field
Field
:
Smart
DB
Data
Base
92 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
10
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.
11
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
12
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 InputTo 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.
13
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
14
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.
15
2.4 Data ModificationThere 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
16
2.5 PrintingConnect 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
17
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.
18
3 Main FunctionThe main function will be explained in this chapter.
3.1 New ProjectCreate 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 Database3.2.1Auto 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.
19
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.2Manual Create DatabaseIf 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.
20
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.
21
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
22
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.
23
Figure 30 Connect Fields
3.3 ODBC ConnectionTo 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.
24
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
25
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 SaveInformation 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 ImportYou can import project file with Open button at file menu. When you import a file,
CSD fields automatically will be connected database fields.
26
3.6 AdditionInput 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.
27
Figure 38 View after Add Data
3.7 Modifying ImageThe 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
28
In Image Edit window, there are many simple and useful tools for editing images.
Brightness, Contrast, Rotation functions are included from the top
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
Drag
29
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.
30
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 SelectionYou 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.
31
Figure 48 Select data
3.9 PrintingYou 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
32
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.
33
Figure 52 Results
Printing results will be applied on data lists as Fig. 52.
3.10 Changing Printing DataPrinted 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 thebutton 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 FormulaIf 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
OR
The earlier condition and new input condition are satisfied
both of them.
The earlier condition or new input condition is satisfied.
34
Second section is for selecting registered field name.
Third section defines to range of condition value.
=
like
>