CN101425055A - Table outputting method, device, system and apparatus - Google Patents

Table outputting method, device, system and apparatus Download PDF

Info

Publication number
CN101425055A
CN101425055A CNA2008102169945A CN200810216994A CN101425055A CN 101425055 A CN101425055 A CN 101425055A CN A2008102169945 A CNA2008102169945 A CN A2008102169945A CN 200810216994 A CN200810216994 A CN 200810216994A CN 101425055 A CN101425055 A CN 101425055A
Authority
CN
China
Prior art keywords
output
row
page
content
current output
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.)
Pending
Application number
CNA2008102169945A
Other languages
Chinese (zh)
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 CNA2008102169945A priority Critical patent/CN101425055A/en
Publication of CN101425055A publication Critical patent/CN101425055A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention relates to a method, a device, a system and an apparatus for outputting a table, applied to the field of table processing. The method comprises the following steps: detecting the required space of output contents and the residual space of current output pages; judging whether the detected required space of output contents is more than the residual space of current output pages; if the required space of the output contents is more than the residual space of current output pages, the output contents are split to be output in a plurality of pages. In the invention, because the output contents are output in a plurality of pages after being split when the required space of the output contents is detected to be more than the residual space of current output pages; a table output method is realized and can output the output contents in a plurality of pages when the residual space of current output pages is not enough for outputting the output contents. In addition, the output tables are compact, energy-saving and convenient for users to view in term of pages.

Description

