CN101122922A - Method and system for data file conveying and printing - Google Patents

Method and system for data file conveying and printing Download PDF

Info

Publication number
CN101122922A
CN101122922A CNA2007101224349A CN200710122434A CN101122922A CN 101122922 A CN101122922 A CN 101122922A CN A2007101224349 A CNA2007101224349 A CN A2007101224349A CN 200710122434 A CN200710122434 A CN 200710122434A CN 101122922 A CN101122922 A CN 101122922A
Authority
CN
China
Prior art keywords
data
database
information
variable data
data element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101224349A
Other languages
Chinese (zh)
Other versions
CN101122922B (en
Inventor
李金柱
赵杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2007101224349A priority Critical patent/CN101122922B/en
Publication of CN101122922A publication Critical patent/CN101122922A/en
Application granted granted Critical
Publication of CN101122922B publication Critical patent/CN101122922B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a data transmission technologiestechnology, in particular to a technology of transmitting data by binding a database to generate a data describing file, and a technology of printing in accordance with the transmitted data. The method of generating a data describing file includes: Acquiring webpage space information and database information of the variable data elements; Logging into the database in accordance with the database information of the variable data elements; Binding the data source information for the variable data elements in the database; The data source information includes names of the sheet and the field of the database where the variable data elements are, and filtering conditions set for search; And recording webpage space information, database information and data source information of the variable data elements are recorded in the data describing file.

Description

The method and the system thereof of a kind of data file transmission, printing
Technical field
The present invention relates to a kind of technology of Data transmission content, relate in particular to and a kind ofly generate data description file by the binding data storehouse and come the technology of Data transmission content and the technology that prints according to the data content that is transmitted.
Background technology
Along with the arrival of information age, people need carry out the transmission of data content in many occasions.These data contents can comprise following element: literal, picture, data etc., and the layout information of these elements.Such as, the data file of carrying data content in each inter-sectional transmission is in order to examination, printing, output.So, for the data file of transmitting safety will be arranged and be convenient to the requirement of transmitting, carrying.
The security of the data file of transmitting for assurance in the prior art, often adopt file ciphering technology, though the file after encrypting has had security, but for the file with mass data, because its document size is very big, still has the characteristic that inconvenience is transmitted, carried.
In addition, adopt compress technique to reach the purpose of the size of the data file that reduces to transmit in the prior art usually.But, also be very limited for File Compress ratio with mass data.
Especially at the print field that has higher real-time requirement, magnanimity print request or personal printing to require, transmit data file and present many inconvenience with mass data.
Traditional printing technology all is a derived data from database, generates data file and prints.With bank's printing, printing bill is example, and before printing, operating personnel must access the relevant information of bill from database, such as account name, account number, bill fund etc.Then these information are generated the data file of bills, again these data files are delivered examination or other relevant departments, deliver to printings at last, print the place and print, print output.If what bank need print is the bill of a large amount of accounts, traditional printing process just must generate a large amount of data files that has database data.And these data files will be very huge, and the problem that also can cause accounts information to leak in the process of transmitting these data files.
Because traditional printing process needs all to export to the data in the database in the data file before transmitting and printing, cause the data file size very big, transmit inconvenient, and owing to carried data in the data file, so in the transmittance process of data file, might cause the leakage of information, cause traditional printing process poor stability.So it is huge that traditional printing process has been difficult to adapt to data volume, the print request that security requirements is higher especially resembles the print request of bank and other financial mechanism.
Because the data file of transmitting in the prior art has been carried lot of data, so that the document size that transmits very very much not is easy to carry, simultaneously can not have good security, also make also have same shortcoming by associated mass data Method of printing.
Summary of the invention
The embodiment of the invention mainly provides a kind of data description file generation method and device, a kind of data file generation method and device, a kind of method and device that prints according to data description file can make things convenient for, the Data transmission content of safety, and realize convenient, safe reproduction, print described data content.
A kind of data description file generation method comprises:
Obtain the layout information of variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Login described database according to the database information of described variable data element;
In described database described variable data element binding data source information; Described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Generate data description file, in the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element.
A kind of data description file generating apparatus comprises:
The element information acquisition module is in order to the layout information that obtains the variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The database link block in order to receiving the database information of the described variable data element that described element information acquisition module obtains, and is logined described database according to the database information of described variable data element;
The data source information binding module in order to after the described database success of login, is variable data element binding data source information in database;
File generating module, the variable data element layout information that obtains in order to reception and be the database information and the data source information of variable data element binding, and with these information corresponding record at data description file.
A kind of data file generation method comprises:
Receive data description file; In the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element, described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Resolve described data description file, obtain the database information and the data source information of the layout information and the described variable data element of described variable data element;
Login described database according to the database information of described variable data element;
Obtain the data of variable data element according to the data source information of described variable data element;
Generation comprises the data file of the data of variable data element, and the form of described variable data element data is determined according to the layout information of variable data element.
A kind of data file generating apparatus comprises:
Obtain file module, in order to receive data description file; In the described reception data description file corresponding record layout information of each variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The resolution file module is obtained the data description file that file module receives in order to parsing, obtains the layout information of variable data element, the database information and the data source information of variable data element;
The logon data library module is used to receive the database information of the variable data element that the resolution file module parses goes out, and according to the database information log database of described variable data element;
Obtain data module, be used for behind the described database of login, and according to the data source information of described variable data element from database, obtain the data that meet filtercondition;
The pooled data module is obtained the data that data module is obtained in order to reception, and generates the data file of the data that comprise the variable data element, and the form of described variable data element data is determined according to the layout information of variable data element.
A kind of Method of printing comprises:
Receive data description file, in described data description file corresponding record the layout information of variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Resolve described data description file, obtain the database information and the data source information of the layout information and the described variable data element of described variable data element;
Login described database according to the database information of described variable data element;
Obtain the data of variable data element according to the data source information of described variable data element;
Generation comprises the data file of the data of variable data element, and the form of described variable data element data is determined according to the layout information of variable data element;
Print output according to described data file.
A kind of printing equipment comprises:
Obtain file module, in order to receive data description file; In the described reception data description file corresponding record layout information of each variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The resolution file module is obtained the data description file that file module receives in order to parsing, obtains the layout information of variable data element, the database information and the data source information of variable data element;
The logon data library module is used to receive the database information of the variable data element that the resolution file module parses goes out, and according to the database information log database of described variable data element;
Obtain data module, be used for behind the described database of login, and according to the data source information of described variable data element from database, obtain the data that meet filtercondition;
The pooled data module is obtained the data that data module is obtained in order to reception, and generates the data file of the data that comprise the variable data element, and the form of described variable data element data is determined according to the layout information of variable data element;
The printout module, in order to the data file of reception pooled data module generation, and this data file of printout.
In the described method and apparatus of the embodiment of the invention, because the file that transmits is a data description file, what the content of this document comprised is the information of the database of variable data binding, but not the data in the database, so the document size that transmits has reduced greatly;
And because in the transmittance process before printing, what transmit is data description file, and what its content comprised is the information of the database of variable data binding, does not comprise the data in the database, so print data just is not easy to leak, and has improved security greatly.
Description of drawings
Fig. 1 is the transmission synoptic diagram of embodiment of the invention data description file;
Fig. 2 a is the realization Data transmission content of the embodiment of the invention and the system principle diagram of printing;
Fig. 2 b is the internal frame diagram of the type-setting module of the embodiment of the invention;
Fig. 2 c is the internal frame diagram of the output module of the embodiment of the invention;
Fig. 3 a is the process flow diagram in the type-setting module of the embodiment of the invention;
Fig. 3 b is the process flow diagram in the binding data source of the embodiment of the invention;
Fig. 4 a is the process flow diagram in the output module of the embodiment of the invention;
Fig. 4 b is the process flow diagram that the accessing database of the embodiment of the invention is obtained the method for data;
Fig. 5 is the interface synoptic diagram of user's input information of the type-setting module of the embodiment of the invention;
Fig. 6 is the interface synoptic diagram in binding data source of the type-setting module of the embodiment of the invention;
Fig. 7 is before the data of the embodiment of the invention merge and the page synoptic diagram after merging.
Embodiment
The embodiment of the invention provides a kind of device and method of Data transmission content, and the device and method that prints on the basis of the method for this Data transmission content.
As shown in Figure 1, the data content that need print for portion, such as being bill, user message table etc., need print printing from be delivered to the printing place the composing personnel, during need examining and transmitting through audit crew and other departmental staff.The embodiment of the invention provides a type-setting module, and data element in the data content that will transmit and the data source in the database are bound and generated a data description document.Wherein, there are data in this data content in the described database.This data description file transmits final arrival printing place in other departments between personnel.Provide an output module in the printing place embodiment of the invention, in order to parse the database information and the data source information of binding in the data description file, and login this database and from data source, take out data and merge in the file, finally with a kind ofly read, printable file layout reproduces the data content that will transmit, and printout.
Be that example describes how to generate data description file according to the data content that will transmit in detail with a greeting card below, and parse database information in this data description file, and login this database and take out data, finally with a kind ofly read, the data file of printable form reproduces the data content that will transmit, and printout.
A greeting card, the data content fundamental element with paper, picture, customer name, sex, wherein the paper size of greeting card is fixed as A5; Picture is fixed; Customer name then is a variable data, is all clients' on August 3 name for the birthday in the database; Sex also is a variable data, in the database with the corresponding client's of customer name sex.Whether connect database according to these elements, these elements are divided into fixed element and variable data element.
Fixed element refers to the changeless element of print What on the data file that will transmit, such as the Bank Name on paper, the bank statement.Fixed element information comprises the data of fixed element layout information and fixed element.The fixed element layout information refers to the composition information of relevant these fixed elements, such as position, color etc.For example the position of the Bank Name on paper size, the bank statement in paper, font type, font size etc. promptly are the layout informations of fixed element.The data of fixed element specifically refer to printed contents, comprise literal and figure.
The variable data element refers to the element that the concrete object of print What meeting basis changes on the data file that will transmit, just needs the element in binding data storehouse.Such as the name of client in the bank statement, this print What has different print Whats at different clients.The variable data element information comprises the data source information in the database at data place of the wide area information server information at data place of variable data element layout information and variable data element and variable data element.Variable data element layout information refers to the composition information of relevant variable data element, such as position, color, font etc.; The database information of variable data element refers to the relevant information of the database of variable data element binding, the authorization information when comprising address, database-name, the log database of database place computing machine.Username and password when the authorization information during wherein log database comprises log database; Filtercondition when the data source information of variable data element comprises table in the database of data place, field and inquiry.Which bar start-of-record filtercondition comprise from filter which record, and in fact filtercondition is exactly a Universal Database query statement.
Obviously, the fixed element of this greeting card is paper and picture, and the variable data element is " customer name " and " sex ".
Fig. 2 a is a kind of Data transmission content and theory diagram of printing realized of the embodiment of the invention, comprising: type-setting module 200, output module 210, database 220.
Type-setting module 200 is in order to the information of the database at the data place of fixed element information, variable data element layout information and each variable data element of the data content that will transmit that obtains input, and is the information of the data source at each variable data element binding data place according to the database information log database of each variable data element; Type-setting module 200 is recorded in the data source information of the database information of the above-mentioned fixed element information of obtaining, variable data element layout information, variable data element, variable data element and generates data description file in the data file.
Output module 210 is in order to parse the fixed element information in the data description file, variable data element layout information, the database information of variable data element, the data source information of variable data element, database information accessing database 220 according to the variable data element, according to data source information reading of data from database 220, again according to fixed element information, variable data element layout information and described the recovering according to the data in the storehouse of reading are transmitted preceding data content, generate a kind of the reading, the data file of printable form is reproduced the data content that will transmit, printout.
Shown in Fig. 2 b, comprise in the type-setting module 200:
Element information acquisition module 201 is in order to the database information of the fixed element information, variable data element layout information and the variable data element that obtain the data content that will transmit.
Database link block 202, database information in order to the variable data element that receives element information acquisition module 201, and according to the 220 place host addresses of the database in the database information, database name and login authentication information log database 220, the back sends the login successful information to data source information binding module 203 logining successfully.
Data source information binding module 203, in order to the login successful information of reception database link block 202 transmissions, and after receiving this information, in database 220, select the table of the data source at data place, and in this table, select the field at data place, note table name, field name.Data source information binding module 202 is also obtained the filtercondition of data.
File generating module 204 generates data description file in order to the fixed element information that will obtain and variable data element layout information and for the database information and the data source information of variable data element binding.
Shown in Fig. 2 c, comprise in the output module 210:
Obtain file module 211, in order to obtain data description file;
Resolution file module 212 is obtained the data description file that file module 211 obtains in order to parsing, obtains variable data element information and fixed element information;
Logon data library module 213, be used to receive the variable data element information that resolution file module 212 parses, and according to the database information in the variable data element information, comprise database place host address, database name and login authentication information, log database, and after logining successfully, send the login successful information to obtaining data module 214;
Obtain data module 214, be used to receive the login successful information of logon data library module 213, and according to the data source information in the variable data element information from database 220, obtain the data that meet filtercondition;
Pooled data module 215, obtain the data that data module 214 is obtained in order to reception, and generate according to the data of the layout information of fixed element information, variable data element and variable data element a kind ofly read, the data file of printable form reproduces the data content that will transmit;
Printout module 216 is in order to print the data file that pooled data module 215 generates.
If obviously the data file of pooled data module 215 generations is not to be used for printing, only just browse or other operation, then do not need printout module 216.Module 211-module 215 just can be finished by data description file, and transmission has also been reproduced the function of data content.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise the steps, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
By type-setting module 200, the fixed element information of the data content that input will be transmitted, variable data element information, wherein the variable data element information comprises the database information of variable data element layout information and variable data element.Such as, the fixed element information on the greeting card is: the image information of paper size A5, picture, the picture positional information in paper etc.; The variable data element information is: information such as the font size of customer name, font color, font type, font position; The database information of variable data element: database-name, table name, field name, filtercondition, database password etc.
Concrete input method has many, and programming can adopt the mode of combobox to select option usually, also can adopt the mode of text money to come input digit or literal.Certainly can also adopt how more humane method, can reach the method for the above-mentioned information of easy input, these should be known for those skilled in the art.
Shown in Fig. 3 a, be the composing of the embodiment of the invention, the flow process of generation data description file:
Step S300: the newly-built page.
The newly-built page in element information acquisition module 201.Adopting comparatively intuitively in the present embodiment, method realizes fixed element: the input of paper size, the function of the newly-built page is provided in element information acquisition module 201, and the option of paper size is arranged, the page editing interface of corresponding size intuitively will appear after choosing, as shown in Figure 5.
Step S301: place an element.
Place an element by element information acquisition module 201 at the page, such as placing " customer name ", those skilled in the art has the multiple technologies means to realize this function, such as employing pull, modes such as selection, text box input realize.
Step S302: the element layout information is set.
The layout information of element can be set, such as the position of element in paper, size, color etc. in element information acquisition module 201.Such as the input for the information of variable data element " customer name ", those skilled in the art can adopt the multiple technologies means to realize, such as adopting combobox to realize the selection of the font type of " customer name ", and font size is selected.
Step S303: judge whether to be the variable data element.
The composing personnel judge whether whether this element is the variable data element, need log database binding data source information.If not the variable data element, execution in step S305, if, execution in step S304.For the page that will print of this example, " customer name " and " sex " is the variable data element, needs binding data source information.
Step S304: be variable data element binding data source.
By the database information of element information acquisition module 201 input variable data elements, by being the data source at variable data element binding data place in database link block 202 and the data source information binding module 203.
Step S305: whether also need place next element.
The content of the page that the composing personnel print as required judges whether also will place next element.If return step S301; If do not had, execution in step S306.
Step S306: fixed element information, variable data element information according to input generate data description file.Generate data description file by file generating module 204 according to the layout information of the fixed element information of obtaining, variable data element and database information, the data source information of variable data element.
Those skilled in the art can have many technological means to realize generating data description file.Can user-defined format, also can self-defined recording mode.The mode of describing such as each element relevant information of, the simplest employing, with the description itemization of each element relevant information in text.The text has been a description document promptly like this.
Above-mentioned steps S304 be the method in variable data element binding data source shown in Fig. 3 b, concrete steps comprise:
Step S321: obtain database information.
Database information by element information acquisition module 201 input variable data elements comprises database 220 place host addresses, database name and login authentication information.
Step S322: log database.
Sign in to database 220 by database link block 202 according to database information, connect with database 220.
Step S323: binding data source information.
After successful log database 220, select the data place data source of variable data element by data source information binding module 203, promptly select the table and the field at data place, and write down this table name and field name, and the query filter condition is set for this variable data element.The interface of selection data source as shown in Figure 6.
It more than is the step of the generation method of data description file.
Data description file transmits in each department, finally arrives the place of printout.Place in printout, output module 210 parses the database information of the variable data element of data description file, database information accessing database 220 according to the variable data element, data in the reading database 220, again according to fixed element information, variable data element layout information and the described data content before transmitting according to the data reproduction in the storehouse that reads, and with a kind ofly read, the data file of printable form reproduces the data content that will transmit, printout.
In concrete enforcement, owing to not necessarily only bound the data that a cover meets the variable data element of filtercondition in data description document, general probably the data that many covers meet filtercondition have been bound.Such as, be " client that the birthday is August 3 " for the filtercondition of " customer name " in this example, so probably can there be some clients to satisfy this condition relatively.For example in database 220, just all satisfy filtercondition as following record:
Zhang San, August 3 nineteen thirty, man;
Bang, August 3 nineteen ninety, man;
Li Xue, on August 3rd, 1988, woman.
So for the just not only corresponding cover variable data of a data description document, they can corresponding a lot of cover variable datas---as long as these data satisfy filtercondition.Exactly because the corresponding a lot of cover variable datas of information of the Relational database that data description file can be by carrying binding, so that reduced greatly dimensionally in order to the description document of Data transmission content.
In specific implementation process, output module 210 is obtaining data of overlapping the variable data element that meets filtercondition, and merge to the page, after exporting this page or leaf, can adopt the round-robin mode from database 220, to read the data content that next cover meets following one page of data merging output of filtercondition again.Specific implementation is referring to the step of Fig. 4 a:
Step S4001: obtain data description file.
Obtain file module 211 and obtain data description file.
Step S4002: resolution data description document.
Resolution file module 212 resolution data description document are fixed the information of element information and variable data element.
Step S4003: according to the database information log database.
Logon data library module 213 obtains the relevant specifying information of concrete database according to the database information in the information of variable data element, comprises database 220 place host addresses, database name, login authentication information etc.Sign in to this database 220 according to database information.
Step S4004: from database 220, obtain data according to data source information.
After successful log database 220, obtain the data source information of data module 214 according to the binding of variable data element, obtain the data that meet filtercondition.Often qualified data are not unique.For example " customer name " in this example can have a plurality of qualified clients in database.Obtain data module 214 so and once can only obtain one, other qualified data are only obtained at next circulation time.For related variable data element, the filtercondition of judging according to association obtains data.For example, the variable data element " sex " in this example is associated with " customer name ".The filtercondition of variable data element " sex " just should add the association judgement to " customer name " so, the data of obtaining such as this moment " customer name " are " Zhang San ", the data of obtaining of " sex " just should be the sex of " Zhang San "---men so, obtain the data that data module 214 has obtained a cover variable data element thus.
In addition, obtaining data module 214 can be according to the Query Result of filtercondition in database 220, is recorded in the Query Result also remaining how many qualified data and does not obtain, and perhaps notes and whether also is left the qualified data do not obtained.If the execution printout, this record will be used in step S4007.If do not carry out printout, this record will be used in step S4005.For example, what this obtained is relevant " Zhang San " client's data, and the client's that other satisfies condition data will be obtained in next time.
Step S4005: will obtain data and merge in the page.
The data that pooled data module 215 will be obtained all variable data elements that data module 214 obtains all merge in the information of variable data element corresponding with it, such as, obtain data module 214 and obtained a sets of data:
Zhang San, August 3 nineteen thirty, man;
Pooled data module 215 merges to " Zhang San " in the element information of " customer name " and forms print What " Zhang San "; " man " merged in the element information of " sex ", form print What " sir ".The data file of the transmission before and after merging is shown in Fig. 1 b.Pooled data module 215 is according to fixed element information in the data description file and merged the variable data element information that obtains data, with a kind ofly read, the data file of printable form reproduces the data content before transmitting.Such as, the data file of PDF that can above-mentioned data message generation is general is convenient to people and is browsed, prints.
Obviously, if do not need the data file of reproducing is not printed output, then needn't carry out the later step of this step, but in this step, add a judgement: know according to the record that obtains data module 214 also remaining how many qualified data are not obtained in the Query Result, perhaps note and whether also be left the qualified data do not obtained.If meet the data of filtercondition in addition, then return step S4004 and continue to obtain next sets of data; If no, then finish.
Step S4006: printout.
Printout module 216 prints output according to the data file that pooled data module 215 generates.
Step S4007: judge whether the data that satisfy condition in addition.
Under the practical situations of majority, the data that meet filtercondition are not unique, judge the data that whether also have next cover to satisfy condition for the data needs that have many covers to meet filtercondition.Know in the Query Result the also remaining qualified data what do not obtain according to the record that obtains data module 214, whether perhaps note the also remaining qualified data of not obtaining.If meet the data of filtercondition in addition, then return step S4004 and continue to obtain next sets of data; If no, execution in step S4008 finishes this print out task.
Step S4008: print and finish.
Among the above-mentioned steps S4003 according to the method for database information log database shown in Fig. 4 b:
Step S4301: connect remote terminal.Logon data library module 213 connects remote terminal according to the host address in the database information of variable data element.
Step S4302: whether comprise login authentication information.Whether comprise login authentication information in the database information of logon data library module 213 inspection variable data elements.If comprised, execution in step S4303 then; If no, execution in step S4304.This step has further guaranteed the safety of data in the file.
Step S4303: prompting input validation information.Logon data library module 213 is reminded operating personnel's input validation information, such as user name, password, and receives and confirms this authorization information.
Step S4304: connect database 220.Logon data library module 213 connects corresponding database 220 according to the database name in the database information of variable data element.
The embodiment of the invention is because the transmission file that adopts is a data description file, what the content of this document comprised is the information of the database of variable data binding, and the data of a sets of data library information in can corresponding many sets of data storehouse are so the document size that transmits has reduced greatly;
The embodiment of the invention is a data description file owing to what transmit, what its content comprised is the information of the database of variable data binding, do not comprise the data in the database,, improved security greatly so in transmittance process, be not easy to have produced the problem of leak data.
The embodiment of the invention is because the mode that accessing database has adopted user name, password to login has further guaranteed transmission, print What safety of data.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (15)

1. a data description file generation method is characterized in that, comprising:
Obtain the layout information of variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Login described database according to the database information of described variable data element;
In described database described variable data element binding data source information; Described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Generate data description file, in the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element.
2. data description file generation method as claimed in claim 1 is characterized in that described database information also comprises login authentication information; And also comprise the step of importing described login authentication information during described database in login.
3. data description file generation method as claimed in claim 2 is characterized in that described login authentication information comprises user name and password.
4. data description file generation method as claimed in claim 1 is characterized in that, also comprises:
Obtain the data of the layout information and the fixed element of each fixed element; And
In the described data description file also corresponding record the layout information of described fixed element and the data of fixed element.
5. a data description file generating apparatus is characterized in that, comprising:
The element information acquisition module is in order to the layout information that obtains the variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The database link block in order to receiving the database information of the described variable data element that described element information acquisition module obtains, and is logined described database according to the database information of described variable data element;
The data source information binding module in order to after the described database success of login, is variable data element binding data source information in database;
File generating module, the variable data element layout information that obtains in order to reception and be the database information and the data source information of variable data element binding, and with these information corresponding record at data description file.
6. a data file generation method is characterized in that, comprising:
Receive data description file; In the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element, described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Resolve described data description file, obtain the database information and the data source information of the layout information and the described variable data element of described variable data element;
Login described database according to the database information of described variable data element;
Obtain the data of variable data element according to the data source information of described variable data element;
Generation comprises the data file of the data of variable data element, and the form of described variable data element data is determined according to the layout information of variable data element.
7. data file generation method as claimed in claim 6 is characterized in that, the method for described database information log database according to the variable data element comprises:
Connect remote terminal according to the described host address in the database information of described variable data element;
Login corresponding database on the described remote terminal according to the database name in the database information of described variable data element.
8. data file generation method as claimed in claim 7 is characterized in that described database information also comprises login authentication information; And when the described database of login, also comprise:
Prompting input login authentication information, and when the described login authentication information of confirming input is correct, connect described database.
9. data file generation method as claimed in claim 6 is characterized in that, the generation method of described data description file comprises:
Obtain the layout information of variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Login described database according to the database information of described variable data element;
In described database described variable data element binding data source information; Described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Generate data description file, in the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element.
10. data file generation method as claimed in claim 6 is characterized in that, in the described data description file also corresponding record the layout information of described fixed element and the data of fixed element; And described method also comprises:
Resolve described data description file, obtain the data of described fixed element layout information and described fixed element, also comprise the data of fixed element in the described data file of generation, the form of described fixed element data is determined according to described fixed element layout information.
11. a data file generating apparatus is characterized in that, comprising:
Obtain file module, in order to receive data description file; In the described reception data description file corresponding record layout information of each variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The resolution file module is obtained the data description file that file module receives in order to parsing, obtains the layout information of variable data element, the database information and the data source information of variable data element;
The logon data library module is used to receive the database information of the variable data element that the resolution file module parses goes out, and according to the database information log database of described variable data element;
Obtain data module, be used for behind the described database of login, and according to the data source information of described variable data element from database, obtain the data that meet filtercondition;
The pooled data module is obtained the data that data module is obtained in order to reception, and generates the data file of the data that comprise the variable data element, and the form of described variable data element data is determined according to the layout information of variable data element.
12. a Method of printing is characterized in that, comprising:
Receive data description file, in described data description file corresponding record the layout information of variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Resolve described data description file, obtain the database information and the data source information of the layout information and the described variable data element of described variable data element;
Login described database according to the database information of described variable data element;
Obtain the data of variable data element according to the data source information of described variable data element;
Generation comprises the data file of the data of variable data element, and the form of described variable data element data is determined according to the layout information of variable data element;
Print output according to described data file.
13. Method of printing as claimed in claim 12 is characterized in that, the generation method of described data description file comprises:
Obtain the layout information of variable data element and the database information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
Login described database according to the database information of described variable data element;
In described database described variable data element binding data source information; Described data source information comprises the table name of the table in the data place database of variable data element and the field name of field, and the filtercondition that is provided with for inquiry;
Generate data description file, in the described data description file corresponding record layout information of variable data element, the database information of variable data element and the data source information of variable data element.
14. Method of printing as claimed in claim 12 is characterized in that, in the described data description file also corresponding record the layout information of described fixed element and the data of fixed element; And described method also comprises:
Resolve described data description file, obtain the data of described fixed element layout information and described fixed element, also comprise the data of fixed element in the described data file of generation, the form of described fixed element data is determined according to described fixed element layout information.
15. a printing equipment is characterized in that, comprising:
Obtain file module, in order to receive data description file; In the described reception data description file corresponding record layout information of each variable data element, the database information of variable data element and the data source information of variable data element; The database information of described variable data element comprises the host address and the database name of the data place database of variable data element;
The resolution file module is obtained the data description file that file module receives in order to parsing, obtains the layout information of variable data element, the database information and the data source information of variable data element;
The logon data library module is used to receive the database information of the variable data element that the resolution file module parses goes out, and according to the database information log database of described variable data element;
Obtain data module, be used for behind the described database of login, and according to the data source information of described variable data element from database, obtain the data that meet filtercondition;
The pooled data module is obtained the data that data module is obtained in order to reception, and generates the data file of the data that comprise the variable data element, and the form of described variable data element data is determined according to the layout information of variable data element;
The printout module, in order to the data file of reception pooled data module generation, and this data file of printout.
CN2007101224349A 2007-09-25 2007-09-25 Method and system for data file conveying and printing Expired - Fee Related CN101122922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101224349A CN101122922B (en) 2007-09-25 2007-09-25 Method and system for data file conveying and printing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101224349A CN101122922B (en) 2007-09-25 2007-09-25 Method and system for data file conveying and printing

Publications (2)

Publication Number Publication Date
CN101122922A true CN101122922A (en) 2008-02-13
CN101122922B CN101122922B (en) 2010-06-02

Family

ID=39085257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101224349A Expired - Fee Related CN101122922B (en) 2007-09-25 2007-09-25 Method and system for data file conveying and printing

Country Status (1)

Country Link
CN (1) CN101122922B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN109669647A (en) * 2018-11-30 2019-04-23 森大(深圳)技术有限公司 Print image data processing method, device, equipment and storage medium
CN114079700A (en) * 2020-08-20 2022-02-22 夏普株式会社 Image forming apparatus and control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6236463B1 (en) * 1997-01-17 2001-05-22 Moore U.S.A., Inc. Generating high speed variable information printed multiple page documents
EP1257967A2 (en) * 2000-02-09 2002-11-20 Moore Wallace North America, Inc. Imaging documents having static content and variable data
KR100727927B1 (en) * 2004-11-02 2007-06-13 삼성전자주식회사 Printing method using ordering file and print system, image supply device and print device thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294652A (en) * 2012-02-27 2013-09-11 腾讯科技(深圳)有限公司 Data conversion method and system
CN109669647A (en) * 2018-11-30 2019-04-23 森大(深圳)技术有限公司 Print image data processing method, device, equipment and storage medium
CN109669647B (en) * 2018-11-30 2022-04-12 森大(深圳)技术有限公司 Print image data processing method, apparatus, device and storage medium
CN114079700A (en) * 2020-08-20 2022-02-22 夏普株式会社 Image forming apparatus and control method

Also Published As

Publication number Publication date
CN101122922B (en) 2010-06-02

Similar Documents

Publication Publication Date Title
JP3803378B2 (en) Secure copy of confidential documents
US5848426A (en) Automatic data translation between different business systems
US10178248B2 (en) Computing device for generating a document by combining content data with form data
US20070285723A1 (en) Method and system for managing bank drafts
WO2011075474A1 (en) Distributed capture system for use with a legacy enterprise content management system
US7379203B2 (en) Data capture during print process
CN105279173A (en) Automatic archiving system of original voucher and signal processing method for system
US7085998B2 (en) Mapping a print stream for printing on mailers from a first application for input to a second application
KR100846688B1 (en) Joined front end and back end document processing
CN101122922B (en) Method and system for data file conveying and printing
CN101546399B (en) Voucher data management system and method for controlling voucher data management system
US20030140185A1 (en) Method and system for client-side print job meta-data collection and open billing
JP6976763B2 (en) Journal information processing device, journal information processing method, and program
KR102138077B1 (en) System and method for preventing forgery and alteration of documents
JPH11195079A (en) Securities processor and its program recording medium
JP6141068B2 (en) Accounting method, system, and program
CN201796439U (en) Self-service receipt printing equipment
CN201435114Y (en) Self-service type receipt printing system
CN202025354U (en) Secondary-generation ID card electronic file generating device
JPH11154191A (en) Reception/payment data processor for account
JP2003016530A (en) Electronic receipt and electronic receipt processing system
JPH0793406A (en) Credit sale processor
JP2008242994A (en) Record management device
JP3903636B2 (en) Securities issuing device, securities inquiry server, and storage medium
CA2571092C (en) Document output processing using content data and form data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220615

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Haidian District Fangzheng Road, Beijing, Zhongguancun Fangzheng building, 298, 513

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100602

CF01 Termination of patent right due to non-payment of annual fee