web to achieve high-volume printing

web to achieve high-volume printing

Problem Description:

You need to print a lot of pictures in the B / S project, we use window.print, but when the first million of large volumes of data, it will take some time to load images, print out after loading, if the user closes the print interface can cause print missing pages.

Solutions:

1.IE, using ActiveX controls, non-IE, use the Flash plug-in. Different ways to develop this line of thinking is not the same browser, IE / FF / GROME

2. Develop a exe, to install a local client services using HTTP communication. JS by sending an HTTP request to the local service from the local service of a small HTTP Server receives the request, and return data, parsing JS, displayed on the UI. For example, the value of the parameter passed to the local print services, local service to call the printer, so that the browser resources are released.

We use the second approach.

Try the following methods:

1.HttpPrinter

Free use of reason, OME cost very cheap, and does not limit the amount of time and is also possible to buy the source code.

HttpPrinter.com

2. Grape City of ActiveReports

There print using the B / s to achieve end window.print

https://demo.grapecity.com.cn/ActiveReports/ASPNET/ControlExplorer/Viewers/Default.aspx?category=1001&action=14

Another print C / S side, unable to interact with the browser, but you can go to improve

https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=48785&extra=page%3D1

  1. Lodop divided into paid version and free version

    (1) Use Lodop plugin, you need to install a client service, the default port of 8000 or 18,000 service

    (2) how to buy and use printing control Lodop registration number

http://blog.sina.com.cn/s/blog_721e77e50100nfzs.html

(3) Lodop sample presentation

http://www.lodop.net/LodopDemo.html

Consider the question:

(1) Free version has watermark

  1. JCP is divided into paid version and free version

    The installer needs to be replaced

    Net official http://printfree.jatools.com/

    Consider the question:

Free version is suitable only for IE browser

Pictures need to be rendered to the page, the browser release resources for other operations while printing

JatoolsPrint paid version supports most browsers

5.jquery Print

The underlying method is window.print

Finally considerations, we decided to C / S terminal program of ActiveReports are packaged into EXE, use a custom protocol to open a local exe service using HTTP browser way to achieve communication with the local services.

Guess you like

Origin blog.51cto.com/7166940/2424177