A kind of table outputting method, device, system and equipment
Technical field
The invention belongs to the form process field, relate in particular to a kind of table outputting method, device, system and equipment.
Background technology
Usually with behavior unit, row is the minimum unit that can not be split in the output procedure for the output of form for existing form software, form software etc.In print procedure, when if the residual altitude of current type face is not enough to print next line, this row can be assigned to down one page print, the tableau format that prints like this is not compact, waste resource, also the misunderstanding that may cause this form to finish to the user.And, tall and big for row in the high row of page or leaf, the i.e. row that in one page, can not print fully, generally can abandon doing further processing, and the partial content that only this row of printing can show in one page, this row content part is lost after can causing printing like this, and may therefore bring tremendous loss to the user.
In sum, the form Method of printing that prior art provides when the residual altitude of current type face is not enough to export next line, can not carry out print page to this row.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of table outputting method, when the form Method of printing that being intended to solve prior art provides can not be not enough to export next line in the residual altitude of current type face, this row is carried out the problem of print page.
The embodiment of the invention is achieved in that a kind of table outputting method, and described method comprises the steps:
Detect the requisite space of output content and the remaining space of current output page;
Whether the requisite space of judging detected output content is greater than the remaining space of current output page;
If the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage.
Another purpose of the embodiment of the invention is to provide a kind of form output unit, and described device comprises:
Detecting unit is used to detect the requisite space of output content and the remaining space of current output page;
Whether judging unit, the requisite space that is used to judge the detected output content of described detecting unit be greater than the remaining space of current output page; And
The paging processing unit is if the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage.
Another purpose of the embodiment of the invention is to provide a kind of output system that comprises the above table output unit.
Another purpose of the embodiment of the invention is to provide a kind of equipment that comprises above-mentioned output system.
In embodiments of the present invention, by at the requisite space that detects output content during greater than the remaining space of current output page, output content is split the back to be exported in multipage, realized a kind of table outputting method, in the time of can being not enough to export this output content at the remaining space of current output page, with this output content paging output.And, the tableau format compactness of output, economize on resources, be convenient to the user and check form by page or leaf.
Description of drawings
Fig. 1 is the realization flow figure of the table outputting method that provides of the embodiment of the invention;
Fig. 2 (a) is that the row of will exporting that the embodiment of the invention provides splits first page the synoptic diagram that the back paging is exported;
Fig. 2 (b) is that the row of will exporting that the embodiment of the invention provides splits second page the synoptic diagram that the back paging is exported;
Fig. 3 is that the residual altitude according to current output page that the embodiment of the invention provides intercepts the respective symbols in the non-mentioned null cell specific algorithm process flow diagram of exporting;
Fig. 4 is the actual process flow diagram that takies the algorithm of height according to the character computing unit lattice in the cell that the embodiment of the invention provides;
Fig. 5 is the structural drawing of the form output unit that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, if detect the remaining space of the requisite space of output content, then output content is split the back and in multipage, export greater than current output page.
Fig. 1 shows the realization flow of the table outputting method that the embodiment of the invention provides, and details are as follows:
In step S101, detect the requisite space of output content and the remaining space of current output page;
In step S102, whether the requisite space of judging detected output content greater than the remaining space of current output page, is execution in step S103 then, otherwise execution in step S104;
In step S103, if the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage;
In step S104,, then export this output content at current output page if detect the remaining space that the requisite space of output content is not more than current output page.
In embodiments of the present invention, be that example describes with form by line output, output content is the delegation of form, is called the output row, and the row that the requisite space of output content is the output row is high, and the remaining space of current output page is the residual altitude of current output page.
If judged result is tall and big in the residual altitude of current output page for the row of output row, illustrate current output page export inadequately the row full content, then should export row according to the residual altitude of current output page splits, the partial content that this row of output can be exported in current output page in current output page, shown in Fig. 2 (a), and in other output pages output this row the residue content, shown in Fig. 2 (b).After finishing, continue next output line output of advancing is handled execution in step S101; If do not have next output row, then finish.Certainly, to exporting during capable fractionation realizes, may need also to further consider in the output row that the row of character in each cell is high, the display mode (for example show between two parties, keep left show etc.) etc. of character in the cell specifically.
If the capable height that judged result is gone for output is less than or equal to the residual altitude of current output page, explanation can also then be exported the content of this row at the full content of current output page output output row at current output page.After finishing, continue next output line output of advancing is handled execution in step S101; If do not have next output row, then finish.
In embodiments of the present invention, output content being split the step of exporting the back in multipage is specially:
Step 1. judges whether each cell of output row is empty;
In this step, if all cells of output row all are empty, then all output of the character in each cell of this row finishes; Otherwise, execution in step 2.
Step 2. is exported the intercepting of the respective symbols in the non-mentioned null cell according to the residual altitude of current output page.
In embodiments of the present invention, character is laterally arranged in each cell of form, cell for non-NULL, residual altitude according to current output page, intercepting successively and export can be in the respective symbols of current page remainder output in this cell, and the character that stays after the intercepting output is as all characters with this output row respective cells in the last handling process.After all non-mentioned null cell are finished intercepting output in to this output row, execution in step 1.
Certainly, if the character in the cell has corresponding display mode,, then can adjust accordingly back intercepting output with reference to its display mode as demonstration placed in the middle etc.
The specific algorithm flow process that the residual altitude according to current output page that Fig. 3 shows the embodiment of the invention to be provided is exported the intercepting of the respective symbols in the non-mentioned null cell, details are as follows:
Step 301. is provided with the X-axis coordinate x=0 of current character position, and Y-axis coordinate y=0 chooses number of characters n=0, the maximum residual altitude that allows the current output page of output height maxH=;
Whether the character string in the step 302. judging unit lattice finishes, if finish then enter step 303; Otherwise enter step 308;
Step 303. is got n=n+1 character successively, revises the X-axis coordinate x=x+ character duration of current character position;
Step 304. judges whether to detect the X-axis coordinate x of newline or current character position〉the cell width, if then enter step 305; Otherwise enter step 306;
Step 305. is revised the X-axis coordinate x=0 of current character position, and Y-axis coordinate y=y+ character-serial height enters step 306;
Step 306. is judged the Y-axis coordinate y of current character position〉maxH, if then enter step 307, otherwise enter step 302;
Step 307. is revised the height=maxH that takies of cell, intercepts also preceding N=n-1 character of output string successively, and the state of revising cell is not complete output, and algorithm finishes;
Step 308. is revised the height=y that takies of cell, and the state of revising cell is complete output, and algorithm finishes.
In addition, can also further consider line space, word space, details such as punctuate position adjust accordingly above-mentioned algorithm.
In order to make some (for example can not directly detect the high form of output every trade, reporting system is to can not dynamically exporting by predetermined data content, be referred to as " dynamic table " among the present invention) also can paging export when needed, the scope of application of expansion table outputting method, as a preferred embodiment of the present invention, table outputting method also comprises:
The row that calculates the output row according to the character in each cell of output row is high.
In embodiments of the present invention, calculate the actual height that takies of each cell respectively according to the character in each cell of output row, the actual maximal value that takies in the height of getting each cell is high as the row of output row, in step S102, judges according to this capable height that calculates.
Fig. 4 shows the actual flow process that takies the algorithm of height according to the character string computing unit lattice in the cell that the embodiment of the invention provides, and details are as follows:
Step S401. is provided with the X-axis coordinate x=0 of current character position, and Y-axis coordinate y=0 chooses number of characters n=0;
Whether the character string in the step S402. judging unit lattice finishes, if finish then enter step S403; Otherwise enter step S406;
Step S403. gets n=n+1 character successively, revises the X-axis coordinate x=x+ character duration of current character position;
Step S404. judges whether to detect the X-axis coordinate x of newline or current character position〉the cell width, if then enter step S405; Otherwise enter step S402;
Step S405. revises the X-axis coordinate x=0 of current character position, and Y-axis coordinate y=y+ character-serial height enters step S402;
Actual height=the y that takies of step S406. cell, algorithm finishes.
In addition, can also further consider line space, word space, details such as punctuate position are suitably revised above-mentioned algorithm.
Certainly, at vertical setting of types literal such as ancient Chinese prose, foreign languages, form also can be by row output, output content is row of form, be called the output row, the requisite space of output content is the col width of output row, and the remaining space of current output page is the residue width of current output page.Can carry out corresponding modify to the table outputting method that the foregoing description provides, make at the col width of output row during less than the residue width of current output page, to export and in multipage, export after row split, when being not enough to export next column, with this row paging output with the residue width that is implemented in current output page.
Fig. 5 shows the structure of the form output unit that the embodiment of the invention provides, and only shows the part relevant with the embodiment of the invention for convenience of explanation.
This device can be used for various list processing systems, and these list processing systems can apply to output device, for example computing machine, printer etc.
This device can be to run on the unit that software unit, hardware cell or software and hardware in these list processing systems combine, and also can be used as independently, suspension member is integrated in these output devices or runs in the application system of these output devices.Wherein:
Detecting unit 501 detects the requisite space of output content and the remaining space of current output page.In embodiments of the present invention, be that example describes with form by line output, output content is the delegation of form, is called the output row, and the row that the requisite space of output content is the output row is high, and the remaining space of current output page is the residual altitude of current output page.
Whether judging unit 502, the requisite space of judging detecting unit 501 detected output contents be greater than the remaining space of current output page.In embodiments of the present invention, if the requisite space of detecting unit 501 detected output contents greater than the remaining space of current output page, then judging unit 502 triggers paging processing units 503 and carries out respective handling; Otherwise, be left intact.
Paging processing unit 503 is if the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage.
Wherein, paging processing unit 503 comprises:
Output content judge module 5031 judges whether each cell of output row is empty.
Cell splits module 5032, according to the residual altitude of current output page the intercepting of the respective symbols in the non-mentioned null cell is exported, and its implementation repeats no more as mentioned above.
In order to expand the scope of application of the form output unit that the embodiment of the invention provides, make can not directly detect the high form (for example dynamic table) of output every trade when needed also can paging output, as a preferred embodiment of the present invention, the form output unit also comprises:
SPATIAL CALCULATION unit 504, the row that calculates the output row according to the character in each cell of output row is high, and implementation repeats no more as mentioned above.
In embodiments of the present invention, the capable height of the SPATIAL CALCULATION unit 504 output row that will calculate is exported to judging unit 502 and is judged.
Certainly, at vertical setting of types literal such as ancient Chinese prose, foreign languages, form also can be by row output, output content is row of form, be called the output row, the requisite space of output content is the col width of output row, and the remaining space of current output page is the residue width of current output page.Can carry out corresponding modify to the form output unit that the foregoing description provides, make at the col width of output row during less than the residue width of current output page, to export and in multipage, export after row split, when being not enough to export next column, with this row paging output with the residue width that is implemented in current output page.
In embodiments of the present invention, by at the requisite space that detects output content during greater than the remaining space of current output page, output content is split the back to be exported in multipage, realized a kind of table outputting method, in the time of can being not enough to export this output content at the remaining space of current output page, with this output content paging output.And, the tableau format compactness of output, economize on resources, be convenient to the user and check form by page or leaf.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1, a kind of table outputting method is characterized in that, described method comprises the steps:
Detect the requisite space of output content and the remaining space of current output page;
Whether the requisite space of judging detected output content is greater than the remaining space of current output page;
If the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage.
2, the method for claim 1 is characterized in that, when form was pressed line output, described output content was the output row, and the requisite space of described output content is high for the row of exporting row, and the remaining space of described current output page is the residual altitude of current output page.
3, method as claimed in claim 2 is characterized in that, the described step that output content fractionation back is exported in multipage is specially:
Whether each cell of judging the output row is empty;
Residual altitude according to current output page is exported the intercepting of the respective symbols in the non-mentioned null cell.
4, method as claimed in claim 2 is characterized in that, described method also comprises:
The row that calculates the output row according to the character in each cell of output row is high.
5, the method for claim 1 is characterized in that, when form was exported by row, described output content was the output row, and the requisite space of described output content is for exporting the col width of row, and the remaining space of described current output page is the residue width of current output page.
6, a kind of form output unit is characterized in that, described device comprises:
Detecting unit is used to detect the requisite space of output content and the remaining space of current output page;
Whether judging unit, the requisite space that is used to judge the detected output content of described detecting unit be greater than the remaining space of current output page; And
The paging processing unit is if the requisite space of output content greater than the remaining space of current output page, then splits the back with output content and exports in multipage.
7, device as claimed in claim 6 is characterized in that, when form was pressed line output, described output content was the output row, and the requisite space of described output content is high for the row of exporting row, and the remaining space of described current output page is the residual altitude of current output page.
8, device as claimed in claim 7 is characterized in that, described paging processing unit comprises:
The output content judge module is used to judge whether each cell of output row is empty; And
Cell splits module, according to the residual altitude of current output page the intercepting of the respective symbols in the non-mentioned null cell is exported.
9, device as claimed in claim 7 is characterized in that, described device also comprises:
The SPATIAL CALCULATION unit, it is high to be used for exporting the row of going according to the character calculating of each cell of output row.
10, device as claimed in claim 6 is characterized in that, when form was exported by row, described output content was the output row, and the requisite space of described output content is for exporting the col width of row, and the remaining space of described current output page is the residue width of current output page.
11, a kind of output system that comprises the described form output unit of the arbitrary claim of claim 6 to 10.
12, a kind of equipment that comprises the described output system of claim 11.
CNA2008102169945A 2008-10-29 2008-10-29 Table outputting method, device, system and apparatus Pending CN101425055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102169945A CN101425055A (en) 2008-10-29 2008-10-29 Table outputting method, device, system and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102169945A CN101425055A (en) 2008-10-29 2008-10-29 Table outputting method, device, system and apparatus

