. Net implementation (set up the solution (support for B/S and C/S ))

Source: Internet
Author: User

Print I think everyone has encountered such a problem. I don't want to use those too powerful print controls, during my development, I also encountered such a situation. I want to implement basic paper la s, that is, to print the specified texts on A4 paper, such as different paper contract agreements; there is no suitable third-party tool for searching on the internet, either a complicated report designer or a series of registration tools;

Therefore, I have implemented the template printing designer component, which supports printing multiple pages at the same time. It supports multiple copies at the same time and completely automated printing, and generates all the paper documents with one click;

The printing tool supports C/S and B/S (ActiveX controls), and the effect is basically the same as the operation method. Let's take a look at the overall Interface C/S:

B/S (ActiveX) interface:

The tool is based on a set of custom templates. The Dom model is used to instantiate the position of the winfomr control. The coordinates are determined based on the basemap and then printed directly through GDI +; on the left side is the generated custom template list, and the editing area in the middle supports real-time drag and drop. The following is the property editing area of the Control. Right-click a property and a list of options for this property will be displayed, after setting, click "application" to modify the DOM document of the current template. You can select multiple documents and edit them at the same time. After editing, click "file"> "preview template" in the menu bar, you can preview all the edited documents at the same time. All the data on the interface is dynamically bound to a single document through the background and can be bound to a single document; I will not talk about the specific details due to time issues. I have uploaded all the source code. If you encounter any problems during use, please contact me;

For: http://files.cnblogs.com/wangiqngpei557/PrintThemp.rar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.