Registration of Web printing controls

Source: Internet
Author: User

I haven't been back to my hometown for the new year for many years. I went back to my hometown with my wife and baby for a spring festival last year. When I came back and saw my blog for more than a month, I couldn't help but sigh that the time was so fast. Last year, I published a FastReport-based Web Printing control on the Internet, which attracted everyone's attention. Many friends leave a message to apply for free registration. I try to send the registration code to your email as quickly as possible, thank you. Today, we will talk about the registration of Web printing controls.

The Web Print control I developed is an Activex control. I have been thinking about how to register Activex controls. I think many friends who develop Activex controls will also encounter this problem, my ideas may provide some reference. We know that there are two Chinese-style registration methods for general software. One is to use a Dongle to write the relevant registration information into the dongle, and then verify it when the program is running. This method is generally used for commercial software. There are not a few dogs on the server. Fortunately, the dongle is USB, and a computer has several USB ports. I thought that dongle was a joint connection, and there were frequent dog fights, which made the network administrators have a headache. Another method is to read the hardware information of a computer, such as the serial number of a CPU, hard disk, or motherboard, the MAC address of the NIC, and then perform encryption operations. This method can save the cost of a dongle, many software products are cheaper than dongles, so we have to adopt this method.

These two registration methods are not suitable for Activex controls. Activex control is a program that is saved, downloaded, and run on the client. On the one hand, Activex control has the characteristics of B/S architecture and can be run in a browser as long as the user can connect to the server; on the other hand, it runs on the client computer as an independent program, and the server can only control it through JS. For the sake of the security of the B/S architecture program, the Actviex control of the client usually cannot actively communicate with the server, cannot control server resources. Activex control is not an independent software, but is used as a component of the software for other software to call. Therefore, Activex Control cannot use commercial software as a dongle. Activex controls, as part of the B/S architecture program, do not restrict the computers that users use, so they cannot adopt computer hardware encryption methods.

For Activex Control registration, I want to use a common method, that is, by domain name. We cannot limit which computer the user uses, however, you can read the browser URL when the webpage is opened, and then analyze whether the URL contains this domain name. Of course, this method also has certain restrictions, that is, the internal network, at present, many B/S programs are only used for internal network access and direct access using IP addresses. I have no better way to do this. Please provide suggestions. Of course, you can add another registration method for the printed control, that is, display the registration information during print preview, but do not print it during printing.

Based on the above ideas, I have designed two registration methods, one is to register by personal name or company name, this registration method will display a row of registration information in the upper right corner of the report preview, this row of registration information is not printed during printing. For example:

 

One is registered by domain name, and the domain name is registered by top-level domain name, such as hao.com, then www.hao.com, mail. hao.com and other domain names can be used. If the domain name is registered, the registration information is not displayed during report preview and printing. For example:

 

If the control is not registered, the function is the same as the registered one and there is no time limit. It only displays a row of unregistered information during preview or printing, such:

 

For registration by personal name, as long as a friend applies, I will continue to register for free. In my opinion, the most important thing about software is to use it. If it is used, it is an affirmation of developers and trust in developers. Of course, if you are for commercial purposes, please pay a little registration fee to indicate support for my development work. Software development work is very hard, and everyone knows. When you apply for registration, I do not know whether you are used for commercial purposes. This depends on the trust between us. I think that integrity is the most important thing in life, I believe that the vast majority of programmers, like me, are honest people. They really make a little money, and they don't have to make the two hundred yuan. Several of my registered friends have applied for commercial registration from me. Thank you very much! I have activated the QQ Group for timely notification of software updates. If you have any questions, please join the QQ group: 218392762 (all groups: 135506194 and 2: 150850837 are full, please join the three groups) or directly ask me: 12988672.

Reports preview and edit URL: http://www.xinyuerj.com/ASP/
Http://www.xinyuerj.com/ASP.NET/

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.