Publications (1)

Publication Number Publication Date
CN101425055A true CN101425055A (en) 2009-05-06

Family

ID=40615681

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102169945A Pending CN101425055A (en) 2008-10-29 2008-10-29 Table outputting method, device, system and apparatus

Country Status (1)

Country Link
CN (1) CN101425055A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103576A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Methods and systems for splitting table by utilizing computer
CN102467526A (en) * 2010-11-11 2012-05-23 金蝶软件(中国)有限公司 Entry splitting method and computer
CN102736819A (en) * 2011-03-31 2012-10-17 汉王科技股份有限公司 A method and a device for displaying an electronic document
CN102929857A (en) * 2012-09-26 2013-02-13 周丽明 Automatic page continuation method for instruction type pictures
CN106776893A (en) * 2016-11-30 2017-05-31 浪潮通信信息系统有限公司 A kind of data output method and device
CN109271597A (en) * 2018-09-19 2019-01-25 郑州云海信息技术有限公司 A kind of non-relational database multilist scene Pagination Display method and device thereof
CN113268209A (en) * 2021-05-14 2021-08-17 深圳市领星网络科技有限公司 Method and device for creating custom document printing template and computer equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103576A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Methods and systems for splitting table by utilizing computer
CN102103576B (en) * 2009-12-17 2013-04-17 珠海金山软件有限公司 Methods and systems for splitting table by utilizing computer
CN102467526A (en) * 2010-11-11 2012-05-23 金蝶软件(中国)有限公司 Entry splitting method and computer
CN102736819A (en) * 2011-03-31 2012-10-17 汉王科技股份有限公司 A method and a device for displaying an electronic document
CN102736819B (en) * 2011-03-31 2016-03-23 汉王科技股份有限公司 Electronic document display method and device
CN102929857A (en) * 2012-09-26 2013-02-13 周丽明 Automatic page continuation method for instruction type pictures
CN102929857B (en) * 2012-09-26 2017-11-14 周丽明 A kind of picture of instruction type continues page method automatically
CN106776893A (en) * 2016-11-30 2017-05-31 浪潮通信信息系统有限公司 A kind of data output method and device
CN109271597A (en) * 2018-09-19 2019-01-25 郑州云海信息技术有限公司 A kind of non-relational database multilist scene Pagination Display method and device thereof
CN109271597B (en) * 2018-09-19 2022-02-18 郑州云海信息技术有限公司 Method and device for paging display of multi-table scene of non-relational database
CN113268209A (en) * 2021-05-14 2021-08-17 深圳市领星网络科技有限公司 Method and device for creating custom document printing template and computer equipment

