Embed the controls developed by the C # language inside the Web page

Source: Internet
Author: User

This article needs you to be familiar with C#,activex

Back to a reader's letter, Jane talked about embedding our controls in the Web page (we can implement the application into the Web page). As for this small control, the function is not worth mentioning. As for the code, we look at the controls written in C #.

Wang Jian, hello!

I'm sorry to have to reply to you now. I'm very sorry. The problem you are talking about can be achieved. I have now turned to the C # language, and I want to be in. NET platform to show you, do not know what you think? Of course, you can also use C + + to complete. Principle.

If you use it. NET to develop controls, you can also embed them in a Web page. At present, I am trying to put the program on the Web page, so that people better, more convenient use of our network. Now I want to create a Windows Control Library project name "Pdfcontrol" and embed the Acrobat control for ActiveX controls inside the control window. In this project, I changed the default name of the program to "Pdfctl", here to remind you to pay attention to the original code of the Web page. Now let's take a look at the effect chart:

Figure I

Note: We apply the Acrobat control for ActiveX controls to the "Pdfcontrol" control, and then apply the Pdfcontrol control to our web page.

When you click on the "Chang Size" button, we will see the following picture:

As for the specific code, I sent the attachment as well as the "Acrobat Control for ActiveX" controls (version 4.0). If you have any questions, you can continue to write and promise that you won't be able to reply so long. :)

What is needed is that our operations are largely limited and you need to run the caspol-s off command at the Visual Studio. NET 2003 command Prompt for the effect shown above. Also, you need to set up a virtual directory in IIS, and in its properties, select Execute permissions as "pure script." In addition, the control we are referencing is a control that is registered with Acrobat Reader 4.0, and no other high version.

Here is a letter from the friend:

Sir/madam:

Hello!

I read your article "do a PDF format E-book browser-talk about the use of a class of controls" is very enlightening. There is a question I would like to ask:

I want to do an ActiveX control to display a PDF file in a Web page, and after reading your article, I want to try to add the Acrobat control for ActiveX controls to my ActiveX control, okay? Will there be any effect on the use of the Internet?

Excuse me, thank you.

Related Article

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.