CN111552447A - Printing method and system - Google Patents

Printing method and system Download PDF

Info

Publication number
CN111552447A
CN111552447A CN202010360091.5A CN202010360091A CN111552447A CN 111552447 A CN111552447 A CN 111552447A CN 202010360091 A CN202010360091 A CN 202010360091A CN 111552447 A CN111552447 A CN 111552447A
Authority
CN
China
Prior art keywords
template
printing
custom
parameters
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010360091.5A
Other languages
Chinese (zh)
Other versions
CN111552447B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010360091.5A priority Critical patent/CN111552447B/en
Publication of CN111552447A publication Critical patent/CN111552447A/en
Application granted granted Critical
Publication of CN111552447B publication Critical patent/CN111552447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • G06F3/1243Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management

Abstract

The invention provides a printing method and a system, wherein the method comprises the following steps: acquiring template parameters and printing data corresponding to a service to be handled; constructing a self-defined printing template corresponding to the business to be managed according to the template parameters and preset template default parameters; and generating a final printing page of the service to be handled by using the printing data and the custom printing template. According to the scheme, when a client transacts business, the template parameters and the printing data corresponding to the business to be transacted are obtained, and the custom printing template corresponding to the business to be transacted is constructed according to the template parameters and the template default parameters. And generating a final printing page of the service to be handled by using the printing data and the custom printing template. And generating custom printing templates corresponding to different service scenes according to the template default parameters and template parameters corresponding to different service scenes, so that the universality and flexibility of the custom printing templates are improved.

Description

