C # display PDF files, winform open PDF files and display them in the form. If the form is closed, an error is returned. C # display the PDF file. winform open the PDF file and display it in the form.

Source: Internet
Author: User
C # display the PDF file. winform opens the PDF file and shows how to use the PDF file in the form. For more information, see this address. I only collect the solution for error reporting after the form is closed
  //   handle  Program  errors after PDF is disabled  [system. runtime. interopservices. dllimport ( "  ole32.dll  "  )]   static   extern   void   cofreeunusedlibraries ();   private   void  form=formclosing ( Object   sender, formclosingeventargs e) {axacro%1.dispose ();  ///   system. windows. forms. application. doevents ();   cofreeunusedlibraries () ;} 

reference: http://bbs.csdn.net/topics/320030490#post-380643137

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.