Method and apparatus for creating document
A method and apparatus for creating a document is provided. The lower limit position on the last page of a table graphic pattern which constitutes a document is designated. The position and shape of the table graphic pattern are set. Data is input into the table graphic pattern. A table graphic pattern component on the last page of the table graphic pattern is deformed such that the table graphic pattern component on the last page is not located at a position lower than the lower limit position when inputting data into the table graphic pattern component on the last page.
Latest Canon Patents:
- Image capturing apparatus, control method of image capturing apparatus, and storage medium
- Emission of a signal in unused resource units to increase energy detection of an 802.11 channel
- Apparatus comprising emission areas with different relative positioning of corresponding lenses
- Image capturing apparatus
- Image capturing apparatus, system, and method
The present invention relates to a method and apparatus for creating a document.
BACKGROUND OF THE INVENTIONA document creation/editing program in a computer system or the like often has a function of flowing a plurality of record data into a graphic pattern mainly comprised of ruled lines (to be referred to as a table graphic pattern hereinafter) and arranging the record data in a table form to create a document when, for example, a business operation document is to be created.
For example, when a table graphic pattern having a plurality of columns on a single page or a table graphic pattern across a plurality of pages is to be created, the technique disclosed in Japanese Patent Laid-Open No. 2000-222403 can set an upper start limit position for table graphic pattern components from the second column (table graphic pattern components from the second page). The lower end positions of the table graphic pattern components from the second column (table graphic pattern components from the second page) are aligned with the lower reference end position of the table graphic pattern in the first column (table graphic pattern component on the first page).
In creating a document having a table graphic pattern across a plurality of pages, the user may want to insert a fixed graphic pattern or characters below the table graphic pattern component on the last page. However, when a table graphic pattern is to be created across a plurality of pages by using the above-mentioned technique disclosed in Japanese Patent Laid-Open No. 2000-222403, a common lower reference end position is set for all pages. For this reason, in some cases, part of the table graphic pattern and the permanent graphic pattern or characters may overlap with each other.
Generally, in many cases, a document creation program performs at separate timings a process of creating/editing a table graphic pattern and a process in which the table graphic pattern receives record data and displays/prints the result. More specifically, the user creates a table graphic pattern after estimating the amount of record data which the table graphic pattern would receive. If the document creation program is operated in an environment in which a designated record data amount frequently changes, a table graphic pattern may be located at an unexpected position. For example, if the user wants to insert a fixed graphic pattern or characters below a table graphic pattern component on the last page, as described above, a fixed graphic pattern 801 created below the table graphic pattern component may overlap with part of the table graphic pattern component, as shown in
The above-mentioned and other problems are solved by a method and apparatus for creating a document according to the present invention. The lower limit position on the last page of a table graphic pattern constituting a document is designated. The position and shape of the table graphic pattern are set. Data are input into the table graphic pattern. When data are to be input into the table graphic pattern component on the last page, the table graphic pattern component on the last page is deformed such that the table graphic pattern component on the last page does not extend below the lower limit position.
Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof.
BRIEF DESCRIPTION OF THE DRAWINGSThe accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the descriptions, serve to explain the principles of the invention.
Preferred embodiments of the present invention will now be described in detail in accordance with the accompanying drawings.
The CPU 101 executes a basic I/O program, OS, and control program (document creation program), thereby operating the document creation apparatus. The basic I/O program is written on the ROM 102, the OS is written in the HD drive 106, and the control program and related data are stored in an FD 105. When the document creation apparatus is powered on, an initial program loading (IPL) function in the basic I/O program loads the OS from the HD drive 106 into the RAM 103. The OS starts operation and reads and executes the control program. The control program and related data may be stored in the HD drive 106, ROM 102, or the like.
The control program and related data are stored in the FD 105 in a manner as shown in
First, it is determined whether a last-page graphic pattern creation lower limit position for a table graphic pattern is set (step S01).
If it is determined in step S01 that the last-page graphic pattern creation lower limit position for the table graphic pattern is not set, in step S02, the last-page graphic pattern creation lower limit position for the table graphic pattern is set. Attributes to be set at this time are related to table graphic patterns and particularly include setting of the enabled/disabled state of the last-page graphic pattern creation lower limit position for the table graphic pattern and setting of the graphic pattern creation lower limit position if it is enabled.
On the other hand, if it is determined in step S01 that the last-page graphic pattern creation lower limit position for the table graphic pattern is set, in step S03, it is determined whether to create a table graphic pattern.
If it is determined in step S03 not to create a table graphic pattern, the document creation process ends. On the other hand, if it is determined in step S03 to create (place/set) a table graphic pattern, the flow enters a mode of creating/editing a table graphic pattern (S04). Then, a process of setting the position and shape of a portion for displaying the names of the data items constituting the table graphic pattern (the header portion of a table graphic pattern) (S05) and a process of setting the position and shape of a portion for displaying the data (the data portion of the table graphic pattern) (S06) are performed. For example, a table graphic pattern 601 is created and set, as shown in
Processes in steps S05 and S06 are repeated until it is determined that the table graphic pattern creation/editing process ends (S07).
If it is determined in step S07 that the table graphic pattern creation/editing process ends, the flow exits the mode of creating/editing a table graphic pattern and shifts to a normal editing mode (S08).
It is determined next whether to perform a process of creating a graphic pattern other than a table graphic pattern (S09).
If it is determined in step S09 not to perform the process of creating a graphic pattern other than a table graphic pattern, the table graphic patterns created in steps S05 to S07 are displayed on the display 108, and the document creation process ends (S12).
On the other hand, if it is determined in step S09 to perform the process of creating a graphic pattern other than a table graphic pattern, the graphic pattern creation process is performed (S10). For example, graphic patterns 607 and 608 are created in the normal editing mode, as shown in
If the user indicates that further table graphic pattern creation/editing is necessary in step S12, the flow returns to step S05, and table graphic pattern creation/editing operation is enabled. When the flow returns to step S05, the graphic patterns 602 and 603 created/edited in the normal editing mode are displayed in the color indicating the non-editable state (e.g., grey), as shown in
In this embodiment, sample record data can be flowed into a table graphic pattern, and the result can be previewed on the display 108.
First, in step S13, the current process state of the document creation program is determined.
If it is determined in step S13 that the document creation program is in the mode of creating/editing a document, the processes in steps S01 to S12 are continued.
On the other hand, if it is determined in step S13 that the document creation program is in the mode of giving a preview, it is determined whether data to be allocated to a table graphic pattern in a document is designated (S14).
If it is determined in step S14 that data to be allocated to the table graphic pattern in the document is not designated, data to be allocated to the table graphic pattern in the document is designated (S15).
A process of inputting/storing the data designated in step S15 in corresponding portions of the table graphic pattern is then performed.
First, data to be stored in a table graphic pattern component displayed on the current page is acquired (S16). It is determined whether the current page is the “last page” (S17).
If it is determined in step S17 that the current page is not the “last page”, data is stored in corresponding portions of the table graphic pattern component on the basis of the shape of the table graphic pattern component created in steps S05 to S07 (S18). The process in step S18 is repeated until the process of storing data in a table graphic pattern ends (S19).
Finally, the table graphic pattern component storing data is displayed on the display 108 (S20).
If it is determined in step S17 that the current page is the “last page”, the last-page graphic pattern creation lower limit position set in step S02 is acquired (S21), and the shape of a table graphic pattern component on the last page is deformed so as to fall within the graphic pattern creation lower limit position on the basis of the information acquired in step S21 and data acquired in step S16 (S22). After that, the processes in step S18 to S20 are preformed. For example, if the last-page graphic pattern creation lower limit position is not set, a table graphic pattern and a normal graphic pattern may overlap with each other, as shown in
When inputting actual record data into a document thus created and outputting the document, the processes in steps S14 to S20 are performed using the actual record data in the same manner as in the preview process.
As has been described above, according to this embodiment, a table graphic pattern creation lower limit position is set for the last page. With this arrangement, even if the amount of record data to be input into a table graphic pattern component changes, the table graphic pattern component and a fixed graphic pattern created below the table graphic pattern component on the last page can be displayed and printed without any-overlap. For this reason, a document can be designed without paying much attention to variations in record data amount in document creation, and the need for performing reediting or the like for the displayed/printed table graphic pattern component is reduced. Accordingly, the document creation efficiency drastically increases.
Other Embodiment
The above-mentioned embodiment sets a last-page table graphic pattern-creation lower limit position for a table graphic pattern in which data is sequentially input in the longitudinal direction of a sheet. In the case of a table graphic pattern in which data is sequentially input in the lateral direction, a graphic pattern creation right (or left) limit position of the table graphic pattern is set. This makes it possible to cope with a case wherein a fixed graphic pattern needs to be inserted on the right side (or left side) of the last page.
As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims.
Claims
1. A method for creating a document, comprising the steps of:
- designating a lower limit position on a last page of a table graphic pattern which constitutes the document;
- setting a position and shape of the table graphic pattern;
- inputting data into the table graphic pattern; and
- deforming a table graphic pattern component on the last page of the table graphic pattern such that the table graphic pattern component on the last page is not located below the lower limit position when inputting data into the table graphic pattern component on the last page.
2. The method according to claim 1, wherein the table graphic pattern has a plurality of columns on a single page.
3. The method according to claim 1, wherein the lower limit position is designated by using a slider for designating a lower limit position displayed on a document design screen.
4. The method according to claim 1, wherein the lower limit position is designated by inputting a numerical value.
5. The method according to claim 1, further comprising the step of:
- setting a fixed graphic pattern different from the table graphic pattern component on the last page, wherein the fixed graphic pattern is set at a position lower than the lower limit position.
6. A method for creating a document, comprising the steps of:
- designating at least one of a left limit position and a right limit position on a last page of a table graphic pattern which constitutes a document;
- setting a position and shape of the table graphic pattern;
- inputting data into the table graphic pattern; and
- deforming a table graphic pattern component on the last page of the table graphic pattern such that the table graphic pattern component on the last page is not located to at least one of the left and the right of the limit position when inputting data into the table graphic pattern component on the last page.
7. A computer-executable program for creating a document, comprising the codes for:
- designating a lower limit position on a last page of a table graphic pattern which constitutes a document;
- setting a position and shape of the table graphic pattern;
- inputting data into the table graphic pattern; and
- deforming a table graphic pattern component on the last page of the table graphic pattern such that the table graphic pattern component on the last page is not located below the lower limit position when inputting data into the table graphic pattern component on the last page.
8. A computer-readable storage medium storing a computer-executable program for creating a document, said program comprising the codes for:
- designating a lower limit position on a last page of a table graphic pattern which constitutes a document;
- setting a position and shape of the table graphic pattern;
- inputting data into the table graphic pattern; and
- deforming a table graphic pattern component on the last page of the table graphic pattern such that the table graphic pattern component on the last page is not located below the lower limit position when inputting data into the table graphic pattern component on the last page.
9. An apparatus for creating a document, comprising:
- means for designating a lower limit position on a last page of a table graphic pattern which constitutes a document;
- means for setting a position and shape of the table graphic pattern;
- means for inputting data into the table graphic pattern; and
- means for deforming a table graphic pattern component on the last page of the table graphic pattern such that the table graphic pattern component on the last page is not located below the lower limit position when inputting data into the table graphic pattern component on the last page.
Type: Application
Filed: Jun 14, 2004
Publication Date: Jan 13, 2005
Applicant: CANON KABUSHIKI KAISHA (Tokyo)
Inventor: Hiroki Koyano (Kanagawa)
Application Number: 10/865,867