Printing method and system
Technical Field
The invention relates to the technical field of data processing, in particular to a printing method and a printing system.
Background
At present, when a bank transacts business for a client, a certificate is printed for the client based on a fixed printing template. However, with the increase of business scenes, the fixed printing template cannot meet the printing requirements of some scenes, for example, for a transaction scene of bank insurance, the data format and the position of the data to be printed by each insurance company are different, and the fixed printing template cannot be used. Therefore, the current printing mode adopting the fixed printing template has poor universality and poor flexibility.
Disclosure of Invention
In view of this, embodiments of the present invention provide a printing method and system to solve the problems of poor versatility and poor flexibility of the current printing method.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiments of the present invention discloses a printing method, including:
acquiring template parameters and printing data corresponding to a service to be handled;
constructing a self-defined printing template corresponding to the service to be handled according to the template parameters and preset template default parameters;
and generating a final printing page of the service to be transacted by using the printing data and the custom printing template.
Preferably, the constructing a custom printing template corresponding to the service to be handled according to the template parameter and a preset template default parameter includes:
judging whether the parameter value of the template parameter is a null value;
if the parameter value of the template parameter is a null value, determining the actual template parameter of the custom printing template as a preset template default parameter;
if the parameter value of the template parameter is not a null value, determining the actual template parameter of the custom printing template as the template parameter;
and constructing the custom printing template according to the actual template parameters.
Preferably, the generating a final print page of the service to be handled by using the print data and the custom print template includes:
determining the initial position of the printing data written in the custom printing template by using the actual template parameters corresponding to the custom printing template;
writing the printing data into the self-defined printing template according to the initial position, wherein in the process of writing the printing data into the self-defined printing template, if a preset line change condition is met, line change writing processing is executed, and if the preset page change condition is met, page change writing processing is executed;
and determining the custom printing template written in all the printing data as the final printing page of the service to be transacted.
Preferably, after the generating the final print page of the service to be handled by using the print data and the custom print template, the method further includes:
and sending a printing instruction containing the final printing page to a printer.
A second aspect of an embodiment of the present invention discloses a printing system, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring template parameters and printing data corresponding to the business to be managed;
the construction unit is used for constructing a self-defined printing template corresponding to the service to be handled according to the template parameters and preset template default parameters;
and the generating unit is used for generating a final printing page of the service to be handled by using the printing data and the custom printing template.
Preferably, the construction unit comprises:
the judging module is used for judging whether the parameter value of the template parameter is a null value, executing the first determining module if the parameter value of the template parameter is the null value, and executing the second determining module if the parameter value of the template parameter is not the null value;
the first determining module is used for determining the template actual parameters of the custom printing template as the preset template default parameters;
the second determining module is used for determining the template actual parameters of the custom printing template as the template parameters;
and the construction module is used for constructing the custom printing template according to the actual template parameters.
Preferably, the generating unit includes:
the first determining module is used for determining the initial position of the printing data written in the custom printing template by utilizing the actual template parameters corresponding to the custom printing template;
the writing module is used for writing the printing data into the self-defined printing template according to the initial position, wherein in the process of writing the printing data into the self-defined printing template, if a preset line change condition is met, line change writing processing is executed, and if the preset page change condition is met, page change writing processing is executed;
and the second determining module is used for determining the custom printing template written in all the printing data as the final printing page of the service to be transacted.
Preferably, the system further comprises:
and the sending unit is used for sending the printing instruction containing the final printing page to a printer.
Based on the printing method and the printing system provided by the embodiment of the invention, the method comprises the following steps: acquiring template parameters and printing data corresponding to a service to be handled; constructing a self-defined printing template corresponding to the business to be managed according to the template parameters and preset template default parameters; and generating a final printing page of the service to be handled by using the printing data and the custom printing template. According to the scheme, when a client transacts business, the template parameters and the printing data corresponding to the business to be transacted are obtained, and the custom printing template corresponding to the business to be transacted is constructed according to the template parameters and the template default parameters. And generating a final printing page of the service to be handled by using the printing data and the custom printing template. And generating custom printing templates corresponding to different service scenes according to the template default parameters and template parameters corresponding to different service scenes, so that the universality and flexibility of the custom printing templates are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a printing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of generating a final printed page provided by an embodiment of the invention;
FIG. 3 is another flow chart of a printing method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a printing system according to an embodiment of the present invention;
FIG. 5 is a block diagram of another embodiment of a printing system;
FIG. 6 is a block diagram of another embodiment of a printing system;
fig. 7 is a block diagram of another structure of a printing system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As known from the background art, when a bank transacts business for a client, the bank prints certificates for the client based on a fixed printing template, but with the increase of business scenes, the fixed printing template cannot meet the printing requirements of certain scenes, and the current printing mode has poor universality and flexibility.
Therefore, the embodiment of the invention provides a printing method and a printing system, which construct the custom printing templates corresponding to different service scenes according to the default template parameters and the template parameters corresponding to different service scenes, so as to improve the universality and flexibility of the custom printing templates.
Referring to fig. 1, a flowchart of a printing method provided by an embodiment of the present invention is shown, where the printing method includes:
step S101: and acquiring template parameters and printing data corresponding to the business to be handled.
The template parameters include, but are not limited to, word size, margin, line height, and page length. The font size is a parameter for indicating the size of a print element, and is generally divided into a large size, a medium size, a small size, and a custom parameter. The margin is the left margin and the top margin of the printing template corresponding to the printing element margin. The row height indicates the height of a line of print elements in the print template. The page length is the height (page height) and width (page width) of one sheet of paper to be printed.
In the process of implementing step S101, when transacting a service for a client, the template parameter and the print data corresponding to the service to be transacted are acquired according to the actual service scenario.
It can be understood that, according to the actual service scenario, template parameters corresponding to the service to be handled, such as the size of the custom font size, the value of the custom margin, the value of the custom line height, and the value of the custom page length, can be set.
Step S102: and constructing a self-defined printing template corresponding to the business to be managed according to the template parameters and preset template default parameters.
It should be noted that, as can be seen from the foregoing, template parameters corresponding to a service to be handled may be customized according to an actual service scenario, and default values (referred to as template default parameters) of each template parameter are preset, for example: the default values for the font size are set to the middle size, the default values for the margin are set to the left margin 300(3cm) and the top margin 500(5cm), the default value for the line height is set to 50(5mm), and the default values for the page length are set to the height 2700(27cm) and the width 2100(21 cm).
In the process of specifically implementing step S102, when a custom print template corresponding to a service to be managed is constructed, a template actual parameter corresponding to the custom print template needs to be determined, and the custom print template is constructed according to the template actual parameter, where the process of specifically determining the template actual parameter is as follows:
and judging whether the parameter value of the template parameter is a null value, if the parameter value of the template parameter is the null value, determining that the actual template parameter of the custom printing template is a preset template default parameter, and if the parameter value of the template parameter is not the null value, determining that the actual template parameter of the custom printing template is the template parameter.
That is, if the parameter value of the acquired template parameter (customized template parameter) is a null value, the template default parameter is used as the template actual parameter of the customized printing template, and if the parameter value of the acquired template parameter is not a null value, the template parameter is used as the template actual parameter of the customized printing template.
Such as: and if the parameter value of the acquired character size (the self-defined character size) is a null value, determining that the default character size is the actual character size of the self-defined printing template, and if the parameter value of the acquired character size is not a null value, determining that the character size is the actual character size of the self-defined printing template.
And if the parameter value of the acquired margin (the self-defined margin) is a null value, determining that the default margin is the actual margin of the self-defined printing template, and if the parameter value of the acquired margin is not a null value, determining that the margin is the actual margin of the self-defined printing template.
And if the parameter value of the acquired line height (the self-defined line height) is a null value, determining that the default line height is the actual line height of the self-defined printing template, and if the parameter value of the acquired line height is not a null value, determining that the line height is the actual line height of the printing template.
And if the parameter value of the obtained page length (the self-defined page length) is a null value, determining that the default page length is the actual page length of the self-defined printing template, and if the parameter value of the obtained page length is not a null value, determining that the page length is the actual page length of the printing template.
Step S103: and generating a final printing page of the service to be handled by using the printing data and the custom printing template.
In the process of implementing step S103 specifically, after the custom printing template is constructed, the printing data is written into the custom printing template, and a final printing page of the service to be handled is generated.
Preferably, after the final printed page is generated, a print command including the final printed page is transmitted to the printer, and the printer prints the final printed page.
In the embodiment of the invention, the template parameters and the printing data corresponding to the service to be handled are obtained, and the self-defined printing template corresponding to the service to be handled is constructed according to the template parameters and the template default parameters. And generating a final printing page of the service to be handled by using the printing data and the custom printing template. And generating custom printing templates corresponding to different service scenes according to the template default parameters and template parameters corresponding to different service scenes, so that the universality and flexibility of the custom printing templates are improved.
The process of generating the final printed page referred to in step S103 in fig. 1 in the above embodiment of the present invention, referring to fig. 2, shows a flowchart of generating the final printed page provided in the embodiment of the present invention, including the following steps:
step S201: and determining the initial position of the printing data written in the custom printing template by using the actual template parameters corresponding to the custom printing template.
It will be appreciated that during printing, the start of printing can be determined from the left margin (leftMargin) and the top margin (topMargin).
That is to say, in the process of implementing step S201 specifically, the initial position of writing the print data into the custom print template is determined by using the actual margins (the actual left margin and the actual top margin) corresponding to the custom print template, and the print data is written into the custom print template from the initial position.
Step S202: and writing the printing data into the custom printing template according to the initial position.
In the process of implementing step S202 specifically, the print data is written into the custom print template from the initial position, and in the process of writing the print data into the custom print template, if the print data meets the preset line feed condition, the line feed writing process is executed, and if the print data meets the preset page feed condition, the page feed writing process is executed.
The preset line feed condition is that: in writing print data to a custom print template, a line feed occurs if a line feed identifier (such as "\ n") occurs.
In writing the print data into the custom print template, if the actual left margin (leftMargin) + the data length (dataNum) × the actual font size (fontSize) > the width in the actual page length (pageWidth), the line feed writing process is executed.
It should be noted that, each time the line feed write process is executed, the line value (lineNum) corresponding to the line number is incremented by 1, where the initial value of the line value is 1.
The preset page changing conditions are as follows: in writing the print data into the custom print template, the total length of the data page (totalPageSize) is calculated as in formula (1).
totalPageSize ═ lineNum × high (lineHeight) + actual top margin (topMargin) (1)
When totalPageSize is larger than the height in the real page length (pageHeight), the line feed writing process is performed.
It should be noted that, each time the page change writing process is executed, the page number (pageNum) corresponding to the page number is incremented by 1, where the initial value of the page number is 1.
It will be appreciated that after the page-change write process is performed, the total length of the data page (referred to as the new total length) is calculated again, and the new total length of the data page is calculated as in equation (2).
totalPageSize (new total length) ═ totalPageSize (total length from the previous time) - (pageHeight-topmap) (2)
And comparing the new total length of the data page with the height in the real page length again, if the new total length of the data page is greater than the height in the real page length, executing the line feed writing process, and continuing to execute the content in the formula (2) until the total length of the data page is less than (pageHeight-topMargin).
By the mode, the printing data is written into the custom printing template, the custom printing template in which all the printing data is written is determined to be the final printing page (comprising one or more data pages) of the business to be managed, and the content and the format of each data page of the final printing page can be determined.
Step S203: and determining the custom printing template written in all the printing data as the final printing page of the service to be managed.
In the process of implementing step S203, all the print data is written into the custom print template through the content in step S202, and the final print page of the service to be managed can be obtained.
Preferably, it can be understood that, when transacting business for a client, for some business scenarios, the customized printing template corresponding to the business scenario needs to be customized through the content in fig. 1 of the present invention. And for some service scenes, a fixed printing template can be directly obtained for printing process.
Therefore, referring to fig. 3, another flow chart of a printing method provided by the embodiment of the invention is shown, the printing method includes the following steps:
step S301: and acquiring a printing identifier and printing data corresponding to the service to be handled.
Note that the print flag is used to indicate: and customizing a customized printing template corresponding to the service scene, or directly acquiring a fixed printing template.
Step S302: the type of print identifier is determined. If the type of the print flag is "template", step S303 is executed, and if the type of the print flag is "xml _ ibas", step S305 is executed.
Step S303: a fixed print template is obtained.
Step S304: and combining the printing data with the fixed printing template to generate a final printing page.
Step S305: and acquiring template parameters corresponding to the service to be handled.
Step S306: and constructing a custom printing template by using the template parameters and the template default parameters.
Step S307: and combining the printing data with the custom printing template to generate a final printing page.
It can be understood that specific contents of combining the print data with the custom print template can refer to the contents in fig. 1 and fig. 2 in the above embodiment of the present invention, and are not described herein again.
In the embodiment of the invention, the fixed printing template or the customized printing template corresponding to the service scene is determined and obtained according to the requirement of the service scene, and the printing data is combined with the fixed printing template or the customized printing template to generate the final printing page, so that the universality and the flexibility of the printing mode are improved.
Corresponding to the printing method provided by the above embodiment of the present invention, referring to fig. 4, an embodiment of the present invention further provides a structural block diagram of a printing system, where the printing system includes: an acquisition unit 401, a construction unit 402, and a generation unit 403;
an obtaining unit 401, configured to obtain a template parameter and print data corresponding to a service to be managed.
The constructing unit 402 is configured to construct a custom printing template corresponding to the service to be managed according to the template parameter and a preset template default parameter.
And a generating unit 403, configured to generate a final print page of the service to be handled by using the print data and the custom print template.
In the embodiment of the invention, the template parameters and the printing data corresponding to the service to be handled are obtained, and the self-defined printing template corresponding to the service to be handled is constructed according to the template parameters and the template default parameters. And generating a final printing page of the service to be handled by using the printing data and the custom printing template. And generating custom printing templates corresponding to different service scenes according to the template default parameters and template parameters corresponding to different service scenes, so that the universality and flexibility of the custom printing templates are improved.
Preferably, referring to fig. 5 in conjunction with fig. 4, another structural block diagram of a printing system provided in an embodiment of the present invention is shown, where the building unit 402 includes: a judgment module 4021, a first determination module 4022, a second determination module 4023, and a construction module 4024;
the determining module 4021 is configured to determine whether a parameter value of the template parameter is a null value, execute the first determining module 4022 if the parameter value of the template parameter is the null value, and execute the second determining module 4023 if the parameter value of the template parameter is not the null value.
The first determining module 4022 is configured to determine an actual template parameter of the custom print template as a preset default template parameter.
The second determining module 4023 is configured to determine the template actual parameter of the custom print template as a template parameter.
The building module 4024 is configured to build a custom printing template according to the actual template parameters.
Preferably, referring to fig. 6 in conjunction with fig. 4, there is shown another structural block diagram of a printing system provided in an embodiment of the present invention, where the generating unit 403 includes: a first determination module 4031, a write module 4032 and a second determination module 4033;
the first determining module 4031 is configured to determine an initial position where the print data is written in the custom print template by using the template actual parameter corresponding to the custom print template.
The writing module 4032 is configured to write the print data into the custom print template according to the initial position, where in the process of writing the print data into the custom print template, if a preset line change condition is met, the line change writing processing is executed, and if the preset line change condition is met, the page change writing processing is executed.
A second determining module 4033, configured to determine that the custom print template in which all the print data is written is a final print page of the service to be handled.
Preferably, referring to fig. 7 in conjunction with fig. 4, there is shown another structural block diagram of a printing system provided in an embodiment of the present invention, where the printing system further includes:
a sending unit 404 for sending a print instruction containing the final print page to the printer.
In summary, the embodiment of the present invention provides a printing method and system, where the method includes: acquiring template parameters and printing data corresponding to a service to be handled; constructing a self-defined printing template corresponding to the business to be managed according to the template parameters and preset template default parameters; and generating a final printing page of the service to be handled by using the printing data and the custom printing template. According to the scheme, when a client transacts business, the template parameters and the printing data corresponding to the business to be transacted are obtained, and the custom printing template corresponding to the business to be transacted is constructed according to the template parameters and the template default parameters. And generating a final printing page of the service to be handled by using the printing data and the custom printing template. And generating custom printing templates corresponding to different service scenes according to the template default parameters and template parameters corresponding to different service scenes, so that the universality and flexibility of the custom printing templates are improved.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of printing, the method comprising:
acquiring template parameters and printing data corresponding to a service to be handled;
constructing a self-defined printing template corresponding to the service to be handled according to the template parameters and preset template default parameters;
and generating a final printing page of the service to be transacted by using the printing data and the custom printing template.
2. The method according to claim 1, wherein the constructing a custom printing template corresponding to the service to be handled according to the template parameters and preset template default parameters comprises:
judging whether the parameter value of the template parameter is a null value;
if the parameter value of the template parameter is a null value, determining the actual template parameter of the custom printing template as a preset template default parameter;
if the parameter value of the template parameter is not a null value, determining the actual template parameter of the custom printing template as the template parameter;
and constructing the custom printing template according to the actual template parameters.
3. The method of claim 2, wherein the generating a final print page of the transaction using the print data and the custom print template comprises:
determining the initial position of the printing data written in the custom printing template by using the actual template parameters corresponding to the custom printing template;
writing the printing data into the self-defined printing template according to the initial position, wherein in the process of writing the printing data into the self-defined printing template, if a preset line change condition is met, line change writing processing is executed, and if the preset page change condition is met, page change writing processing is executed;
and determining the custom printing template written in all the printing data as the final printing page of the service to be transacted.
4. The method of claim 1, wherein after generating the final printed page of the transaction using the print data and the custom print template, further comprising:
and sending a printing instruction containing the final printing page to a printer.
5. A printing system, the system comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring template parameters and printing data corresponding to the business to be managed;
the construction unit is used for constructing a self-defined printing template corresponding to the service to be handled according to the template parameters and preset template default parameters;
and the generating unit is used for generating a final printing page of the service to be handled by using the printing data and the custom printing template.
6. The system of claim 5, wherein the building unit comprises:
the judging module is used for judging whether the parameter value of the template parameter is a null value, executing the first determining module if the parameter value of the template parameter is the null value, and executing the second determining module if the parameter value of the template parameter is not the null value;
the first determining module is used for determining the template actual parameters of the custom printing template as the preset template default parameters;
the second determining module is used for determining the template actual parameters of the custom printing template as the template parameters;
and the construction module is used for constructing the custom printing template according to the actual template parameters.
7. The system of claim 6, wherein the generating unit comprises:
the first determining module is used for determining the initial position of the printing data written in the custom printing template by utilizing the actual template parameters corresponding to the custom printing template;
the writing module is used for writing the printing data into the self-defined printing template according to the initial position, wherein in the process of writing the printing data into the self-defined printing template, if a preset line change condition is met, line change writing processing is executed, and if the preset page change condition is met, page change writing processing is executed;
and the second determining module is used for determining the custom printing template written in all the printing data as the final printing page of the service to be transacted.
8. The system of claim 5, further comprising:
and the sending unit is used for sending the printing instruction containing the final printing page to a printer.
CN202010360091.5A 2020-04-30 2020-04-30 Printing method and system Active CN111552447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010360091.5A CN111552447B (en) 2020-04-30 2020-04-30 Printing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010360091.5A CN111552447B (en) 2020-04-30 2020-04-30 Printing method and system

