Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Printing method for carrying out online design and preview based on WEB

A technology for printing data and templates, applied in the input/output process of digital output to printing unit, calculation, data processing, etc., can solve the interference of footer and header, inability to print continuously, lack of technical support for generation and complex page control, etc. problem, to achieve the effect of simple use and good operation

Active Publication Date: 2020-03-06
福建亿能达信息技术股份有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Method 1: Print through the print function menu of the browser; this method has the following disadvantages: the browser determines the paging position by itself according to the page size set by the user and the content of the web page, resulting in inaccurate paging and the existence of footers Header noise, margins not aligned correctly with printed text, and non-continuous printing
[0005] Method 2: print through webbrowser control + javascript; this method has the following disadvantages: this method is still a program call of the browser's print function menu, and the browser's print function can be called directly through a button or link in the web page The menu has the same disadvantages as method one
[0006] Method 3: Print through print css, that is, embed printing-related css styles in the html document to control the output and printing of html documents, such as setting paper size, paper vertical and horizontal orientation, printing margins, and pagination, etc., but the current browsing The browser does not support this method well, so programmers cannot use print css for actual development
[0007] Method 4: Print through a PDF file, that is, download a PDF file stream from the server, open it with an adobe plug-in in the browser, and then use the adobe print menu to print; this method has the following disadvantages: it cannot be printed directly, it needs to be downloaded Adobe plug-in, some environments that can only use the local computer may not be able to print, and the existing programming language lacks good technical support for PDF generation and complex page control, and it is difficult to accurately control the printing position of the content in the PDF document

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Printing method for carrying out online design and preview based on WEB

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Please refer to figure 1 As shown, a preferred embodiment of a printing method based on WEB for online design and preview of the present invention includes the following steps:

[0043] Step S10, creating a database for storing printing templates on the server, creating a plurality of printing templates and storing them in the database;

[0044] Step S20, sending the printed HTTP request, business data and template code to the server in the WEB;

[0045] Step S30, the server loads the corresponding print template according to the received HTTP request and the template code;

[0046] Step S40, the server updates the business data into the corresponding print template through the template engine, generates print data, and sends the print data to the client;

[0047] That is, through the parsing and data replacement of the template engine, after the server is supplemented with corresponding data judgment, data circulation and other operations, the header content, middle ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a printing method for carrying out online design and preview based on WEB in the field of hospital receipt and report printing, which comprises the following steps of: step S10,creating a database for storing printing templates on a server, and creating a plurality of printing templates and storing the printing templates in the database; step S20, sending a printed HTTP request, service data and a template code to the server in WEB; step S30, enabling the server to load a corresponding printing template according to the received HTTP request and the template code; S40,enabling the server to update the service data into a corresponding printing template through a template engine, generate printing data and send the printing data to a client; and S50, enabling the client to preview and print according to the received printing data. The method has the advantage that receipts and reports can be finely printed without installing an ActiveX plug-in.

Description

technical field [0001] The invention relates to the field of hospital receipt and report printing, in particular to a printing method for online design and preview based on WEB. Background technique [0002] The main customers of the hospital resource planning system (HRP system) are the managers of provincial and county hospitals and traditional Chinese medicine hospitals. Due to the different management methods of each hospital, the required printing formats for the same type of documents are different. Therefore, the hospital resource planning system needs to be able to design a document format that meets the daily use according to the document scheme of each hospital, and needs to support the printing of various complex report data in the hospital resource planning system. [0003] Traditionally, there are the following methods for document and report printing: [0004] Method 1: Print through the print function menu of the browser; this method has the following disadva...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/12
CPCG06F3/1205G06F3/125G06F3/1285
Inventor 黄家昌邱道椿薛伟
Owner 福建亿能达信息技术股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products