CN104572603A - Statement paging method and device - Google Patents
Statement paging method and device Download PDFInfo
- Publication number
- CN104572603A CN104572603A CN201410785099.0A CN201410785099A CN104572603A CN 104572603 A CN104572603 A CN 104572603A CN 201410785099 A CN201410785099 A CN 201410785099A CN 104572603 A CN104572603 A CN 104572603A
- Authority
- CN
- China
- Prior art keywords
- gauge outfit
- district
- page object
- section
- data block
- 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
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a statement paging method and a device. A statement at least comprises a header and a data area. The method comprises the following steps of setting a header area and the data area on a page object to be generated according to the header of the statement, wherein the header area and the header have a corresponding relation; splitting the header corresponding to the header area into a plurality of header sections according to the size of the header area on the page object, wherein the header sections and the head area have a corresponding relation, and the header sections carry location information; splitting the data area of the statement into a plurality of data blocks according to the size of the data area of the page object, wherein the data blocks carry location information; matching the location information carried by the data blocks and the location information carried by the header sections, and respectively adding the successfully matched data blocks and the header sections to the data area and the header area corresponding to the header sections into the same page object so as to generate the page object. The statement paging method and the device can provide statement paging easy to read for users.
Description
Technical field
The present invention relates to report form processing technical field, be specifically related to a kind of form paging method and device.
Background technology
In form field, the data volume that different forms comprises varies in size.For the form that data volume is more, under the application scenarios generating the virtual printings such as PDF, or when directly printing with printer, such form all likely can exceed one page from horizontal direction or vertical direction.In this case, generally such form can be carried out paging, thus the content that form is comprised can both be generated PDF form, or print.
It is adopt nature paging ground method that the existing form more to data volume carries out paging.As shown in Figure 1, for carrying out the instance graph of nature paging to form.Visible, this method whole form is regarded as an entirety naturally, according to the size of each page that pre-sets, form carried out natural division, finally obtain some pagings.
But be not difficult to find out from Fig. 1, some paging of the form obtained through nature paging can not accurately for user provides report messages.As the 5. page of the in Fig. 1, owing to only there being the display of data, and data are difficult to correspond to the area of gauge outfit, left side and the product type etc. of top gauge outfit, so, the reading of user to the 5. page is had difficulties.To sum up, certain irrationality is existed to the natural paging method of form.
Summary of the invention
In order to overcome the reading difficulty of user to form paging, the invention provides a kind of form paging method and device.
A kind of form paging method provided by the invention, described form at least comprises a gauge outfit and data field, and described method comprises:
According to the gauge outfit of described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation;
According to the size in gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information;
According to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
The positional information that the positional information of each data block being carried is carried with each gauge outfit section is mated, and adds the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generates page object.
Preferably, described form comprises two gauge outfits, is respectively the first gauge outfit and the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal;
According to the first gauge outfit and second gauge outfit of described form, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal;
According to the size in the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information;
According to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
The positional information that the positional information of each data block being carried is carried with the first gauge outfit section, the second gauge outfit section is respectively mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
Preferably, described form also comprises intersection gauge outfit, and described method also comprises:
According to the intersection gauge outfit of described form, described page object arranges crosstab Head Section, described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district;
The intersection gauge outfit of described form is added to the crosstab Head Section of each page of object.
Preferably, described method also comprises:
Judge whether described form is segmentation form;
When described form is segmentation form, described segmentation form is carried out staging treating, obtains some forms.
Preferably, described form also comprise leader topic and or tail tag topic, described method also comprises:
Described leader topic is added to the predeterminable area of first page object, and or described tail tag topic is added to the predeterminable area of last page of object.
Preferably, the size of the described data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information, comprising:
According to the lateral dimension of the data field of described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information;
According to the longitudinal size of the data field of described page object, after data block carries out longitudinal cutting after described crosscut, obtain data block, the column position information that after described data block carries line position information and described crosscut, data block is carried.
The present invention also provides a kind of form paging device, and described form at least comprises a gauge outfit and data field, and described device comprises:
First arranges module, and for the gauge outfit according to described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation;
First cutting module, for the size according to gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information;
Second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Matching module, positional information for each data block being carried is mated with the positional information that each gauge outfit section is carried, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.
Preferably, described form comprises two gauge outfits, is respectively the first gauge outfit and the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal;
Described first arranges module, for according to the first gauge outfit of described form and the second gauge outfit, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal;
Described first cutting module, for the size according to the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information;
Described second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Described matching module, the positional information of carrying with the first gauge outfit section, the second gauge outfit section respectively for the positional information of each data block being carried is mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
Preferably, described form also comprises intersection gauge outfit, and described device also comprises:
Second arranges module, for the intersection gauge outfit according to described form, described page object arranges crosstab Head Section, and described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district;
First adds module, for the intersection gauge outfit of described form being added to the crosstab Head Section of each page of object.
Preferably, described device also comprises:
Judge module, for judging whether described form is segmentation form;
Segmentation module, for when the result of described judge module is for being, carries out staging treating by described segmentation form, obtaining some forms.
Preferably, described form also comprise leader topic and or tail tag topic, described device also comprises:
Second adds module, for described leader topic being added to the predeterminable area of first page object, and or described tail tag topic is added to the predeterminable area of last page of object.
Preferably, described second cutting module comprises:
Transversally cutting submodule, for the lateral dimension of the data field according to described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information;
Longitudinal cutting submodule, for the longitudinal size of the data field according to described page object, after data block carries out longitudinal cutting after described crosscut, obtains data block, the column position information that after described data block carries line position information and described crosscut, data block is carried.
In form paging method provided by the invention, described form at least comprises a gauge outfit and data field, and first, according to the gauge outfit of described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation; Secondly, according to the size in gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information; Again, according to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information; Finally, the positional information that the positional information of each data block being carried is carried with each gauge outfit section is mated, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.Compared with the natural paging method of prior art, the present invention can provide for user the form paging being easy to read.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is instance graph form being carried out to nature paging;
The form paging method process flow diagram that Fig. 2 provides for the embodiment of the present invention one;
Fig. 3 is a kind of instance graph of segmentation form;
The form paging method process flow diagram that Fig. 4 provides for the embodiment of the present invention two;
The form paging device structural drawing that Fig. 5 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
Embodiment one
With reference to the form paging method process flow diagram that figure 2, Fig. 2 provides for the embodiment of the present invention, described method comprises:
S201: according to the gauge outfit of described form, page object to be generated arranges gauge outfit district and data field, and described gauge outfit district and described gauge outfit have corresponding relation.Wherein, described form at least comprises a gauge outfit and data field.Described page object is for showing the data structure of each paged data after form paging.
In the present embodiment, before paging is carried out to a form, first obtain the gauge outfit of described form, secondly, according to described gauge outfit, gauge outfit district and data field are set on page object to be generated.Wherein, there is corresponding relation in the gauge outfit district of setting and described gauge outfit.
In addition, at forms such as report generation PDF, or before submitting to printer, the size of paper pre-sets.That is, the size that the page object in the present embodiment can show data pre-sets.
In practical application, for the gauge outfit of horizontal direction in described form, the size of the vertical direction in the gauge outfit district of described page object can be determined according to the size of the vertical direction of described gauge outfit.Meanwhile, can show the size of data according to page object, determine the length of the horizontal direction in described gauge outfit district.In addition, the size of data can be shown according to described page object and determine gauge outfit district, the data field of described page object is set.
S202: according to the size in gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information.
In the present embodiment, when the gauge outfit due to form is longer, can not show in same paging, so when carrying out paging to form, need the gauge outfit district of described form to carry out cutting, obtaining some gauge outfit sections.Concrete, according to the size in gauge outfit district on page object, cutting is carried out to the gauge outfit of described form, obtain the gauge outfit section corresponding with described gauge outfit district.
It should be noted that cutting obtains the positional information that gauge outfit Duan Jun carries himself.Such as, for the gauge outfit of the horizontal direction of form, the gauge outfit section that its cutting obtains carries initial row and the end column of this gauge outfit section.And the gauge outfit of vertical direction for form, the gauge outfit section that its cutting obtains carries initial row and the end line of this gauge outfit section.
S203: according to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information.
In the present embodiment, because the data field of described page object is determined, so, according to the size of the data field of the described page object determined, cutting can be carried out in the data field of described form, obtains the data block after some cuttings.Wherein, each data block carries himself positional information, specifically comprises the initial row of this data block, end line and initial row, end column.
Because the width of general form is far smaller than length, so the present embodiment, when carrying out cutting to the data field of form, first can carry out transversally cutting to the data field of described form, secondly to the just longitudinal cutting of the data block after transversally cutting, the data block after cutting is finally obtained.
In practical application, first, according to the lateral dimension of the data field of described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information; Wherein, described column position information comprises initial row, end column.Secondly, according to the longitudinal size of the data field of described page object, after data block carries out longitudinal cutting after described crosscut, data block is obtained, the column position information that after described data block carries line position information and described crosscut, data block is carried.Wherein, described line position information comprises initial row, end line.
S204: the positional information that the positional information of each data block being carried is carried with each gauge outfit section is mated, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.
In the present embodiment, because each data block all carries the positional information of self, each gauge outfit section also carries the positional information of self simultaneously.So the positional information that the positional information each data block can carried is carried with each gauge outfit section is mated, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively.
In practical application, for the gauge outfit section of horizontal direction, the initial row that the initial row described gauge outfit section carried, end column carry with each data block, end column mate, and when the two initial row, end column are identical, namely illustrate that the match is successful.The gauge outfit section that the match is successful and data block are added respectively to gauge outfit district and the data field of same one page object, generate a page object.In addition, for the gauge outfit section of vertical direction, initial row, end line that initial row, end line and each data block of described gauge outfit section being carried are carried match well, and when the two initial row, end line are identical, illustrate that the match is successful.The gauge outfit section that the match is successful and data block are added respectively to gauge outfit district and the data field of same one page object, generate a page object.
As shown in Figure 3, be a kind of instance graph of segmentation form, wherein, segmentation form is the form comprising two subreports.In the present embodiment, can also judge whether form is segmentation form.When described form is segmentation form, described segmentation form can be carried out staging treating, obtain some forms.After staging treating is carried out to segmentation form, carry out paging process for each form obtained.
In the form paging method that the present embodiment provides, described form at least comprises a gauge outfit and data field, and first, according to the gauge outfit of described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation; Secondly, according to the size in gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information; Again, according to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information; Finally, the positional information that the positional information of each data block being carried is carried with each gauge outfit section is mated, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.Compared with the natural paging method of prior art, the embodiment of the present invention can provide for user the form paging being easy to read.
Embodiment two
With reference to figure 4, be the form paging method process flow diagram that the embodiment of the present invention two provides, wherein, the form in the present embodiment comprises two gauge outfits, is respectively the first gauge outfit, the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal.Described method comprises the steps:
S401: according to the first gauge outfit and second gauge outfit of described form, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal.
In the present embodiment, because described form comprises the first gauge outfit and the second gauge outfit, so the present embodiment needs to arrange the first gauge outfit district corresponding with described first gauge outfit respectively on page object to be generated, and the second gauge outfit district corresponding with described second gauge outfit.Wherein, the first gauge outfit district on described page object and the bearing of trend in the second gauge outfit district orthogonal.Meanwhile, according to the first gauge outfit district arranged and the second gauge outfit district, the data field on described page object is determined.
In practical application, when the first gauge outfit of described form is the gauge outfit of horizontal direction, described second gauge outfit is exactly the gauge outfit of vertical direction.Accordingly, the first gauge outfit district on described page object is also in the horizontal direction, and the second gauge outfit district is vertically.
In addition, when described form comprises two gauge outfits, described form also can comprise an intersection gauge outfit.Wherein, described intersection gauge outfit is positioned at the intersection point of the bearing of trend of two gauge outfits.In this case, described page object also needs the intersection top-of-form set crosstab Head Section according to described form.Wherein, described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district.
S402: according to the size in the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information.
In the present embodiment, when carrying out paging to form, first cutting is carried out to each gauge outfit of described form.Concrete, according to the size in the first gauge outfit district on described page object, be some first gauge outfit sections by described first gauge outfit cutting.Wherein, each the first gauge outfit section carries positional information.In addition, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by described second gauge outfit cutting, wherein each the second gauge outfit section carries positional information.
S403: according to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information.
In the present embodiment, according to the size of the data field of described page object, cutting can be carried out in the data field of described form, finally obtain some data blocks.Wherein, each data block all carries positional information, comprises initial row, end line and initial row, end column.
S404: the positional information that the positional information of each data block being carried is carried with the first gauge outfit section, the second gauge outfit section is respectively mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
In the present embodiment, the positional information that the initial row each data block carried, end line and initial row, end column carry with each the first gauge outfit section, the second gauge outfit section is mated.When the initial row that certain gauge outfit section is carried, end line and the initial row that certain data block is carried, end line are identical, then illustrate that described gauge outfit section is mated with described data block.When the initial row that certain gauge outfit section is carried, end column and the initial row that certain data block is carried, end column are identical, then illustrate that described gauge outfit section and data block match.In the present embodiment, the data block that the match is successful, the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district, the second gauge outfit district, finally generate a page object.In addition, when described form exists intersection gauge outfit, the intersection gauge outfit of described form is added to the crosstab Head Section of each page of object.
In addition, because form also may comprise leader topic, tail tag topic, for such form, the leader of described form topic can be added to the predeterminable area of first page object of described form by the present embodiment, described tail tag topic is added to the predeterminable area of last page of object of described form.
In the present embodiment, after described form carries out paging, obtain some page objects carrying positional information, the page object combining the data in form can be converted into the forms such as PDF, or is directly printed by printer.
Compared with the natural paging method of prior art, the embodiment of the present invention can provide for user the form paging being easy to read.
Embodiment three
With reference to the form paging device structural drawing that figure 5, Fig. 5 provides for the embodiment of the present invention three, described form at least comprises a gauge outfit and data field, and described device comprises:
First arranges module 501, and for the gauge outfit according to described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation;
First cutting module 502, for the size according to gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information;
Second cutting module 503, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Matching module 504, positional information for each data block being carried is mated with the positional information that each gauge outfit section is carried, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.
Wherein, described second cutting module comprises:
Transversally cutting submodule, for the lateral dimension of the data field according to described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information;
Longitudinal cutting submodule, for the longitudinal size of the data field according to described page object, after data block carries out longitudinal cutting after described crosscut, obtains data block, the column position information that after described data block carries line position information and described crosscut, data block is carried.
In one preferred embodiment, described form comprises two gauge outfits, is respectively the first gauge outfit and the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal;
Described first arranges module, for according to the first gauge outfit of described form and the second gauge outfit, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal;
Described first cutting module, for the size according to the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information;
Described second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Described matching module, the positional information of carrying with the first gauge outfit section, the second gauge outfit section respectively for the positional information of each data block being carried is mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
In addition, when described form comprises two gauge outfits, described form also comprises intersection gauge outfit, and described device also comprises:
Second arranges module, for the intersection gauge outfit according to described form, described page object arranges crosstab Head Section, and described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district;
First adds module, for the intersection gauge outfit of described form being added to the crosstab Head Section of each page of object.
In addition, for the process of segmentation form, described device also comprises:
Judge module, for judging whether described form is segmentation form;
Segmentation module, for when the result of described judge module is for being, carries out staging treating by described segmentation form, obtaining some forms.
In addition, described form also comprise leader topic and or tail tag topic, described device also comprises:
Second adds module, for described leader topic being added to the predeterminable area of first page object, and or described tail tag topic is added to the predeterminable area of last page of object.
In the form paging device that the present embodiment provides, described form at least comprises a gauge outfit and data field, described device comprises: first arranges module, for the gauge outfit according to described form, page object to be generated arranges gauge outfit district and data field, and described gauge outfit district and described gauge outfit have corresponding relation; First cutting module, for the size according to gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information; Second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information; Matching module, positional information for each data block being carried is mated with the positional information that each gauge outfit section is carried, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.Compared with the natural paging device of prior art, the embodiment of the present invention can provide for user the form paging being easy to read.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The form paging method provided the embodiment of the present invention above and device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (12)
1. a form paging method, is characterized in that, described form at least comprises a gauge outfit and data field, and described method comprises:
According to the gauge outfit of described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation;
According to the size in gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information;
According to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
The positional information that the positional information of each data block being carried is carried with each gauge outfit section is mated, and adds the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generates page object.
2. method according to claim 1, is characterized in that, described form comprises two gauge outfits, is respectively the first gauge outfit and the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal;
According to the first gauge outfit and second gauge outfit of described form, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal;
According to the size in the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information;
According to the size of the data field of described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
The positional information that the positional information of each data block being carried is carried with the first gauge outfit section, the second gauge outfit section is respectively mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
3. method according to claim 2, is characterized in that, described form also comprises intersection gauge outfit, and described method also comprises:
According to the intersection gauge outfit of described form, described page object arranges crosstab Head Section, described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district;
The intersection gauge outfit of described form is added to the crosstab Head Section of each page of object.
4. method according to claim 1, is characterized in that, described method also comprises:
Judge whether described form is segmentation form;
When described form is segmentation form, described segmentation form is carried out staging treating, obtains some forms.
5. method according to claim 1, is characterized in that, described form also comprise leader topic and or tail tag topic, described method also comprises:
Described leader topic is added to the predeterminable area of first page object, and or described tail tag topic is added to the predeterminable area of last page of object.
6. method according to claim 1, is characterized in that, the size of the described data field according to described page object, and be some data blocks by the data field cutting of described form, described data block carries positional information, comprising:
According to the lateral dimension of the data field of described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information;
According to the longitudinal size of the data field of described page object, after data block carries out longitudinal cutting after described crosscut, obtain data block, the column position information that after described data block carries line position information and described crosscut, data block is carried.
7. a form paging device, is characterized in that, described form at least comprises a gauge outfit and data field, and described device comprises:
First arranges module, and for the gauge outfit according to described form, page object to be generated arranges gauge outfit district and data field, described gauge outfit district and described gauge outfit have corresponding relation;
First cutting module, for the size according to gauge outfit district on described page object, be some gauge outfit sections by the gauge outfit cutting corresponding with described gauge outfit district, described gauge outfit section and described gauge outfit district have corresponding relation, and described gauge outfit section carries positional information;
Second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Matching module, positional information for each data block being carried is mated with the positional information that each gauge outfit section is carried, and add the data block that the match is successful and gauge outfit section to the data field of same one page object and the gauge outfit district corresponding with described gauge outfit section respectively, generate page object.
8. device according to claim 7, is characterized in that, described form comprises two gauge outfits, is respectively the first gauge outfit and the second gauge outfit, and the bearing of trend of described first gauge outfit and described second gauge outfit is orthogonal;
Described first arranges module, for according to the first gauge outfit of described form and the second gauge outfit, page object to be generated arranges the first gauge outfit district, the second gauge outfit district and data field, described first gauge outfit district and described first gauge outfit have corresponding relation, described second gauge outfit district and described second gauge outfit have corresponding relation, and the bearing of trend in described first gauge outfit district and described second gauge outfit district is orthogonal;
Described first cutting module, for the size according to the first gauge outfit district on described page object, be some first gauge outfit sections by the first gauge outfit cutting corresponding with described first gauge outfit district, described first gauge outfit section and described first gauge outfit district have corresponding relation, and described first gauge outfit section carries positional information; And, according to the size in the second gauge outfit district on described page object, be some second gauge outfit sections by the second gauge outfit cutting corresponding with described second gauge outfit district, described second gauge outfit section and described second gauge outfit district have corresponding relation, and described second gauge outfit section carries positional information;
Described second cutting module, for the size of the data field according to described page object, be some data blocks by the data field cutting of described form, described data block carries positional information;
Described matching module, the positional information of carrying with the first gauge outfit section, the second gauge outfit section respectively for the positional information of each data block being carried is mated, and the data block that the match is successful and the first gauge outfit section, the second gauge outfit section are added respectively to the data field of same one page object, the first gauge outfit district and the second gauge outfit district, generate page object.
9. device according to claim 8, is characterized in that, described form also comprises intersection gauge outfit, and described device also comprises:
Second arranges module, for the intersection gauge outfit according to described form, described page object arranges crosstab Head Section, and described crosstab Head Section is in the intersection point of the bearing of trend in described first gauge outfit district and described second gauge outfit district;
First adds module, for the intersection gauge outfit of described form being added to the crosstab Head Section of each page of object.
10. device according to claim 7, is characterized in that, described device also comprises:
Judge module, for judging whether described form is segmentation form;
Segmentation module, for when the result of described judge module is for being, carries out staging treating by described segmentation form, obtaining some forms.
11. devices according to claim 7, is characterized in that, described form also comprise leader topic and or tail tag topic, described device also comprises:
Second adds module, for described leader topic being added to the predeterminable area of first page object, and or described tail tag topic is added to the predeterminable area of last page of object.
12. devices according to claim 7, is characterized in that, described second cutting module comprises:
Transversally cutting submodule, for the lateral dimension of the data field according to described page object, after transversally cutting is carried out in the data field of described form, obtain data block after crosscut, after described crosscut, data block carries column position information;
Longitudinal cutting submodule, for the longitudinal size of the data field according to described page object, after data block carries out longitudinal cutting after described crosscut, obtains data block, the column position information that after described data block carries line position information and described crosscut, data block is carried.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410785099.0A CN104572603B (en) | 2014-12-16 | 2014-12-16 | A kind of report paging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410785099.0A CN104572603B (en) | 2014-12-16 | 2014-12-16 | A kind of report paging method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572603A true CN104572603A (en) | 2015-04-29 |
CN104572603B CN104572603B (en) | 2018-04-27 |
Family
ID=53088707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410785099.0A Active CN104572603B (en) | 2014-12-16 | 2014-12-16 | A kind of report paging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572603B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1936882A (en) * | 2006-10-13 | 2007-03-28 | 北京北大方正电子有限公司 | Paging form data-processing method and system |
US20080189602A1 (en) * | 2007-01-25 | 2008-08-07 | Microsoft Corporation | Streamable interactive rendering-independent page layout |
CN102541551A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Well-available page layout report designing method and system |
-
2014
- 2014-12-16 CN CN201410785099.0A patent/CN104572603B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1936882A (en) * | 2006-10-13 | 2007-03-28 | 北京北大方正电子有限公司 | Paging form data-processing method and system |
US20080189602A1 (en) * | 2007-01-25 | 2008-08-07 | Microsoft Corporation | Streamable interactive rendering-independent page layout |
CN102541551A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Well-available page layout report designing method and system |
Non-Patent Citations (1)
Title |
---|
GUI_HAPPY: ""怎么样在Excel里每个打印页面里重复出现行或列"", 《HTTP://JINGYAN.BAIDU.COM/ARTICLE/EA24BC3954B8E2DA63B33149.HTML》 * |
Also Published As
Publication number | Publication date |
---|---|
CN104572603B (en) | 2018-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101645140B (en) | Two-dimensional code generation method, coding/decoding method and device | |
CN109492177B (en) | web page blocking method based on web page semantic structure | |
CN108984499B (en) | Report data processing method and device, electronic equipment and readable storage medium | |
CN105975576A (en) | Terminal content adaptive display method and device as well as terminal | |
CN103345493A (en) | Method, device and system for text content displaying on mobile terminal | |
CN104850502A (en) | Method, apparatus and device for accessing data | |
CN103500332A (en) | Character display method and device in image | |
JP6527227B2 (en) | Modify native document comments in preview | |
CN108197216A (en) | A kind of method of information processing | |
CN102681978A (en) | Method and system for displaying text in PDF (portable document format) document | |
CN104951429A (en) | Recognition method and device for page headers and page footers of format electronic document | |
CN105335310A (en) | Interface defining method, and data transmission method and apparatus | |
CN105654022A (en) | Method and device for extracting structured document information | |
CN104504086A (en) | Clustering method and device for webpage | |
CN103699644A (en) | Information release method, information release system and user terminal | |
CN105190596A (en) | Automated composition evaluator | |
CN102520893A (en) | Method for printing webpage of cloud network-based mobile terminal | |
US10063738B2 (en) | Digital content access using a machine-readable link | |
CN106777281A (en) | For improving web crawlers stability, the data processing method of availability and device | |
WO2013062550A1 (en) | Aligning annotation of fields of documents | |
CN104572603A (en) | Statement paging method and device | |
CN102479072B (en) | Multi-header report generating method, device and terminal | |
CN103678957A (en) | Method, device and equipment for generating picture information and obtaining identity coded information | |
CN101980133A (en) | Method and system for detecting text selection region deviation of double-layer electronic file | |
CN102332002A (en) | Method and system for converting file from portable document format (PDF) to electronic publication (EPUB) format |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |