CN104360826B - Reporting Customization print page apparatus and method - Google Patents
Reporting Customization print page apparatus and method Download PDFInfo
- Publication number
- CN104360826B CN104360826B CN201410757396.4A CN201410757396A CN104360826B CN 104360826 B CN104360826 B CN 104360826B CN 201410757396 A CN201410757396 A CN 201410757396A CN 104360826 B CN104360826 B CN 104360826B
- Authority
- CN
- China
- Prior art keywords
- page
- paging
- model
- page break
- break
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/125—Page layout or assigning input pages onto output media, e.g. imposition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a kind of Reporting Customization print page device, including:Paging setting unit based on page break, for defining page break and page break model, paging needed for configuration;Self-defined paging model structural unit, for preserving the corresponding page break model of paging with completing configuration, page break model is parsed;The dynamic page adjustment unit of data state, used in carrying out print procedure according to the paging of self-defined paging model in data state, according to the spread scenarios of self-defined paging model and dynamic area, the print range of dynamic calculation every page.Present invention also offers a kind of Reporting Customization page-by-page printing method.Pass through technical scheme, can be on the basis of existing form print page mode, make full use of single object genre metadata and document to describe the form print page that type completes many object type metadatas, set up general, the unified print page thinking for the form print page that many object type metadatas are participated in.
Description
Technical field
The present invention relates to technical field of data processing, in particular it relates to a kind of Reporting Customization print page device and one
Plant Reporting Customization page-by-page printing method.
Background technology
In reporting system, form is reported to after superior unit, typically by the printing function of system, is printed as papery
Data, binds into book form, is given over to as the standby data of depositing and checks and use in the future.Due to antiquarian limitation, a form is often needed
Print page is wanted to plurality of sheets of paper, in this case, how more flexibly easily paging, guarantee as far as possible make in every page
The logic integrality and readability of appearance, the problem of as one urgent need to resolve in report printing field.
At present, it is to use simple " streaming " paging method in most cases, i.e., in the printing field of enterprise report:According to
It is secondary to calculate the maximum row (column) number that current paper mold and lower of ratio be accommodated, it is straight that first page, second page ... are rendered into order
Traveled through to last row (column).This paging mode, defect be it is passive paged content is determined by antiquarian, it is very scarce
Weary flexibility, local logic integrality is even more to be guaranteed.
In patent document《Report printing method》(the patent No.:CN201310654767.1 in), certain exploration is made that, it is real
Show the printing functions such as header line printing, unlimited table dynamic page, flexibility increases, but its paging mode is in itself still
It is passive, streaming, to the table sample that a part is conventional, it is impossible to solve the problem of it is flexibly printed.
By taking a kind of conventional table sample as an example, referring to Fig. 1 and Fig. 2.Fig. 1 and Fig. 2 are illustrated " project expenditure final accounts detail list "
Using the first page and second page after current " streaming " paging.Last row " subtotal " wherein in first page, in logic should be with
The several of second page are classified as one group, but due to the limitation of current paging algorithm, and it can only sequentially fill out last that be put into first page
Row.Directly result in after printing, last row of first page, which can not be corresponded to, provides volume data, and the detailed number of second page
Lack subtotal.Logicality and readability are substantially reduced.
So, the form paging device and method of a kind of flexible customization are currently needed for, breaks current passive paging machine
System, it is allowed to which user actively sets paging strategy, on demand paging according to the concrete structure of table sample, it is ensured that report printing result is patrolled
Collect property and readability.Such apparatus and method how are realized, foothold as technical solution of the present invention and to be solved are asked
Topic.
Accordingly, it would be desirable to a kind of new form print page technology, can on the basis of existing form print page mode,
Make full use of single object genre metadata and document to describe the form print page that type completes many object type metadatas, set up
General, the unified print page thinking for the form print page that many object type metadatas are participated in.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new form print page technology, can be in existing report
On the basis of table print page mode, make full use of single object genre metadata and document to describe type and complete many object type element numbers
According to form print page, general, the unified print page for setting up the form print page that many object type metadatas are participated in thinks
Road.
In view of this, the present invention proposes a kind of Reporting Customization print page device, including:Paging based on page break
Setting unit, for defining page break and page break model, page break and page break model based on definition divide needed for configuration
Page;Self-defined paging model structural unit, for preserving the corresponding page break model of paging with completing configuration, by page break mould
Type is parsed, and is the self-defined paging model that backstage is used by page break Construction of A Model, in data state according to self-defined paging
The paging of model is printed;The dynamic page adjustment unit of data state, in data state according to self-defined paging model
Paging is carried out in print procedure, according to the spread scenarios of self-defined paging model and dynamic area, the printing of dynamic calculation every page
Scope.In the technical scheme, table sample can be split by page break, self-defined paging model be constructed, in data state energy
It is enough that number of pages where each piece of data area is dynamically calculated according to paging model and dynamic area spread scenarios, complete flexible
The printing effect of customization.
In the above-mentioned technical solutions, it is preferable that the paging setting unit based on page break, specifically include:Foreground shows
Show module, for defining page break, by the addition of mouse action, deletion, dragging page break, on foreground instant playback each
The page number in region;Backstage adjusting module, for defining page break model, the interaction drawn in page break model and foreground form
In, page break is shown and adjusted by background work;Table sample page break drafting module, changes for page break
When, the refresh events on foreground are triggered, amended page break distribution are shown, according to the page break of page break modeling rendering table sample;
Page break adjusting module, for being increased manually by right button, being removed page break, and/or, the interaction of page break is pulled, to paging
Symbol is adjusted.In the technical scheme, it is possible to achieve the self-defined Paging system based on page break, can flexibly additions and deletions,
Pull page break.
In the above-mentioned technical solutions, it is preferable that the self-defined paging model structural unit, specifically include:Page break is protected
Storing module, for preserving the corresponding page break model of paging with completing configuration;Page break model analyzing module, for by paging
Symbol model is parsed, and is the self-defined paging model that backstage is used by page break Construction of A Model;Print page module, for
Data state is printed according to the paging of self-defined paging model., can be by page break device, built-in in the technical scheme
Paging model and correlation technique, provided the user a kind of active, the paging mode that can freely customize.
In the above-mentioned technical solutions, it is preferable that the page break that the foreground display module is defined, it is that a kind of table sample that runs through begins
Whole linear symbol, there is horizontal and vertical two kinds;Multigroup page break, several rectangular areas are divided into by table sample, several squares
The quantity in shape region is exactly total page number to be printed, several rectangular areas according to order from top to bottom, from left to right successively
Arrangement, is exactly the content for sequentially printing every page;And/or, the page break model that the backstage adjusting module is defined can be stored
The initial row of print area, end line, starting row, end column, and each horizontal and vertical page break index;With/
Or, the page break model that the page break preserving module is preserved, when can reflect that user defines paging, it is easy to before one kind of interaction
Platform model;And/or, the page break model analyzing module can distinguish the self-defined paging model of page break Construction of A Model
The self-defined paging index of row and column is stored, every page line index and column index are combined, and can uniquely determine the page will print
Regional extent, row and column self-defined paging index use identical data structure;The data structure, includes the knot of chained list
Structure, each element is stored inside the index of the every page row to be printed, element with several shapes such as { starting index, knot successively
Beam index binary array constitute.
In the above-mentioned technical solutions, it is preferable that the dynamic page adjustment unit of the data state, specifically include:Print zone
Domain growth pattern computing module, used in carrying out print procedure according to the paging of self-defined paging model in data state, in order to receive
Collect the dynamic area extension information of data state, calculate print area in height and the growth pattern of width;Extend paging and split module,
For the growth pattern according to wide and height, the paging extended is split.In the technical scheme, Ke Yi
There is the dynamic adjustment mechanism that paging is printed under data state on backstage, and user need not be concerned about the situation of change of dynamic area, it is ensured that beat
Print the ease for use of function.
According to a further aspect of the invention, it is also proposed that a kind of Reporting Customization page-by-page printing method, including:Step
202:Define page break and page break model, page break and page break model based on definition, paging needed for configuration;Step 204:
Page break model corresponding with the paging for completing to configure is preserved, page break model is parsed, is by page break Construction of A Model
The self-defined paging model that backstage is used, is printed in data state according to the paging of self-defined paging model;Step 206:
Data state is carried out in print procedure according to the paging of self-defined paging model, according to the extension of self-defined paging model and dynamic area
Situation, the print range of dynamic calculation every page.In the technical scheme, table sample can be split by page break, construct
Self-defined paging model, each block number can be dynamically calculated in data state according to paging model and dynamic area spread scenarios
According to the number of pages where region, the printing effect of flexible customization is completed.
In the above-mentioned technical solutions, it is preferable that the step 202, specifically include:Step 302:Page break is defined, is passed through
The addition of mouse action, deletion, dragging page break, the page number in foreground each region of instant playback;Step 304:Definition point
Page symbol model, in the interaction that page break model and foreground form are drawn, is shown and is adjusted to page break by background work
It is whole;Step 306:When page break changes, trigger the refresh events on foreground, show the distribution of amended page break, according to point
The page break of page symbol modeling rendering table sample;Step 308:Increased manually by right button, removed page break, and/or, pull page break
Interaction, page break is adjusted.In the technical scheme, it is possible to achieve the self-defined Paging system based on page break, energy
Enough flexible additions and deletions, dragging page break.
In the above-mentioned technical solutions, it is preferable that the step 204, specifically include:Step 402:Preserve with completing configuration
The corresponding page break model of paging;Step 404:The page break model of preservation is parsed, after being by page break Construction of A Model
The self-defined paging model that platform is used;Step 406:Printed in data state according to the paging of self-defined paging model.At this
In technical scheme, a kind of active can be provided the user by page break device, built-in paging model and correlation technique
, the paging mode that can freely customize.
In the above-mentioned technical solutions, it is preferable that the page break that the step 302 is defined, be it is a kind of through table sample all the time
Linear symbol, there is horizontal and vertical two kinds;Multigroup page break, several rectangular areas are divided into by table sample, several rectangle regions
The quantity in domain is exactly total page number to be printed, and several rectangular areas are arranged in order according to order from top to bottom, from left to right,
It is exactly the content for sequentially printing every page;And/or, the page break model that the step 304 is defined can store print area
Initial row, end line, starting row, end column, and each horizontal and vertical page break index;And/or, the step
The 402 page break models preserved, when can reflect that user defines paging, are easy to a kind of foreground model of interaction;And/or, it is described
The self-defined paging model of page break Construction of A Model can be stored the self-defined paging index of row and column respectively, often by step 404
One page line index and column index are combined, and can uniquely determine this page regional extent to be printed, the self-defined paging of row and column
Index uses identical data structure;The data structure, includes the structure of chained list, and each element stores every page successively will
With several shapes as the binary array of { starting index, end are indexed } is constituted inside the index of the row of printing, element.
In the above-mentioned technical solutions, it is preferable that the step 206, specifically include:Step 502:In data state according to making by oneself
The paging of adopted paging model is carried out in print procedure, in order to which the dynamic area for collecting data state extends information, is calculated print area and is existed
The growth pattern of height and width;Step 504:According to the growth pattern of wide and height, the paging extended is torn open
Point.In the technical scheme, there can be the dynamic adjustment mechanism that paging is printed under data state on backstage, user is without being concerned about dynamic
The situation of change in area, it is ensured that the ease for use of printing function.
By above technical scheme, single object class can be made full use of on the basis of existing form print page mode
Type metadata and document describe the form print page that type completes many object type metadatas, set up many object type metadatas
General, the unified print page thinking of the form print page of participation.
Brief description of the drawings
Fig. 1 shows the block diagram of Reporting Customization print page device according to an embodiment of the invention;
Fig. 2 shows the flow chart of Reporting Customization page-by-page printing method according to an embodiment of the invention;
Fig. 3 shows the flow chart of the paging setting unit according to an embodiment of the invention based on page break;
Fig. 4 shows the flow chart of paging model structural unit self-defined according to an embodiment of the invention;
Fig. 5 shows the flow chart of the dynamic page adjustment unit of data state according to an embodiment of the invention;
Fig. 6 and Fig. 7 respectively illustrate conventional table sample schematic diagram one and conventional table sample schematic diagram two;
Fig. 8 shows foreground design sketch according to an embodiment of the invention;
Fig. 9 shows that the interaction for pulling page break according to an embodiment of the invention is the stream of a process back and forth monitored
Cheng Tu;
Figure 10 shows the schematic diagram for the interaction for pulling page break according to an embodiment of the invention;
Figure 11 shows the flow chart that page break model conversation according to an embodiment of the invention is self-defined paging model;
Figure 12 shows the table sample sectional drawing of the dynamic page adjustment of data state according to an embodiment of the invention;
Figure 13 is shown according to an embodiment of the invention exemplified by highly changing, after the extension for calculating current page
Paging flow chart;
Figure 14 show fixed area according to an embodiment of the invention and dynamic area interlock printing paging citing sectional drawing;
Figure 15 and Figure 16 respectively illustrate first page according to an embodiment of the invention and the page break of second page sets effect
Fruit is schemed;
Figure 17 and Figure 18 respectively illustrate the effect of the Print Preview of first page according to an embodiment of the invention and second page
Fruit is schemed.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the block diagram of Reporting Customization print page device according to an embodiment of the invention.
As shown in figure 1, Reporting Customization print page device 100 according to an embodiment of the invention, including:Based on paging
The paging setting unit 102 of symbol, for defining page break and page break model, page break and page break model based on definition,
Paging needed for configuration;Self-defined paging model structural unit 104, for preserving the corresponding page break mould of paging with completing configuration
Type, page break model is parsed, and is the self-defined paging model that backstage is used by page break Construction of A Model, is pressed in data state
Paging according to self-defined paging model is printed;The dynamic page adjustment unit 106 of data state, for data state according to from
The paging for defining paging model is carried out in print procedure, according to the spread scenarios of self-defined paging model and dynamic area, dynamic meter
Calculate the print range of every page.In the technical scheme, table sample can be split by page break, construct self-defined paging mould
Type, can be according to paging model and dynamic area spread scenarios, where dynamically calculating each piece of data area in data state
Number of pages, completes the printing effect of flexible customization.
In the above-mentioned technical solutions, it is preferable that the paging setting unit 102 based on page break, specifically include:Foreground is shown
Module 1022, for defining page break, by the addition of mouse action, deletion, dragging page break, on foreground, instant playback is each
The page number in individual region;Backstage adjusting module 1024, for defining page break model, draws in page break model and foreground form
In interaction, page break is shown and adjusted by background work;Table sample page break drafting module 1026, for page break hair
During raw change, the refresh events on foreground are triggered, amended page break distribution are shown, according to point of page break modeling rendering table sample
Page symbol;Page break adjusting module 1028, for being increased manually by right button, being removed page break, and/or, pull the friendship of page break
Mutually, page break is adjusted.In the technical scheme, it is possible to achieve the self-defined Paging system based on page break, Neng Gouling
Additions and deletions living, pull page break.
In the above-mentioned technical solutions, it is preferable that self-defined paging model structural unit 104, specifically include:Page break is preserved
Module 1042, for preserving the corresponding page break model of paging with completing configuration;Page break model analyzing module 1044, is used for
Page break model is parsed, is the self-defined paging model that backstage is used by page break Construction of A Model;Print page module
1046, for being printed in data state according to the paging of self-defined paging model.In the technical scheme, paging can be passed through
Device, built-in paging model and correlation technique are accorded with, a kind of active has been provided the user, the paging mode that can freely customize.
In the above-mentioned technical solutions, it is preferable that the page break that foreground display module 1022 is defined, it is that a kind of table sample that runs through begins
Whole linear symbol, there is horizontal and vertical two kinds;Multigroup page break, several rectangular areas are divided into by table sample, several squares
The quantity in shape region is exactly total page number to be printed, several rectangular areas according to order from top to bottom, from left to right successively
Arrangement, is exactly the content for sequentially printing every page;And/or, the page break model that backstage adjusting module 1024 is defined can be stored
The initial row of print area, end line, starting row, end column, and each horizontal and vertical page break index;With/
Or, the page break model that page break preserving module 1042 is preserved, when can reflect that user defines paging, it is easy to before one kind of interaction
Platform model;And/or, page break model analyzing module 1044 can distinguish the self-defined paging model of page break Construction of A Model
The self-defined paging index of row and column is stored, every page line index and column index are combined, and can uniquely determine the page will print
Regional extent, row and column self-defined paging index use identical data structure;The data structure, includes the knot of chained list
Structure, each element is stored inside the index of the every page row to be printed, element with several shapes such as { starting index, knot successively
Beam index binary array constitute.
In the above-mentioned technical solutions, it is preferable that the dynamic page adjustment unit 106 of data state, specifically include:Print area
Growth pattern computing module 1062, used in carrying out print procedure according to the paging of self-defined paging model in data state, in order to
The dynamic area extension information of data state is collected, print area is calculated in height and the growth pattern of width;Extend paging and split mould
Block 1064, for the growth pattern according to wide and height, the paging extended is split.In the technical scheme,
There can be the dynamic adjustment mechanism that paging is printed under data state on backstage, user need not be concerned about the situation of change of dynamic area, can be with
Ensure the ease for use of printing function.
Fig. 2 shows the flow chart of Reporting Customization page-by-page printing method according to an embodiment of the invention.
As shown in Fig. 2 Reporting Customization page-by-page printing method according to an embodiment of the invention, including:Step 202:It is fixed
Adopted page break and page break model, page break and page break model based on definition, paging needed for configuration;Step 204:Preserve with
The corresponding page break model of paging of configuration is completed, page break model is parsed, page break Construction of A Model is made for backstage
Self-defined paging model, is printed in data state according to the paging of self-defined paging model;Step 206:In data state
Carried out according to the paging of self-defined paging model in print procedure, according to the spread scenarios of self-defined paging model and dynamic area,
The print range of dynamic calculation every page.In the technical scheme, table sample can be split by page break, construct self-defined
Paging model, each piece of data area can be dynamically calculated in data state according to paging model and dynamic area spread scenarios
The number of pages at place, completes the printing effect of flexible customization.
In the above-mentioned technical solutions, it is preferable that as shown in figure 3, step 202, is specifically included:Step 302:Define paging
Symbol, passes through the addition of mouse action, deletion, dragging page break, the page number in foreground each region of instant playback;Step 304:
Page break model is defined, in the interaction that page break model and foreground form are drawn, page break is shown by background work
Show and adjust;Step 306:When page break changes, the refresh events on foreground are triggered, amended page break distribution is shown,
According to the page break of page break modeling rendering table sample;Step 308:Increased manually by right button, removed page break, and/or, pull
The interaction of page break, is adjusted to page break.In the technical scheme, it is possible to achieve the self-defined paging machine based on page break
System, can flexibly additions and deletions, dragging page break.
In the above-mentioned technical solutions, it is preferable that as shown in figure 4, step 204, is specifically included:Step 402:Preserve with completing
The corresponding page break model of paging of configuration;Step 404:The page break model of preservation is parsed, by page break model structure
Make the self-defined paging model used for backstage;Step 406:Beaten in data state according to the paging of self-defined paging model
Print.In the technical scheme, one can have been provided the user by page break device, built-in paging model and correlation technique
Plant active, the paging mode that can freely customize.
In the above-mentioned technical solutions, it is preferable that the page break that step 302 is defined, it is a kind of through table sample all the time linear
Symbol, there is horizontal and vertical two kinds;Multigroup page break, several rectangular areas are divided into by table sample, several rectangular areas
Quantity is exactly total page number to be printed, and several rectangular areas are arranged in order according to order from top to bottom, from left to right, are exactly
Sequentially print the content of every page;And/or, step 304 define page break model, can store print area initial row,
End line, starting row, end column, and each horizontal and vertical page break index;And/or, point that step 402 is preserved
Page symbol model, when can reflect that user defines paging, is easy to a kind of foreground model of interaction;And/or, step 404 is by page break
The self-defined paging model of Construction of A Model, the self-defined paging index of row and column, every page line index and row can be stored respectively
Index is combined, and can uniquely determine this page regional extent to be printed, the self-defined paging index of row and column is using identical
Data structure;The data structure, includes the structure of chained list, and each element stores the rope of the every page row to be printed successively
Draw, with several shapes as the binary array of { starting index, end are indexed } is constituted inside element.
In the above-mentioned technical solutions, it is preferable that as shown in figure 5, step 206, is specifically included:Step 502:Pressed in data state
Paging according to self-defined paging model is carried out in print procedure, in order to which the dynamic area for collecting data state extends information, calculates printing
Region is in height and the growth pattern of width;Step 504:According to the growth pattern of wide and height, by the paging extended,
Split.In the technical scheme, there can be the dynamic adjustment mechanism that paging is printed under data state on backstage, user is without closing
The situation of change of heart dynamic area, it is ensured that the ease for use of printing function.
There is provided a kind of technology that self-defined print page is carried out to form for technical scheme.The skill of the present invention
Art scheme, provides the device that foreground pulls page break in design state, table sample is split by page break, self-defined point is constructed
Page model, each piece of data area institute can be dynamically calculated in data state according to paging model and dynamic area spread scenarios
Number of pages, complete flexible customization printing effect, it is adaptable to any reporting system with printing function.
For it is existing at present the problem of, technical solution of the present invention is proposed a kind of carries out self-defined print page to form
Technical scheme.The technical scheme effectively solves above mentioned problem, and its feature includes:
(1) the self-defined Paging system based on page break is realized, and there is provided flexible additions and deletions, the dress of dragging page break
Put;
(2) devise self-defined paging model and realize its building method;
(3) realize in data state according to Data expansion situation, the method for dynamic adjustment paging.
Technical scheme, step is as follows:
1st, the paging based on page break is set:
Want to realize flexible print page, first have to provide a kind of device for defining paging in design state, make user can
With configuration paging easily and fast.We, which are based on page break, realizes this device.
In reporting system, our regulation page breaks are a kind of through the linear symbol of table sample all the time, there is horizontal and vertical two
Kind.Table sample, can be divided into several rectangular areas, the quantity in these regions is exactly total page number to be printed by multigroup page break,
These regions are arranged in order according to order from top to bottom, from left to right, are exactly the content for sequentially printing every page.
Page break can be added, delete, dragged by simple mouse action, foreground each region of instant playback
The page number, foreground effect is as shown in Figure 3.
The background work that relevant page break shows and adjusted, is concentrated mainly on the friendship that page break model and foreground form are drawn
In mutually, wherein page break model stores initial row, end line, starting row, the end column of print area, and horizontal and vertical
Each page break index.
The page break of table sample, whenever page break changes, will trigger the refreshing on foreground according to page break modeling rendering
Event, shows amended page break distribution.
The structure of page break model is as follows:
Title | Type | Explanation |
Initial row | Integer | The index value of starting row |
End line | Integer | The index value of end line |
Starting column | Integer | The index value of starting column |
End column | Integer | The index value of end column |
Row page break list | List | Store the index value of all row page breaks |
Row page break list | List | Store the index value of all row page breaks |
User can manually be increased by right button, be removed page break, and can also directly be pulled existing page break and be adjusted
It is whole.The interaction for pulling page break is a process back and forth monitored, and its step is as shown in Figure 4.
For the angle of user, as long as in design state as needed, simple additions and deletions are carried out to page break or dilatory,
The every page scope to be printed can be just customized out, and the work such as other related modeling, calculating is all handled by system background.
2nd, self-defined paging model is constructed:
Page break model focuses on to reflect user when defining paging, is easy to a kind of foreground model of interaction, in order to
Data state is printed according to customized paging, it is necessary to when preserving page break model, page break model is parsed, will
It is configured to the self-defined paging model that backstage is used.
Self-defined paging model stores the self-defined paging index of row and column respectively, and both use identical data structure.
By taking line index model as an example, it uses the structure of chained list, and each element stores the index of the every page row to be printed successively, member
The plain internal binary array for such as { being originated index with several shapes, terminating to index } is constituted.The structure of self-defined paging model is as follows:
For example:First element is { 0,21 }, represents that the first page line range to be printed is the 1st to the 22nd row;Second
Element is { { 0,4 } { 22,47 } }, then it represents that the second page line range to be printed is the 1st to the 5th row, the 23rd to the 48th row.The example
As shown in Figure 5.
Every page line index and column index are combined, and have just uniquely determined this page regional extent to be printed.
Page break model conversation is as shown in Figure 6 for the flow of self-defined paging model.
The page index that sorted is converted into the algorithm of range format:
Initialization:I assignment 0, rangeStart assignment -1.
(1) whether i is maximum sequence number
It is:Go to (8)
It is no:Take serial number i line number.
(2) whether current line number is last
It is:Go to (4)
It is no:Continue.
(3) whether the value that current line number adds 1 is equal to next line number
It is:Go to (4)
It is no:Go to (6)
(4) whether rangeStart is more than or equal to 0
It is:Export { rangeStart, current line number }
It is no:Export { current line number, current line number }
(5) go to (7)
(6) whether rangeStart is more than or equal to 0
It is:Continue
It is no:RangeStart is current line number
(7) i increases 1, goes to (1)
(8) terminate
Wardrobe (or row head), also referred to as header line or fixed row, it is the line range with title function.Wardrobe are in form
It is the key factor for needing to consider in printing.In self-defined paging model, the rope of the index set and page break segmentation of wardrobe
Draw set by the processing such as union, sequence, be then converted to the form of scope, that is, complete the structure of self-defined paging model.Example
If the index ranges of a table sample wardrobe is 0 to 4, if the segmentation scope of page break is 0 to 21, then the result of conversion is exactly
{0,21};If the segmentation scope of page break is 22 to 47, then the result of conversion is exactly { 0,4 } and { 22,47 }.
3rd, the dynamic page adjustment of data state:
Self-defined paging model stores every page line range to be printed and row scope.But, due to depositing for dynamic area
, the data state and design state of form, ranks quantity is often different, if there is dynamic area in table sample, and dynamic area exists
Data state is expanded to after some rows, and the ranks scope stored in paging model cannot directly bring calculating print range, therefore
A kind of dynamic adjusting method in data state is needed, it can be moved according to the spread scenarios of self-defined paging model and dynamic area
State calculates the print range of every page.Referring to Fig. 7.
By taking Fig. 7 table sample as an example:In design state, our self-defined paging is as a result, the printing fixed area the 1, the 2nd of page 1
Page printing dynamic area, page 3 prints fixed area 2. but in data state, and dynamic area may be expanded to according to the size of data volume
Tens rows, hundreds of rows even thousands of rows, in this case, dynamic area may need sequentially to be assigned to be printed on multipage, fixed
The page number in area 2 necessarily can also put off backward.
The dynamic page of data state is adjusted, it is necessary to two steps.
1st step is to extend information to collect the dynamic area of data state, calculates growth of the print area in height and width
Situation.Process is as follows:
(1) take the page in the corresponding region of design state, be set to region 1;
(2) in accordance with the order from top to bottom, each cell of the region rightmost side is traveled through successively, obtains data state
Actual position, obtains the maximum column in ergodic process;
(3) according to order from left to right, each cell of the region bottom is traveled through successively, obtains data state
Actual position, obtains the maximum row in ergodic process;
(4) the data state position of the upper left cell lattice of region 1 is taken
(5) cell location for taking the maximum ranks generated by (2) and (3) to navigate to
(6) it is starting to make the cell that (4) are generated, and the cell of (5) generation is constructed under data state, currently to terminate
The data state region of page, is set to region 2
(7) height and width in comparison domain 1 and region 2, if equal, illustrates that this page need not handle the expansion of dynamic area
Exhibition situation;If illustrating the extension due to dynamic area, the width or height of this page are increased.
2nd step is the growth pattern according to wide and height, and necessary fractionation is done in the paging that those are extended.
In this step, if width and height do not change, scope of the current page in design state is directly returned to, otherwise, it is necessary to root
According to factors such as paper sizes, calculate whether current page needs extension to be printed on multipage, and return to the multipage result after extension.
Exemplified by highly changing, the paging flow calculated after the extension of current page is as shown in Figure 8.
By Fig. 9 fixed areas enumerated and dynamic area interlock printing paging exemplified by, it is assumed that in data state, dynamic area is expanded to
100 rows, then following change can dynamically occur for the line index in its paging model:
Specific embodiment:
" project expenditure final accounts detail list " mentioned in background of invention, can be proposed by technical solution of the present invention from
Define paging device, the row scope of more rational distribution every page printing.
In design state, by page break, paging, first page printing " wage are carried out according to the business implication of each row respectively
The content of welfare expenditure ", second page printing " commodity and service are paid ", page three is printed " subsidy to personal and family ", the
The printings of page four remaining " subsidy to enterprises and institutions " and " other expenditures ".Figure 10 illustrates the paging of first page and second page
Symbol sets effect.
Preserve after page break setting, backstage can build self-defined paging model.After data state logging data, " printing is used
Preview " or " printing " function, backstage can dynamically calculate the print range of every page.By taking first page and second page as an example, beat
Print the effect of preview as shown in Figure 12 and Figure 13.
In the table, by self-defined paging, the detail under same category is arranged, is placed under same one page so that printing knot
Fruit is more reasonable, readability.
Technical scheme, in report printing field, has broken traditional passive streaming paging mode, has passed through paging
Device, built-in paging model and correlation technique are accorded with, a kind of active has been provided the user, the paging mode that can freely customize.
This paging device and method substantially increase the flexibility of report printing paging, and user can be according to the structure and papery of table sample
The need for reading, the high ranks of the degree of correlation are emitted in same one page as far as possible, it is ensured that the logicality of every page of content and readable
Property.Meanwhile, the page break that technical solution of the present invention is provided sets device, easy to use, and there is printing point under data state on backstage
The dynamic adjustment mechanism of page, user need not be concerned about the situation of change of dynamic area, it is ensured that the ease for use of printing function.
Technical scheme, using the strategy of active paging, preceding table apparatus, background paging mould based on page break
Type, data state paging model method for transformation etc..
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that there is no simplicity, system in correlation technique
One solution for complicated type metadata print page.Existing form print page can not complete complicated type
The form print page process of participation.Therefore, the present invention proposes a kind of Reporting Customization print page device and a kind of form
Self-defined page-by-page printing method, can make full use of single object type element number on the basis of existing form print page mode
The form print page that type completes many object type metadatas is described according to document, sets up what many object type metadatas were participated in
General, the unified print page thinking of form print page.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
1. a kind of Reporting Customization print page device, it is characterised in that including:
Paging setting unit based on page break, for defining page break and page break model, page break based on definition and point
Page symbol model, paging needed for configuration;
Self-defined paging model structural unit, for preserving the corresponding page break model of paging with completing configuration, by page break
Model is parsed, and is the self-defined paging model that backstage is used by page break Construction of A Model, in data state according to self-defined point
The paging of page model is printed;
The dynamic page adjustment unit of data state, for carrying out print procedure according to the paging of self-defined paging model in data state
In, according to the spread scenarios of self-defined paging model and dynamic area, the print range of dynamic calculation every page.
2. Reporting Customization print page device according to claim 1, it is characterised in that point based on page break
Page setting unit, is specifically included:
Foreground display module, it is instant on foreground by the addition of mouse action, deletion, dragging page break for defining page break
Show the page number in each region;
Backstage adjusting module, for defining page break model, in the interaction that page break model and foreground form are drawn, by rear
Platform work is shown and adjusted to page break;
Table sample page break drafting module, when being changed for page break, triggers the refresh events on foreground, shows amended point
Page symbol distribution, according to the page break of page break modeling rendering table sample;
Page break adjusting module, for being increased manually by right button, being removed page break, and/or, the interaction of page break is pulled, it is right
Page break is adjusted.
3. Reporting Customization print page device according to claim 2, it is characterised in that the self-defined paging model
Structural unit, is specifically included:
Page break preserving module, for preserving the corresponding page break model of paging with completing configuration;
Page break model analyzing module, is what backstage was used by page break Construction of A Model for page break model to be parsed
Self-defined paging model;
Print page module, for being printed in data state according to the paging of self-defined paging model.
4. Reporting Customization print page device according to claim 3, it is characterised in that the foreground display module is determined
The page break of justice, is a kind of through the linear symbol of table sample all the time, there is horizontal and vertical two kinds;Multigroup page break, table sample is drawn
Be divided into several rectangular areas, the quantity of several rectangular areas is exactly total page number to be printed, several rectangular areas according to
From top to bottom, order from left to right is arranged in order, and is exactly the content for sequentially printing every page;
And/or,
The page break model that the backstage adjusting module is defined, can store the initial row of print area, end line, starting row,
End column, and each horizontal and vertical page break index;
And/or,
The page break model that the page break preserving module is preserved, when can reflect that user defines paging, is easy to one kind of interaction
Foreground model;
And/or,
The self-defined paging model of page break Construction of A Model can be stored row and column respectively by the page break model analyzing module
Self-defined paging index, every page line index and column index be combined, and can uniquely determine this page regional extent to be printed,
The self-defined paging index of row and column uses identical data structure;The data structure, includes the structure of chained list, each member
Element is stored inside the index of the every page row to be printed, element with the two of several shapes such as { originate index, terminate to index } successively
First array is constituted.
5. Reporting Customization print page device according to claim 1 or 2, it is characterised in that the data state it is dynamic
State paging adjustment unit, is specifically included:
Print area growth pattern computing module, for carrying out print procedure according to the paging of self-defined paging model in data state
In, in order to which the dynamic area for collecting data state extends information, print area is calculated in height and the growth pattern of width;
Extend paging and split module, for the growth pattern according to wide and height, the paging extended is split.
6. a kind of Reporting Customization page-by-page printing method, it is characterised in that including:
Step 202:Define page break and page break model, page break and page break model based on definition, paging needed for configuration;
Step 204:Page break model corresponding with the paging for completing to configure is preserved, page break model is parsed, by paging
Symbol Construction of A Model is the self-defined paging model that backstage is used, and is beaten in data state according to the paging of self-defined paging model
Print;
Step 206:In data state carries out print procedure according to the paging of self-defined paging model, according to self-defined paging model
With the spread scenarios of dynamic area, the print range of dynamic calculation every page.
7. Reporting Customization page-by-page printing method according to claim 6, it is characterised in that the step 202, specific bag
Include:
Step 302:Page break is defined, by the addition of mouse action, deletion, dragging page break, instant playback is each on foreground
The page number in individual region;
Step 304:Page break model is defined, in the interaction that page break model and foreground form are drawn, passes through background work pair
Page break is shown and adjusted;
Step 306:When page break changes, trigger the refresh events on foreground, show the distribution of amended page break, according to point
The page break of page symbol modeling rendering table sample;
Step 308:Increased manually by right button, removed page break, and/or, the interaction of page break is pulled, page break is adjusted
It is whole.
8. Reporting Customization page-by-page printing method according to claim 7, it is characterised in that the step 204, specific bag
Include:
Step 402:Preserve page break model corresponding with the paging for completing to configure;
Step 404:The page break model of preservation is parsed, is the self-defined paging that backstage is used by page break Construction of A Model
Model;
Step 406:Printed in data state according to the paging of self-defined paging model.
9. Reporting Customization page-by-page printing method according to claim 8, it is characterised in that what the step 302 was defined
Page break, is a kind of through the linear symbol of table sample all the time, there is horizontal and vertical two kinds;Multigroup page break, table sample is divided into
Several rectangular areas, the quantity of several rectangular areas is exactly total page number to be printed, and several rectangular areas are according to from upper
Order under, from left to right is arranged in order, and is exactly the content for sequentially printing every page;
And/or,
The page break model that the step 304 is defined, the initial row, end line, starting that can store print area is arranged, terminated
Row, and each horizontal and vertical page break index;
And/or,
The page break model that the step 402 is preserved, when can reflect that user defines paging, is easy to a kind of foreground mould of interaction
Type;
And/or,
The self-defined paging model of page break module structure can be stored self-defined point of row and column respectively by the step 404
Page index, every page line index and column index be combined, and can uniquely determine this page regional extent to be printed, row and column from
Define paging index and use identical data structure;The data structure, includes the structure of chained list, and each element is stored successively
With several shapes as the binary array of { starting index, end are indexed } is constituted inside the index of the every page row to be printed, element.
10. the Reporting Customization page-by-page printing method according to claim 6 or 7, it is characterised in that the step 206, tool
Body includes:
Step 502:In data state carries out print procedure according to the paging of self-defined paging model, in order to collect the dynamic of data state
State area extends information, calculates print area in height and the growth pattern of width;
Step 504:According to the growth pattern of wide and height, the paging extended is split.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410757396.4A CN104360826B (en) | 2014-12-10 | 2014-12-10 | Reporting Customization print page apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410757396.4A CN104360826B (en) | 2014-12-10 | 2014-12-10 | Reporting Customization print page apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104360826A CN104360826A (en) | 2015-02-18 |
CN104360826B true CN104360826B (en) | 2017-10-10 |
Family
ID=52528090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410757396.4A Active CN104360826B (en) | 2014-12-10 | 2014-12-10 | Reporting Customization print page apparatus and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104360826B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108846109A (en) * | 2018-06-22 | 2018-11-20 | 广州中康资讯股份有限公司 | A kind of the file guiding system and method for achievable intelligent paging |
CN110119503B (en) * | 2019-05-21 | 2023-11-24 | 遵义院士工作中心 | Excel-based planning project multi-class data report and format editing method |
CN111401017A (en) * | 2020-03-11 | 2020-07-10 | 广联达科技股份有限公司 | Method and system for automatically generating list report |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6101513A (en) * | 1996-05-31 | 2000-08-08 | Microsoft Corporation | Method and apparatus for displaying database information according to a specified print layout and page format |
CN101727436A (en) * | 2008-10-29 | 2010-06-09 | 华为技术有限公司 | Method for processing report data, reporting system and related device thereof |
CN102541551A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Well-available page layout report designing method and system |
CN102830947A (en) * | 2012-08-13 | 2012-12-19 | 南京莱斯信息技术股份有限公司 | Report printing control implemented based on report printing template format |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6801926B1 (en) * | 1996-11-05 | 2004-10-05 | Peoplesoft, Inc. | Platform-independent programmable batch processing engine |
-
2014
- 2014-12-10 CN CN201410757396.4A patent/CN104360826B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6101513A (en) * | 1996-05-31 | 2000-08-08 | Microsoft Corporation | Method and apparatus for displaying database information according to a specified print layout and page format |
CN101727436A (en) * | 2008-10-29 | 2010-06-09 | 华为技术有限公司 | Method for processing report data, reporting system and related device thereof |
CN102541551A (en) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | Well-available page layout report designing method and system |
CN102830947A (en) * | 2012-08-13 | 2012-12-19 | 南京莱斯信息技术股份有限公司 | Report printing control implemented based on report printing template format |
Also Published As
Publication number | Publication date |
---|---|
CN104360826A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103064689B (en) | The implementation method of a kind of Dynamic Generating Report page and system | |
CN104063361B (en) | Report design method and Report Form Design system | |
CN104360826B (en) | Reporting Customization print page apparatus and method | |
CN110390039A (en) | Social networks analysis method, device and the equipment of knowledge based map | |
CN104915450A (en) | HBase-based big data storage and retrieval method and system | |
CN104331491B (en) | The methods of exhibiting and device of a kind of organization | |
CN104516867A (en) | Table reordering method and table reordering system | |
CN107169007A (en) | The display interface method to set up and device of a kind of mobile terminal | |
CN109634575A (en) | Intelligence generates PPT analysis report method | |
CN103019728A (en) | Effective complex report parsing engine and parsing method thereof | |
CN103324763B (en) | Presenting method for tree-form data structure of mobile phone terminal | |
CN101877087A (en) | System and method for monitoring and surveying floating population based on space position | |
CN109299154A (en) | A kind of data-storage system and method for big data | |
CN109272467A (en) | A kind of stratification image partition method based on multi-scale edge clue | |
CN106599034A (en) | Power grid enterprise power balance data visualization system and method | |
CN107145477A (en) | A kind of reporting system based on FineReport instruments | |
CN109446506A (en) | A kind of method and apparatus that electronic spreadsheet table reproduces automatically | |
Leung et al. | Big data intelligence solution for health analytics of COVID-19 data with spatial hierarchy | |
Herr et al. | Movies and actors: Mapping the internet movie database | |
CN105808682A (en) | Relational graph display method and apparatus | |
CN103995886B (en) | A kind of various dimensions product-design knowledge pushes framework and construction method | |
CN113282797B (en) | Method for constructing reservoir dispatching network node topological relation by parallel sequencing | |
JP2006268787A (en) | Apparatus and method for displaying statistic | |
Neal | Evolution of the business air travel network in the US from 1993 to 2011: A descriptive analysis using AIRNET | |
KR102299879B1 (en) | Method and computer program product for automated placement and harmonization of graph onto a figure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park Applicant after: Yonyou Network Technology Co., Ltd. Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park Applicant before: UFIDA Software Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |