CN1940913A - Variable table data type setting method - Google Patents
Variable table data type setting method Download PDFInfo
- Publication number
- CN1940913A CN1940913A CNA2006101131299A CN200610113129A CN1940913A CN 1940913 A CN1940913 A CN 1940913A CN A2006101131299 A CNA2006101131299 A CN A2006101131299A CN 200610113129 A CN200610113129 A CN 200610113129A CN 1940913 A CN1940913 A CN 1940913A
- Authority
- CN
- China
- Prior art keywords
- node
- tree
- card
- masterplate
- content
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A method for composing variable data of table includes utilizing table master-plate four fields of table block, line, unit division and variable content to structure node tree of table master-plate then structuring continuous line node to be group; correlating node of node tree with composing data in table and expanding composing data to obtain composing effect of multilayer nested structure.
Description
Technical field
The invention belongs to the preceding computer composition technical field of seal, be specifically related to a kind of method of variable data composing of form.
Background technology
Along with the development of digital printing technology, directly sales service is growing again, and the making of various personalized bills (as bank statement, insurance slip or the like), printing get more and more.The continuous progress of colour technology and data mining technology, make that the making of personalized bill is exquisite more careful, it is also abundanter to represent form, consumption record as common bank card user, it is usually expressed as the contents such as detail record that are presented at different region bankcard consumptions in same form bill the inside, and the detail record in these form bills belongs to variable data, be that these data contents can change because of the difference of information because of different card users, thus to the content production of variable data, especially have higher requirement for making as the form of this main forms of bill.
In the prior art, the method that the variable data of form is set type is to create the form of given pattern, utilize typesetting data directly to replace the variable content item of each cell the inside in the form then, the line number and the columns of form do not change in process of typeset, obviously, this method is fit to the variable data of the typesetting data of single layer structure and sets type, but, for the typesetting data of multilayer nest structure, the columns of form is generally determined during composing, but the line number of form is uncertain often, obviously, adopts existing method can't realize the composing requirement of the typesetting data of this multilayer nest structure.
Summary of the invention
At defective of the prior art, the method that the purpose of this invention is to provide a kind of variable data composing of form, this method is passed through the form masterplate from the form piece, OK, cell, four levels of variable content item make up form masterplate node tree, then continuous a plurality of capable node is configured to group, support nested structure simultaneously to group, with each node of node tree respectively with form in typesetting data carry out related, carry out the expansion of typesetting data then, can realize that the variable data of typesetting data of the multilayer nest structure of form sets type, the composing effect of form can be enriched, and the range of application that variable data is set type can be expanded.
For reaching above purpose, the technical solution used in the present invention is: the method that a kind of variable data of form is set type may further comprise the steps:
The list data content of (1) needs being set type is converted to the data based on tree structure, the tree structure of the content that obtains simultaneously setting type;
(2) design table (schedule) masterplate in composing system, resolve the form masterplate, make up and initialization form masterplate node tree according to form piece, row, cell, four levels of variable content item, correspondingly obtain the node of four levels of form masterplate node tree, be form piece node, row node, cell node and variable content item node, wherein form piece node, row node, three kinds of nodes of cell node are the limb node, and variable content item node is a leafy node; The capable node of form masterplate node tree, cell node and variable content item node are corresponding one by one with row, cell and the variable content item of form masterplate, the capable node that is form masterplate node tree is corresponding one by one with the table row of form masterplate, cell under the row that the cell node of row under the node is corresponding with the form masterplate in the form masterplate node tree is corresponding one by one, and the variable content item node of form masterplate node tree is corresponding one by one with the variable content item of form masterplate; Each node of form masterplate node tree is that form piece node, row node, cell node and variable content item node all have data binding attribute (English name is databinding), and this data binding attribute is used to write down the position of composing content associated therewith on the tree structure that the composing content forms;
(3) in form masterplate node tree, make up group node, when wherein making up first group node, any continuous capable node by form masterplate node tree is formed, and then this first group node is inserted into the position of first row node that constitutes this group node in the form masterplate node tree; When making up other group node, this group node is made up of continuous capable node, perhaps is made up of continuous group node, perhaps is made up of continuous capable node and group node, and the position of group node is at first node location place that forms this group node; Described group node is the logic node that is structured on the form masterplate node tree, is not associated with any actual row version content on the space of a whole page, and be the limb node; Described group node has the data binding attribute;
(4) each node that sets gradually form masterplate node tree be form piece node, group node, row node, cell node, variable content item node with step (1) in related between the tree structure of the composing content that obtains; Described association realizes by the data binding attribute of each node in the form template node tree;
(5) according to the association of setting up in the step (4), the data content of setting type is launched step by step, recursively obtain the pairing composing content of each node of form template node tree step by step, according to the one-to-many principle, in the form template node tree, make up corresponding node object, the composing content is recorded in the corresponding node object successively the form masterplate node tree after obtaining launching;
(6) create new form, content according to each row nodes records of the form masterplate node tree that launches in the step (5), create successively and the identical new table row of corresponding row in the form masterplate, and be inserted in the form of new establishment, thus the establishment of realization tableau format;
(7) obtain each leaf node of form masterplate node tree successively, utilize in the new form of creating of typesetting data content displacement that leaf node writes down corresponding variable content item in each cell, thereby realize the setting to the composing content, processing finishes.
Further, obtain better invention effect for making the present invention, the list data content of in the step (1) needs being set type is converted to the tree structure data based on the XML form, obtains the tree structure based on the composing content of XML form simultaneously;
Further, obtain better invention effect for making the present invention, the form masterplate node tree described in the step (2) makes up based on the XML form;
Further, for making the present invention obtain better invention effect, during related between the tree structure of the composing content that obtains in each node that form masterplate node tree is set in the step (4) and the step (1), form masterplate node tree makes up based on XML, the tree structure of composing content also makes up based on XML, then equal related between the tree structure of the data binding attribute record by the XML node and composing content of form piece node, group node, row node, cell node, variable content item node five category nodes;
Further, for making the present invention obtain better invention effect, in the step (5) data content of setting type is launched step by step, during form masterplate node tree after obtaining launching, the method that adopts is: form masterplate node tree makes up based on XML, the tree structure of composing content also makes up based on XML, each node of form masterplate node tree has all write down the data binding attribute of XML node, according to the data binding attribute, recursively obtain the XML node of the pairing composing content of each node of form masterplate node tree step by step, employing XPath technology can realize the visit to the XML node of composing content, and construct the node object of corresponding form masterplate node tree, simultaneously with the data content assignment of the XML nodes records of composing content among the node object of creating, thereby realize the expansion of form masterplate node tree.
Effect of the present invention is: adopt method of the present invention, can realize the composing of form to the variable data of the typesetting data of multilayer nest structure, enriched the composing effect of form, expanded the range of application that variable data is set type.
Description of drawings
Fig. 1 is the process flow diagram of the method for the invention;
What Fig. 2 was based on XML waits to set type the tree structure synoptic diagram of content;
Fig. 3 is the synoptic diagram of the form masterplate that designs in composing system;
Fig. 4 is the synoptic diagram based on the form masterplate node tree of XML that generates after resolving the form masterplate;
Fig. 5 is the synoptic diagram that has added the form masterplate node tree behind the group node;
The form masterplate node tree that Fig. 6 is based on XML with based on the related synoptic diagram between the tree structure of the composing content of XML;
Fig. 7, Fig. 8, Fig. 9 are the synoptic diagram of the tableau format creating out according to the form masterplate node tree after launching;
Figure 10, Figure 11, Figure 12 are final tabular matter effect synoptic diagram.
Embodiment
Below in conjunction with specific embodiments and the drawings, the invention will be further elaborated:
As shown in Figure 1, the method that a kind of variable data of form is set type may further comprise the steps:
The list data content of (1) needs being set type is converted to the data based on tree structure, the tree structure of the content that obtains simultaneously setting type;
In the present embodiment, the list data content that needs are set type is converted to the tree structure data based on the XML form, obtains the tree structure based on the composing content of XML form simultaneously;
In this example, the data that need set type are personal credit card consumption information, the unprocessed form of data file is shown in table 1, table 2, the composing effect that expectation reaches is that everyone credit card purchase information can both be set type into an independently form separately, and the record of swiping the card of form the inside divides into groups to set type according to the place of swiping the card;
Table 1 people's essential information
Name | Credit card issuer | Account Type |
Zhang San | The upright bank of China | Renminbi |
Li Si | The upright bank in Hong Kong | Hongkong dollar |
The king five | The upright bank of Singapore | New coin |
Table 2 needs the personal credit card consumption information of composing
Name | The place of swiping the card | The project of swiping the card | Charge time | The amount of money of swiping the card |
Zhang San | Beijing | Transportation expenses | 2006-8-1 | 25.00 |
Zhang San | Beijing | Communication expense | 2006-8-1 | 120.00 |
Li Si | Hong Kong | Air ticket | 2006-8-2 | 1100.00 |
The king five | Singapore | The food and drink expense | 2006-8-2 | 30.00 |
The king five | Singapore | Transportation expenses | 2006-8-2 | 24.00 |
Li Si | Hong Kong | Hotel expense | 2006-8-3 | 360.00 |
Zhang San | Beijing | Shopping | 2006-8-3 | 580.00 |
Zhang San | Beijing | The food and drink expense | 2006-8-3 | 45.00 |
Li Si | Beijing | Transportation expenses | 2006-8-4 | 80.00 |
Li Si | Beijing | Hotel expense | 2006-8-4 | 280.00 |
The king five | Kuala Lumpur | Transportation expenses | 2006-8-4 | 54.00 |
The king five | Kuala Lumpur | Shopping | 2006-8-5 | 2800.00 |
The king five | Kuala Lumpur | The food and drink expense | 2006-8-5 | 80.00 |
Zhang San | Beijing | The electricity charge | 2006-8-5 | 138.00 |
Zhang San | Beijing | Water rate | 2006-8-6 | 78.00 |
Li Si | Beijing | Communication expense | 2006-8-6 | 90.00 |
The king five | Singapore | Transportation expenses | 2006-8-6 | 54.00 |
Zhang San | Beijing | Air ticket | 2006-8-7 | 780.00 |
Zhang San | Dalian | Transportation expenses | 2006-8-7 | 12.00 |
Zhang San | Dalian | Hotel expense | 2006-8-7 | 360.00 |
Li Si | Beijing | Shopping | 2006-8-8 | 1390.00 |
Li Si | Beijing | Transportation expenses | 2006-8-8 | 280.00 |
Li Si | Shenzhen | Hotel expense | 2006-8-10 | 280.00 |
Zhang San | Dalian | Shopping | 2006-8-12 | 2145.00 |
Composing content shown in table 1, the table 2 is converted to the data of XML form, obtains being embodied in following form based on the tree structure of the composing content of XML as shown in Figure 2:
<credit card purchase gathers 〉
<personal consumption gathers 〉
<individual essential information 〉
<name〉Zhang San</name 〉
<credit card issuer〉Chinese upright bank</credit card issuer 〉
<Account Type〉Renminbi</Account Type 〉
</individual essential information 〉
<detailed card using information 〉
<region the record of swiping the card 〉
<the place of swiping the card〉Beijing</place of swiping the card 〉
<the set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-1</charge time 〉
<the amount of money of swiping the card〉25.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉communication expense</project of swiping the card 〉
<charge time〉2006-8-1</charge time 〉
<the amount of money of swiping the card〉120.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉shopping</project of swiping the card 〉
<charge time〉2006-8-3</charge time 〉
<the amount of money of swiping the card〉580.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉the food and drink expense</project of swiping the card 〉
<charge time〉2006-8-3</charge time 〉
<the amount of money of swiping the card〉45.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉electricity charge</project of swiping the card 〉
<charge time〉2006-8-5</charge time 〉
<the amount of money of swiping the card〉138.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉water rate</project of swiping the card 〉
<charge time〉2006-8-6</charge time 〉
<the amount of money of swiping the card〉78.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉air ticket</project of swiping the card 〉
<charge time〉2006-8-7</charge time 〉
<the amount of money of swiping the card〉780.00</amount of money of swiping the card 〉
</swipe the card record〉</set of records ends of swiping the card〉</the region record of swiping the card〉<the region record of swiping the card〉<place of swiping the card〉Dalian</place of swiping the card〉<set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-7</charge time 〉
<the amount of money of swiping the card〉12.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉hotel expense</project of swiping the card 〉
<charge time〉2006-8-7</charge time 〉
<the amount of money of swiping the card〉360.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉shopping</project of swiping the card 〉
<charge time〉2006-8-12</charge time 〉
<the amount of money of swiping the card〉2145.00</amount of money of swiping the card 〉
</swipe the card record 〉
</swipe the card set of records ends 〉
</region the record of swiping the card〉</card using information in detail〉</personal consumption gathers〉<personal consumption gathers〉<individual essential information 〉
<name〉Li Si</name 〉
<credit card issuer〉the upright bank in Hong Kong</credit card issuer 〉
<Account Type〉Hongkong dollar</Account Type〉</individual essential information〉<detailed card using information 〉
<region the record of swiping the card 〉
<the place of swiping the card〉Hong Kong</place of swiping the card 〉
<the set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉air ticket</project of swiping the card 〉
<charge time〉2006-8-2</charge time 〉
<the amount of money of swiping the card〉1100.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉hotel expense</project of swiping the card 〉
<charge time〉2006-8-3</charge time 〉
<the amount of money of swiping the card〉360.00</amount of money of swiping the card 〉
</swipe the card record〉</set of records ends of swiping the card〉</the region record of swiping the card〉<the region record of swiping the card〉<place of swiping the card〉Beijing</place of swiping the card〉<set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-4</charge time 〉
<the amount of money of swiping the card〉80.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉hotel expense</project of swiping the card 〉
<charge time〉2006-8-4</charge time 〉
<the amount of money of swiping the card〉280.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉communication expense</project of swiping the card 〉
<charge time〉2006-8-6</charge time 〉
<the amount of money of swiping the card〉90.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉shopping</project of swiping the card 〉
<charge time〉2006-8-8</charge time 〉
<the amount of money of swiping the card〉1390.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-8</charge time 〉
<the amount of money of swiping the card〉280.00</amount of money of swiping the card 〉
</swipe the card record〉</set of records ends of swiping the card〉</the region record of swiping the card〉<the region record of swiping the card〉<place of swiping the card〉Shenzhen</place of swiping the card 〉
<the set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉hotel expense</project of swiping the card 〉
<charge time〉2006-8-10</charge time 〉
<the amount of money of swiping the card〉280.00</amount of money of swiping the card 〉
</swipe the card record 〉
</swipe the card set of records ends 〉
</region the record of swiping the card〉</card using information in detail〉</personal consumption gathers〉<personal consumption gathers〉<individual essential information 〉
<name〉king five</name 〉
<credit card issuer〉the upright bank of Singapore</credit card issuer 〉
<Account Type〉new coin</Account Type〉</individual essential information〉<detailed card using information 〉
<region the record of swiping the card 〉
<the place of swiping the card〉Singapore</place of swiping the card 〉
<the set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉the food and drink expense</project of swiping the card 〉
<charge time〉2006-8-2</charge time 〉
<the amount of money of swiping the card〉30.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-2</charge time 〉
<the amount of money of swiping the card〉24.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-6</charge time 〉
<the amount of money of swiping the card〉54.00</amount of money of swiping the card 〉
</swipe the card record 〉
</swipe the card set of records ends 〉
</region the record of swiping the card 〉
<region the record of swiping the card 〉
<the place of swiping the card〉Kuala Lumpur</place of swiping the card 〉
<the set of records ends of swiping the card 〉
<the record of swiping the card 〉
<the project of swiping the card〉transportation expenses</project of swiping the card 〉
<charge time〉2006-8-4</charge time 〉
<the amount of money of swiping the card〉54.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉shopping</project of swiping the card 〉
<charge time〉2006-8-5</charge time 〉
<the amount of money of swiping the card〉2800.00</amount of money of swiping the card 〉
</swipe the card record 〉
<the record of swiping the card 〉
<the project of swiping the card〉the food and drink expense</project of swiping the card 〉
<charge time〉2006-8-5</charge time 〉
<the amount of money of swiping the card〉80.00</amount of money of swiping the card 〉
</swipe the card record 〉
</swipe the card set of records ends 〉
</region the record of swiping the card 〉
The card using information of</in detail〉</personal consumption gathers〉</credit card purchase gathers 〉
(2) design table (schedule) masterplate in composing system, resolve the form masterplate then, in the present embodiment, according to form piece, row, cell, four levels structures of variable content item and initialization form masterplate node tree based on the XML form, correspondingly obtain the node of four levels of form masterplate node tree, be form piece node, row node, cell node and variable content item node, wherein form piece node, row node, three kinds of nodes of cell node are the limb node, and variable content item node is a leafy node; The capable node of form masterplate node tree, cell node and variable content item node are corresponding one by one with row, cell and the variable content item of form masterplate, the capable node that is form masterplate node tree is corresponding one by one with the table row of form masterplate, cell under the row that the cell node of row under the node is corresponding with the form masterplate in the form masterplate node tree is corresponding one by one, and the variable content item node of form masterplate node tree is corresponding one by one with the variable content item of form masterplate; Each node of form masterplate node tree is the data binding attribute that form piece node, row node, cell node and variable content item node all have the XML form, and the data binding attribute of this XML form is used to write down the position of composing content associated therewith on the XML tree structure that the composing content forms;
In this example, the form masterplate of design as shown in Figure 3, this form masterplate comprises three row, wherein first the row (be labeled as L
1) be used to be provided with the related content of individual essential information; Second row (is labeled as L
2) be that the layout of a page without columns is capable, be used to be provided with the consumption place; The third line (is labeled as L
3) be used to be provided with the detailed record of swiping the card; Wherein, the literal term that has a underscore in the cell in the row is the variable content item; After form masterplate shown in Figure 3 was resolved, the form masterplate node tree of generation as shown in Figure 4; Wherein, L
1, L
2, L
3First of the form template row, second row and the third line in the presentation graphs 3 are with the capable node L shown in Fig. 4
1', L
2', L
3' corresponding one by one;
(3) in form masterplate node tree, make up group node, when wherein making up first group node, any continuous capable node by form masterplate node tree is formed, and then this first group node is inserted into the position of first row node that constitutes this group node in the form masterplate node tree; When making up other group node, this group node is made up of continuous capable node, perhaps is made up of continuous group node, perhaps is made up of continuous capable node and group node, and the position of group node is at first node location place that forms this group node; Described group node is the logic node that is structured on the form masterplate node tree, is not associated with any actual row version content on the space of a whole page, and be the limb node; Described group node has the data binding attribute; Described continuous capable node, continuous group node, its implication is: row node or group node are adjacent successively on form masterplate node tree.
In the present embodiment, make up first group node and (be labeled as G
1) time, first group node is by the second row node L
2', the third line node L
3' form, then with this group node G
1Being inserted into first row node that constitutes this group node in the form masterplate node tree is the original second row node L
2' the position, like this, comprise a capable node L under the form piece node
1' and a group node G
1Added the form masterplate node tree behind the group node as shown in Figure 5; This example is by making up first group node G
1Afterwards, can realize the composing effect of final expectation, no longer need to continue to add group node, in the actual process of typeset of form, composing for need further enriching the form effect can continue to make up group node, till the composing effect that can realize expecting;
(4) each node that sets gradually form masterplate node tree be form piece node, group node, row node, cell node, variable content item node with step (1) in related between the tree structure of the composing content that obtains; Described association realizes by the data binding attribute of each node in the form template node tree;
In the present embodiment, during related between each node that sets gradually form masterplate node tree and the tree structure of composing content, the concrete grammar that adopts is: because form template node tree and composing content all make up based on the XML form, therefore, form piece node, group node, the row node, the cell node, variable content item node five category nodes are related between the record of the data binding attribute databinding by the XML node and the typesetting data content all, the tree structure of composing content as shown in Figure 2 and form template node tree shown in Figure 5 carry out after related synoptic diagram as shown in Figure 6;
(5) according to the association of setting up in the step (4), the data content of setting type is launched step by step, recursively obtain the pairing composing content of each node of form template node tree step by step, according to the one-to-many principle, in the form template node tree, make up corresponding node object, the composing content is recorded in the corresponding node object successively the form masterplate node tree after obtaining launching;
In the present embodiment, the data content of setting type is launched step by step, the concrete grammar that form masterplate node tree after obtaining launching is adopted is: form masterplate node tree makes up based on XML, the tree structure of composing content also makes up based on XML, each node of form masterplate node tree has all write down the data binding attribute databinding of XML node, according to the data binding attribute, recursively obtain the XML node of the pairing composing content of each node of form masterplate node tree step by step, employing XPath technology can realize the visit to the XML node of composing content, and construct the node object of corresponding form masterplate node tree, simultaneously with the data content assignment of the XML nodes records of composing content among the node object of creating, thereby realize the expansion of form masterplate node tree;
(6) create new form, and the content that is write down according to each row node of the form masterplate node tree that launches in the step (5), create successively and the identical new table row of corresponding row in the form masterplate, and be inserted in the form of new establishment, thereby realize the establishment of new tableau format; Form after finishing tableau format in this example and creating is respectively as Fig. 7, Fig. 8, shown in Figure 9, wherein Fig. 7 correspondence be Zhang San the record of swiping the card, Fig. 8 correspondence be Li Si the record of swiping the card, Fig. 9 correspondence be king five the record of swiping the card;
(7) obtain each leaf node of form masterplate node tree successively, utilize in the new form of creating of typesetting data content displacement that leaf node writes down corresponding variable content item in each cell, thereby realize the setting to the composing content, processing finishes; The final tabular matter result of this example is respectively as Figure 10, Figure 11, shown in Figure 12.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.
Claims (5)
1. the variable data of the form method of setting type may further comprise the steps:
The list data content of (1) needs being set type is converted to the data based on tree structure, the tree structure of the content that obtains simultaneously setting type;
(2) design table (schedule) masterplate in composing system, resolve the form masterplate, make up and initialization form masterplate node tree according to form piece, row, cell, four levels of variable content item, correspondingly obtain the node of four levels of form masterplate node tree, be form piece node, row node, cell node and variable content item node, wherein form piece node, row node, three kinds of nodes of cell node are the limb node, and variable content item node is a leafy node; The capable node of form masterplate node tree, cell node and variable content item node are corresponding one by one with row, cell and the variable content item of form masterplate; Each node of form masterplate node tree is that form piece node, row node, cell node and variable content item node all have the data binding attribute, and this data binding attribute is used to write down the position of composing content associated therewith on the tree structure that the composing content forms;
(3) in form masterplate node tree, make up group node, when wherein making up first group node, any continuous capable node by form masterplate node tree is formed, and then this first group node is inserted into the position of first row node that constitutes this group node in the form masterplate node tree; When making up other group node, this group node is made up of continuous capable node, perhaps is made up of continuous group node, perhaps is made up of continuous capable node and group node, and the position of group node is at first node location place that forms this group node; Described group node is the logic node that is structured on the form masterplate node tree, is not associated with any actual row version content on the space of a whole page, and be the limb node; Described group node has the data binding attribute;
(4) each node that sets gradually form masterplate node tree be form piece node, group node, row node, cell node, variable content item node with step (1) in related between the tree structure of the composing content that obtains, described association is by the data binding attribute realization of each node in the form template node tree;
(5) according to the association of setting up in the step (4), the data content of setting type is launched step by step, recursively obtain the pairing composing content of each node of form template node tree step by step, according to the one-to-many principle, in the form template node tree, make up corresponding node object, the composing content is recorded in the corresponding node object successively the form masterplate node tree after obtaining launching;
(6) create new form,, create successively and the identical new table row of corresponding row in the form masterplate according to the content of each row nodes records of the form masterplate node tree that launches in the step (5), thus the establishment of realization tableau format;
(7) obtain each leaf node of form masterplate node tree successively, utilize in the new form of creating of typesetting data content displacement that leaf node writes down corresponding variable content item in each cell, thereby realize the setting to the composing content, processing finishes.
2. the variable data of a kind of form as claimed in claim 1 method of setting type, it is characterized in that: the list data content of in the step (1) needs being set type is converted to the tree structure data based on the XML form, obtains the tree structure based on the composing content of XML form simultaneously.
3. the variable data of a kind of form as claimed in claim 1 method of setting type, it is characterized in that: the form masterplate node tree described in the step (2) makes up based on the XML form.
4. the method for setting type as the variable data of claim 1,2 or 3 described a kind of forms, it is characterized in that: during related between the tree structure of the composing content that obtains in each node that form masterplate node tree is set in the step (4) and the step (1), form masterplate node tree makes up based on XML, the tree structure of composing content also makes up based on XML, then equal related between the tree structure of the data binding attribute record by the XML node and composing content of form piece node, group node, row node, cell node, variable content item node five category nodes.
5. as claim 1, the method that the variable data of 2 or 3 described a kind of forms is set type, it is characterized in that: in the step (5) data content of setting type is launched step by step, during form masterplate node tree after obtaining launching, the method that adopts is: form masterplate node tree makes up based on XML, the tree structure of composing content also makes up based on XML, each node of form masterplate node tree has all write down the data binding attribute of XML node, according to the data binding attribute, recursively obtain the XML node of the pairing composing content of each node of form masterplate node tree step by step, employing XPath technology can realize the visit to the XML node of composing content, and construct the node object of corresponding form masterplate node tree, simultaneously with the data content assignment of the XML nodes records of composing content among the node object of creating, thereby realize the expansion of form masterplate node tree.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101131299A CN100445987C (en) | 2006-09-15 | 2006-09-15 | Variable table data type setting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101131299A CN100445987C (en) | 2006-09-15 | 2006-09-15 | Variable table data type setting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1940913A true CN1940913A (en) | 2007-04-04 |
CN100445987C CN100445987C (en) | 2008-12-24 |
Family
ID=37959105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101131299A Expired - Fee Related CN100445987C (en) | 2006-09-15 | 2006-09-15 | Variable table data type setting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100445987C (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100585584C (en) * | 2007-11-23 | 2010-01-27 | 北京大学 | A kind of form quick-speed generation system and method based on moulding plate node |
CN101763339A (en) * | 2009-12-21 | 2010-06-30 | 金蝶软件(中国)有限公司 | Business bill conversion method, device and system |
CN101149731B (en) * | 2007-11-12 | 2011-02-02 | 北大方正集团有限公司 | Variable data typesetting pre-flighting method and device |
CN102067111A (en) * | 2008-06-20 | 2011-05-18 | 微软公司 | Hierarchically presenting tabular data |
CN102467560A (en) * | 2010-11-19 | 2012-05-23 | 金蝶软件(中国)有限公司 | Form replacement method and system |
CN103136184A (en) * | 2011-12-05 | 2013-06-05 | 北大方正集团有限公司 | Automatic typesetting method and automatic typesetting device |
CN102103587B (en) * | 2009-12-17 | 2014-06-04 | 北大方正集团有限公司 | Method and device for converting form |
CN107085565A (en) * | 2016-12-22 | 2017-08-22 | 武汉智博创享科技有限公司 | A kind of thematic map form method of adjustment and system |
CN109657103A (en) * | 2018-12-19 | 2019-04-19 | 广州天鹏计算机科技有限公司 | Conversion method, device, computer equipment and the storage medium of data structure |
CN109815461A (en) * | 2018-12-07 | 2019-05-28 | 北京天健源达科技股份有限公司 | A method of editor's table |
CN110705226A (en) * | 2019-08-22 | 2020-01-17 | 平安科技(深圳)有限公司 | Spreadsheet creating method and device and computer equipment |
CN110929487A (en) * | 2018-09-04 | 2020-03-27 | 北大方正集团有限公司 | Table typesetting method and device, computer equipment and readable storage medium |
CN111483232A (en) * | 2020-04-15 | 2020-08-04 | 赞同科技股份有限公司 | Stylus printer and character printing method and device thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2836573A1 (en) * | 2002-02-27 | 2003-08-29 | France Telecom | Computer representation of a data tree structure, which is representative of the organization of a data set or data dictionary, has first and second total order relations representative of tree nodes and stored data items |
US6563441B1 (en) * | 2002-05-10 | 2003-05-13 | Seiko Epson Corporation | Automatic generation of program logic to decode variable-length codes |
US7149733B2 (en) * | 2002-07-20 | 2006-12-12 | Microsoft Corporation | Translation of object queries involving inheritence |
-
2006
- 2006-09-15 CN CNB2006101131299A patent/CN100445987C/en not_active Expired - Fee Related
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149731B (en) * | 2007-11-12 | 2011-02-02 | 北大方正集团有限公司 | Variable data typesetting pre-flighting method and device |
CN100585584C (en) * | 2007-11-23 | 2010-01-27 | 北京大学 | A kind of form quick-speed generation system and method based on moulding plate node |
CN102067111B (en) * | 2008-06-20 | 2014-02-05 | 微软公司 | Method and system for hierarchically presenting tabular data |
CN102067111A (en) * | 2008-06-20 | 2011-05-18 | 微软公司 | Hierarchically presenting tabular data |
CN102103587B (en) * | 2009-12-17 | 2014-06-04 | 北大方正集团有限公司 | Method and device for converting form |
CN101763339A (en) * | 2009-12-21 | 2010-06-30 | 金蝶软件(中国)有限公司 | Business bill conversion method, device and system |
CN102467560B (en) * | 2010-11-19 | 2014-07-09 | 金蝶软件(中国)有限公司 | Form replacement method and system |
CN102467560A (en) * | 2010-11-19 | 2012-05-23 | 金蝶软件(中国)有限公司 | Form replacement method and system |
CN103136184A (en) * | 2011-12-05 | 2013-06-05 | 北大方正集团有限公司 | Automatic typesetting method and automatic typesetting device |
CN103136184B (en) * | 2011-12-05 | 2016-01-13 | 北大方正集团有限公司 | A kind of method of automatic typesetting and device thereof |
CN107085565A (en) * | 2016-12-22 | 2017-08-22 | 武汉智博创享科技有限公司 | A kind of thematic map form method of adjustment and system |
CN110929487A (en) * | 2018-09-04 | 2020-03-27 | 北大方正集团有限公司 | Table typesetting method and device, computer equipment and readable storage medium |
CN109815461A (en) * | 2018-12-07 | 2019-05-28 | 北京天健源达科技股份有限公司 | A method of editor's table |
CN109815461B (en) * | 2018-12-07 | 2024-02-09 | 北京天健源达科技股份有限公司 | Method for editing form |
CN109657103A (en) * | 2018-12-19 | 2019-04-19 | 广州天鹏计算机科技有限公司 | Conversion method, device, computer equipment and the storage medium of data structure |
CN110705226A (en) * | 2019-08-22 | 2020-01-17 | 平安科技(深圳)有限公司 | Spreadsheet creating method and device and computer equipment |
CN111483232A (en) * | 2020-04-15 | 2020-08-04 | 赞同科技股份有限公司 | Stylus printer and character printing method and device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN100445987C (en) | 2008-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1940913A (en) | Variable table data type setting method | |
CN1120442C (en) | File picture processing apparatus and method therefor | |
CN1094610C (en) | Microprocessor with packing operation of composite operands | |
CN1282068C (en) | Device and its operation method for enabling printer to print page of desired design | |
CN1174332C (en) | Method and device for converting expressing mode | |
CN1306437C (en) | Method for combining table data | |
CN1648848A (en) | Layout adjustment method and apparatus | |
CN1920825A (en) | Method and system for displaying performance constraints in a flow design tool | |
CN1445650A (en) | Hardware-enhanced graphics acceleration of pixel sub-component oriented images | |
CN1885899A (en) | Image combining apparatus, and control method and program therefor | |
CN101030257A (en) | File-image cutting method based on Chinese characteristics | |
CN1788486A (en) | Image processing method, image processing apparatus and program | |
CN1729441A (en) | Print control device and print control method | |
CN1231827C (en) | New multi-purpose visual-language system based on braille raised letters | |
CN1804842A (en) | System and method for database query | |
CN1722778A (en) | Image processing system, information processing apparatus and method, image processing apparatus and method, recording medium, and program | |
CN1698062A (en) | Information coding device, information decoding device, and method thereof, and program | |
CN1353536A (en) | Apparatus and method for processing image and program product | |
CN1295291A (en) | Device and method for giving service to life event and program storage medium thereof | |
CN1179304C (en) | Method for enabling file format compatibility | |
CN1573662A (en) | Method and system for input and output of chinese character | |
CN1492358A (en) | Data registration and data conversion method and device | |
CN1397895A (en) | Character search device, character search method and program thereof | |
CN101067824A (en) | Information processing apparatus, information processing method, and information storing medium | |
CN1402153A (en) | Data analysis system and method |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081224 |