Publications (2)

Publication Number Publication Date
CN111552447A true CN111552447A (en) 2020-08-18
CN111552447B CN111552447B (en) 2024-01-30

Family

ID=72004310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010360091.5A Active CN111552447B (en) 2020-04-30 2020-04-30 Printing method and system

Country Status (1)

Country Link
CN (1) CN111552447B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089931A (en) * 2022-01-24 2022-02-25 荣耀终端有限公司 Picture printing method, electronic device and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173529A1 (en) * 2010-01-11 2011-07-14 Microsoft Corporation Template processing engine for business systems
CN105607880A (en) * 2015-12-29 2016-05-25 南威软件股份有限公司 Printing method and device for examined and approved documents
CN105631738A (en) * 2015-12-30 2016-06-01 中国建设银行股份有限公司 Standard inputting and storing system for accountant document template
CN106933518A (en) * 2015-12-29 2017-07-07 口碑控股有限公司 A kind of printing equipment and Method of printing
CN110851092A (en) * 2019-11-15 2020-02-28 厦门商集网络科技有限责任公司 Customized printing method and system based on printing template under B/S framework
CN111045615A (en) * 2019-12-19 2020-04-21 厦门商集网络科技有限责任公司 Method and system for printing JS template customized at browser end

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173529A1 (en) * 2010-01-11 2011-07-14 Microsoft Corporation Template processing engine for business systems
CN105607880A (en) * 2015-12-29 2016-05-25 南威软件股份有限公司 Printing method and device for examined and approved documents
CN106933518A (en) * 2015-12-29 2017-07-07 口碑控股有限公司 A kind of printing equipment and Method of printing
CN105631738A (en) * 2015-12-30 2016-06-01 中国建设银行股份有限公司 Standard inputting and storing system for accountant document template
CN110851092A (en) * 2019-11-15 2020-02-28 厦门商集网络科技有限责任公司 Customized printing method and system based on printing template under B/S framework
CN111045615A (en) * 2019-12-19 2020-04-21 厦门商集网络科技有限责任公司 Method and system for printing JS template customized at browser end

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089931A (en) * 2022-01-24 2022-02-25 荣耀终端有限公司 Picture printing method, electronic device and computer-readable storage medium
CN114089931B (en) * 2022-01-24 2022-06-21 荣耀终端有限公司 Picture printing method, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN111552447B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN100478868C (en) Information processing apparatus and control method thereof
CN100478867C (en) Information processing apparatus and control method thereof
CN110399108B (en) Voucher printing processing method and device
US8743412B2 (en) Printing device which prints first object and second object on the same page
CN111552447A (en) Printing method and system
CN105189130A (en) System and method for printing
CN101145094A (en) Host apparatus to set N-up function and control method thereof
CN107632798A (en) Data-printing method and relevant device
KR101277003B1 (en) Print control apparatus and print control method
CN111367607A (en) Dynamic electronic contract generating and signing system and implementation method thereof
US8861015B2 (en) Preparing an electronic document of continuous information for document exchange that supports continuous and page-by-page printing
CN105027072A (en) Method and system for generating a print job
CN113934385A (en) Electronic certificate generation method and device and bank counter business system
US10481844B2 (en) Data communication method and information processing apparatus having multiple print settings
US8860994B2 (en) Electronic replacement of pre-printed forms
US10062019B2 (en) Method, device and computer program product for processing print data to generate a print image on a print substrate
CN101093438A (en) Image forming method and system to perform overlay
JP2020024516A (en) Information processing apparatus and information processing program
JP2015001846A (en) Data creation device, method, and program
CN104461408A (en) Small margin or margin-free printing method
CN113448522B (en) Variable data printing output method and device, terminal equipment and readable storage medium
CN114968134A (en) Receipt printing method based on webpage and related device
JP5353477B2 (en) Image processing apparatus and program
JP6729234B2 (en) Image processing apparatus, printing system, and image processing method
JP2021189648A (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant