CN101324833B - Method and apparatus for saving page resource - Google Patents

Method and apparatus for saving page resource Download PDF

Info

Publication number
CN101324833B
CN101324833B CN2008101262824A CN200810126282A CN101324833B CN 101324833 B CN101324833 B CN 101324833B CN 2008101262824 A CN2008101262824 A CN 2008101262824A CN 200810126282 A CN200810126282 A CN 200810126282A CN 101324833 B CN101324833 B CN 101324833B
Authority
CN
China
Prior art keywords
page
print area
current page
effective
print
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
Application number
CN2008101262824A
Other languages
Chinese (zh)
Other versions
CN101324833A (en
Inventor
符修湖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN2008101262824A priority Critical patent/CN101324833B/en
Publication of CN101324833A publication Critical patent/CN101324833A/en
Application granted granted Critical
Publication of CN101324833B publication Critical patent/CN101324833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for saving page resources. The method comprises the following steps: a valid printable area of the current page is obtained; the rest of the printable area of the current page is calculated according to the valid printable area; an area to be printed in the correlative page of the current page is obtained; when the rest of the printable area can be filled with the area to be printed, the correlative page is recorded; and the area to be printed is filled on the rest of the printable area of the current page according to the recorded content. By adopting the method, the data to be printed in a plurality of correlative pages provided by users can be put into one printing page, and thereby the page resources can be saved. The invention also provides a device for saving the page resources.

Description

A kind of method of saving page resource and device
Technical field
The present invention relates to the database processing field, particularly relate to a kind of method of saving page resource and a kind of device of saving page resource.
Background technology
Enterprise resource planning (Enterprise Resource Planning, ERP), be meant and be based upon on the infotech basis, all resources (logistics, cash flow, information flow or human resources) to enterprise are integrated integrated management, adopt information-based means to realize enterprise's supply and marketing chain management, thereby reach the purpose that each link on the supply chain is realized scientific management.In the general business scene of ERP, often business datum need be printed to generate business voucher, the printer page during printing can be corresponding one by one with the grouping of business datum, promptly is corresponding printer page of grouping of a business datum.
In the prior art, in the general business scene of ERP, the method that a kind of printer page is arranged, implementation procedure is as follows: print framework and provide paper size, print attribution such as horizontal or vertical to the user, the user fills business datum according to described print attribution on printing template, business datum is filled into after the printing template, can generate several printer pages, the user can carry out preview by printing framework, outputs to printer page by page by the printing framework at last and prints.For example, with reference to figure 1 and Fig. 2, show the synoptic diagram of printer page in the general business scene of ERP, wherein, two data are respectively subject 1711 and subject 1231, have printed two pages of contents according to described two data grouping.
As can be seen, in the general business scene of ERP, existing printing type, the grouping situation of utilizing business datum to be to distribute printer page, i.e. corresponding printer page of business datum is under the fewer situation of the content of business datum, most blank content will appear on a printer page, such printing type not only is not easy to read, and very wastes paper, has taken some page resources that can save originally greatly.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly at present: how can propose a kind of method of saving page resource, in order to solve when the printer page waste paper, to take problem of resource.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method of saving page resource, in order to saving page resource when the printer page.
Another object of the present invention is that above-mentioned design is applied to provide a kind of device of saving page resource in the concrete applied environment, thereby guarantees the realization and the application of this method.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of method of saving page resource, comprising:
Obtain the elevation information and the width information of current page;
Calculate effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information;
According to described effective print area, calculate the residue print area of described current page; Described residue print area is current print area poor of effective print area and described current page;
Obtain the print area for the treatment of in the related page of described current page;
When treating that print area can be filled described residue print area, write down the described related page when described;
Content according to the described related page of described record is filled in the described print area for the treatment of on the residue print area of described current page.
Preferably, described method also comprises:
Describedly treat that the current page behind the print area prints with filling.
Preferably, the described related page provide for the user at least one treat printer page.
The embodiment of the invention also provides a kind of device of saving page resource, comprising:
First acquisition module is used to obtain effective print area of current page; Described first acquisition module specifically comprises: the 3rd obtains the submodule and second calculating sub module; Wherein, the described the 3rd obtains submodule, is used to obtain the elevation information and the width information of current page; Described second calculating sub module, be used to calculate effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information;
First computing module is used for calculating the residue print area of described current page according to described effective print area;
Second acquisition module, be used for obtaining described current page the related page treat print area;
Logging modle is used for when treating that print area can be filled described residue print area, writing down the described related page when described;
Packing module is used for according to described record content the described print area for the treatment of being filled on the residue print area of described current page.
Preferably, described device also comprises:
Print module is used for describedly treating that the current page behind the print area prints with filling.
Compared with prior art, the present invention has the following advantages:
The present invention is by obtaining effective print area of current page; According to described effective print area, calculate the residue print area of described current page; Obtain the print area for the treatment of in the related page of described current page; When treating that print area can be filled described residue print area, write down the described related page when described; According to described record content, the described print area for the treatment of is filled on the residue print area of described current page.The a series of related page that the present invention provides the user also is filled on the residue print area of current page, can will need multipage paper printed contents can be placed on same the page originally, thereby not only make things convenient for the user to read, the more important thing is and saved page resource.
Description of drawings
Fig. 1 is the synoptic diagram one of printer page in the general business scene of prior art ERP;
Fig. 2 is the synoptic diagram two of printer page in the general business scene of prior art ERP;
Fig. 3 is the process flow diagram of the method embodiment 1 of a kind of saving page resource of the present invention;
Fig. 4 is the process flow diagram of the method embodiment 2 of a kind of saving page resource of the present invention;
Fig. 5 is the interface synoptic diagram that the saving page resource condition is set in the object lesson of the present invention;
Fig. 6 is the structured flowchart of the device preferred embodiment of a kind of saving page resource of the present invention;
Fig. 7 uses the process flow diagram that preferred embodiment shown in Figure 6 carries out saving page resource.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, comprise distributed computing environment of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
With reference to figure 3, show the process flow diagram of the method embodiment 1 of a kind of saving page resource of the present invention, can may further comprise the steps:
Step 301: the effective print area that obtains current page;
Step 302:, calculate the residue print area of described current page according to described effective print area;
Step 303: obtain the print area for the treatment of in the related page of described current page;
Step 304: when treating that print area can be filled described residue print area, write down the described related page when described;
Step 305:, the described print area for the treatment of is filled on the residue print area of described current page according to described record content.
In actual applications, described residue print area can be for the current print area of effectively print area and described current page poor, wherein, need to prove, described print area can comprise prints height and/or print span, when described print area when printing height, what described effective print area can be for the height of described current page and margin up and down is poor.At least one that the described related page can provide for the user treat printer page, the different printer page for the treatment of that the user is provided can both be filled on the residue print area of described current page,
As can be seen, the present invention is by the information for the treatment of print data in the related page that reads the user and provide, and treat print data in the related page that can in a page, represent, be placed in the page and represent, wherein, the described related page can be for a plurality of, further, can also be with described page output print, thereby saved page resource greatly, with needing the data of a plurality of page output prints originally, merge into a page and carry out output print, can also help the user and read.
With reference to figure 4, show the process flow diagram of the method embodiment 2 of a kind of saving page resource of the present invention, can may further comprise the steps:
Step 401: elevation information and the width information of obtaining current page;
When described print area is when printing height and print span, at first obtain the elevation information and the width information of current page;
Step 402: the effective print area that calculates described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information;
Step 403:, calculate the residue print area of described current page according to described effective print area;
Step 404: obtain the print area for the treatment of in the related page of described current page;
Wherein, the described related page can be previous or preceding several pages of current page, also can be back or the several pages in back of current page, and these do not influence realization of the present invention;
Step 405: when treating that print area can be filled described residue print area, write down the described related page when described;
Step 406:, the described print area for the treatment of is filled on the residue print area of described current page according to described record content;
Step 407: will fill and describedly treat that the current page behind the print area prints.
In the present embodiment, further, can describedly treat that the current page behind the print area carries out output print with filling, thus further can the conserves paper resource.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
For making those skilled in the art understand the present invention better, the present invention is further described below in conjunction with object lesson that the present invention uses in practice.
In the general business scene of ERP, the page that the user can select a lot of needs to print, for example, 5, then with these 5 page setups for treating printer page, it is current page that the user can select any one page in 5 pages, then other 4 pages are the related page of current page, can show and use method of the present invention the interface synoptic diagram that is a printer page with 5 page amalgamations to be printed with reference to figure 5;
Steps A 1: elevation information and the width information of obtaining current page;
At first need to obtain the elevation information and the width information of current page, in practice, any one in a plurality of pages that current page can provide for the user, other pages that its related page can provide for the user;
In the present example, can at first read the type face for the treatment of of subject 1141 correspondences, read the elevation information and the width information of type face;
Steps A 2: the effective print area that calculates described current page;
Wherein, described effective print area can comprise effective printing height and effective print span, and what described effective printing highly can be for the margin up and down of the described elevation information and the described page is poor, and described effective print span can be described width information;
In the present example, described effective print highly is the elevation information of full page and margin poor up and down, and described width information can be the width information of the page that reads; Need to prove, in practice, when treating in the printer page that the user provides, the width of wherein treating print data also can carry out subject when merging, also can use method of the present invention that a plurality of subjects are merged according to width, method in its merging method and the object lesson of the present invention is similar, does not repeat them here;
Steps A 3:, calculate the residue print area of described current page according to described effective print area;
Described effective print area is deducted the zone for the treatment of print data of described current page, promptly can obtain remaining print area, described residue print area promptly can be used for filling the band print data in the described related page;
In the present example, described residue print area can deduct the print area of subject 1141 shared scopes for described effective print area;
Steps A 4: obtain the print area for the treatment of in the related page of described current page;
Need to prove, in this step, the described related page can be last or preceding several pages of described current page, also can be back or the several pages in back of described current page, the position and the number of the related page do not influence realization of the present invention, so the present invention does not do qualification to the related page;
In the present example, the print area for the treatment of in the related page that gets access to can be the print area for the treatment of in 5 related pages of subject 1151,1161,1162,1201,1211; Need to prove that in actual applications, the number of the related page all can change according to user's request, the order that reads the related page also is can be according to user's the autonomous selection that is provided with, and these change does not influence realization of the present invention;
Steps A 5: when treating that print area can be filled described residue print area, write down the described related page when described;
When the value of described residue print area greater than the described related page treat print area the time, illustrate that current page can also place the print data for the treatment of of the described related page, therefore, can get off, think that next step filling is prepared with the related page record that current page merges;
Need to prove, because the described related page can be for a plurality of, so when reading a related page, described residue print area is that effective print area deducts the zone for the treatment of print data in this related page, when read a residue print area behind the related page can also continue to place in the follow-up related page treat print data the time, described residue print area need be continued to deduct the print data for the treatment of in the follow-up related page, can not place again till in described a plurality of related page any one treat print data up to the residue print area that calculates, aforesaid related page record is got off to think that next procedure prepares;
Steps A 6:, the described print area for the treatment of is filled on the residue print area of described current page according to described record content;
Content according to the related page that writes down, the print area for the treatment of in described a plurality of related pages of record is filled on the residue print area of described current page, with described current page can place the print data for the treatment of of the relevant page all be presented on the current page, be content shown in Figure 5; Need to prove, when also having the follow-up related page to print, the user can set up another a current page, utilize aforesaid method to treating that print data reads and record in second current page again, thereby can be placed on an associated data in the page all is placed in the page, with saving page resource;
Steps A 7: will fill the described current page output print for the treatment of behind the print area.
With the user provide the treating that print data all reads and finish of the relevant page, and will remain accordingly print area fill finish after, the user can also be with populated page output print;
Need to prove that when printing described current page, the user can select A4 paper as required, also can select B5 paper, perhaps selects the paper of other models, the model of selected paper does not influence realization of the present invention, so the present invention does not do qualification to this.
In sum, method of the present invention can be according to the effective print area and the residue print area of current page, calculate described current page and can hold several related pages, thereby the print data for the treatment of that can be placed in the page all can be filled in the page, and with its printout, thereby saved page resource.
With reference to figure 6, show the structured flowchart of the device preferred embodiment of a kind of saving page resource of the present invention, can comprise with lower module:
First acquisition module 601 is used to obtain effective print area of current page;
Preferably, described first acquisition module can comprise:
The 3rd obtains submodule 6011, is used to obtain the elevation information and the width information of current page;
Second calculating sub module 6012, be used to calculate effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information.
First computing module 602 is used for calculating the residue print area of described current page according to described effective print area;
Second acquisition module 603, be used for obtaining described current page the related page treat print area;
Logging modle 604 is used for when treating that print area can be filled described residue print area, writing down the described related page when described;
Packing module 605 is used for according to described record content the described print area for the treatment of being filled on the residue print area of described current page.
Print module 606 is used for describedly treating that the current page behind the print area prints with filling.
With reference to figure 7, show and use the process flow diagram that preferred embodiment shown in Figure 6 carries out saving page resource, can may further comprise the steps:
Step 701: first acquisition module obtains effective print area of current page;
Preferably, described step 701 can realize by two sub-steps once:
Substep obtained elevation information and the width information that submodule obtains current page in 7011: the three;
7012: the second calculating sub module of substep are calculated effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information.
Step 702: first computing module calculates the residue print area of described current page according to described effective print area;
Step 703: second acquisition module obtains the print area for the treatment of in the related page of described current page;
Step 704: when treating that print area can be filled described residue print area, logging modle writes down the described related page when described;
Step 705: packing module is filled in the described print area for the treatment of on the residue print area of described current page according to described record content.
Step 706: print module will be filled and describedly be treated that the current page behind the print area prints.
Need to prove that each embodiment in this instructions all adopts the mode of going forward one by one to describe, what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device class embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than the method for a kind of saving page resource provided by the present invention and the device of saving page resource are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (5)

1. the method for a saving page resource is characterized in that, comprising:
Obtain the elevation information and the width information of current page;
Calculate effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information;
According to described effective print area, calculate the residue print area of described current page; Described residue print area is current print area poor of effective print area and described current page;
Obtain the print area for the treatment of in the related page of described current page;
When treating that print area can be filled described residue print area, write down the described related page when described;
Content according to the described related page of described record is filled in the described print area for the treatment of on the residue print area of described current page.
2. the method for claim 1 is characterized in that, described method also comprises:
Describedly treat that the current page behind the print area prints with filling.
3. the method for claim 1 is characterized in that, the described related page provide for the user at least one treat printer page.
4. the device of a saving page resource is characterized in that, comprising:
First acquisition module is used to obtain effective print area of current page; Described first acquisition module specifically comprises: the 3rd obtains the submodule and second calculating sub module; Wherein, the described the 3rd obtains submodule, is used to obtain the elevation information and the width information of current page; Described second calculating sub module, be used to calculate effective print area of described current page, described effective print area comprises effective printing height and effective print span, described effective print highly is margin up and down poor of the described elevation information and the described page, and described effective print span is described width information;
First computing module is used for calculating the residue print area of described current page according to described effective print area; Described residue print area is current print area poor of effective print area and described current page;
Second acquisition module, be used for obtaining described current page the related page treat print area;
Logging modle is used for when treating that print area can be filled described residue print area, writing down the described related page when described;
Packing module is used for the content according to the described related page of described record, and the described print area for the treatment of is filled on the residue print area of described current page.
5. device as claimed in claim 4 is characterized in that, also comprises:
Print module is used for describedly treating that the current page behind the print area prints with filling.
CN2008101262824A 2008-07-30 2008-07-30 Method and apparatus for saving page resource Active CN101324833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101262824A CN101324833B (en) 2008-07-30 2008-07-30 Method and apparatus for saving page resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101262824A CN101324833B (en) 2008-07-30 2008-07-30 Method and apparatus for saving page resource

Publications (2)

Publication Number Publication Date
CN101324833A CN101324833A (en) 2008-12-17
CN101324833B true CN101324833B (en) 2010-12-15

Family

ID=40188385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101262824A Active CN101324833B (en) 2008-07-30 2008-07-30 Method and apparatus for saving page resource

Country Status (1)

Country Link
CN (1) CN101324833B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5473363B2 (en) 2009-03-26 2014-04-16 キヤノン株式会社 Information processing apparatus, control method, and control program
CN102930377A (en) * 2012-10-09 2013-02-13 华为技术有限公司 Method and equipment for processing business handling information
CN105335337B (en) * 2014-06-17 2017-12-19 北大方正集团有限公司 The method for splitting and device of cross-page file
CN110221790B (en) * 2019-05-28 2023-02-21 迈克医疗电子有限公司 Universal printing method and apparatus, analyzer, and storage medium
CN111240609A (en) * 2020-01-03 2020-06-05 北京辰森世纪科技股份有限公司 Data printing method and device, electronic equipment and storage medium
CN114356254A (en) * 2021-12-30 2022-04-15 珠海豹趣科技有限公司 Electronic document printing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN101324833A (en) 2008-12-17

Similar Documents

Publication Publication Date Title
CN101324833B (en) Method and apparatus for saving page resource
CN107886439A (en) Insurance products development approach, device, equipment and computer-readable recording medium
CN102201009A (en) Form generating method and device
CN105512890A (en) Method and system for generating accounting voucher
JP2003331047A5 (en)
CN103646016A (en) Implementation method of user-defined financial statement and server
CN108039193A (en) A kind of method and device for automatically generating physical examination report
CN103136317A (en) Implement method of on-line examination and approval informatization of engineering contracts in engineering management system
CN104802527A (en) Online product label printing system and method
CN101650745A (en) Method and device for rapidly generating WEB page based on data definition
CN104123608B (en) A kind of method and apparatus for establishing accounting records
CN106681698A (en) Dynamic list generating method and device
CN105589686A (en) Template-based information input and printing method and device under WinCE (Windows Embedded Compact) platform
JP2019200549A (en) Information processing method, information processing device, information processing system, and data structure of document data
CN101369329A (en) Method and apparatus for associating documents in ERP system
CN101414381A (en) Generating device, generating method, generating system and programme for image of bill
CN102375716A (en) Variable data printing method and system
US20130305130A1 (en) Systems and Method for Building and Publishing Complex Documents with Component Revenue Tracking
CN101980133B (en) Method and system for detecting text selection region deviation of double-layer electronic file
CN101211254B (en) Variable data image generating device, variable data image forming system and method used for generating variable data image
CN103699520A (en) Font processing method for maintaining e-document layout
CN111208957A (en) Payroll printing method
Alòs et al. On the short-maturity behaviour of the implied volatility skew for random strike options and applications to option pricing approximation
Kuhlman The construction of purpose-specific OD matrices using public transport smart card data
US20120246559A1 (en) Method and system for estimating variable data document conversion time

Legal Events

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