General Windows Form

PDF Reader in C# Windows Form

in this post, how is it created “PDF File Reader” in C# windows form Application? We Will create a winform app about this issue.

The .Net framework does not provide a library to easily handle PDF files in .Net.

Adobe provides an ActiveX COM control that you can add to the CSharp Toolbox.  It is a free Adobe Acrobat PDF Reader.

Start C# Windows Form Application and add the control to the C# Toolbox.

Step 1: Right-click on any tab of toolbox and select “Choose Items”.

 

Step 2: Select the “COM Components” tab and click the check “Adobe PDF Reader” and click OK.

Step 2: You will see the Adobe PDF Reader control icon in the toolbox, then you can drag and drop this control onto your form.  The contents of the PDF file will appear here.

Form Design

Step 3: Right click on Adobe PDF Reader and in the Properties window, set the Dock property as “Fill

 

Source Code:

openToolStripMenuItem_Click

exitToolStripMenuItem_Click

Output:

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.