Similar Documents

Publication Publication Date Title
CN101425055A (en) Table outputting method, device, system and apparatus
CN102222027B (en) Terminal factory reset method and device
US20130174024A1 (en) Method and device for converting document format
CN102147790B (en) Text type-setting method and type-setting engine
KR20190015518A (en) Data processing method and apparatus
CN102262565A (en) Method and equipment for cross-program application of clipboard
CN102004698A (en) Flash memory management method and system
CN103838521A (en) Data processing method and data processing device
CN116384356B (en) Method, device, equipment and medium for creating form row of OFD file
GB2237911A (en) Display processing system
CN102880620B (en) Method for creating spreadsheet
CN114550791A (en) Method and device for determining repair position of standby circuit and method for repairing integrated circuit
CN109800539B (en) Simulation test method and system
CN109241510A (en) A kind of autochart generation system and its implementation based on wechat small routine
CN113010473A (en) Method and equipment for editing YAML file
CN101980185B (en) Method and system for removing spaces from text copied from double-layer electronic file
CN101431633B (en) Multi-language supported OSD display method and system
CN101404006A (en) Method, device, system and equipment for regulating output position of page header or footer
CN110502441B (en) DCS single test case automatic generation method based on VBA
CN112015325B (en) Method for generating decoding matrix, decoding method and corresponding device
CN103198140A (en) Database storage system and data storage method
CN105786719A (en) NAND Flash memorizer and processing method of bad blocks in memorizer
CN102455979A (en) Data protection method for damaged memory cell
CN105094349A (en) Dynamic keyboard matrix function switching method and system
CN101055604B (en) Drawing document analyzing system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090506