We know that PDF is not Microsoft technology; it is created by Adobe system and widely used for document exchange, and based on post script. The .Net framework does not provide a library to easily handle PDF files in .Net. If we want to show a PDF file in a .Net form then we can use many approaches such as we can use webbrowser or we can use office library, but we can also use the Acrobat Reader control. 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 application and add the control to the C# Toolbox.
Right-click on any tab of toolbox and select "Choose Items... Select the "COM Components" tab and click the check "Adobe PDF Reader" and click OK.
You will see the Adobe PDF Reader control icon in the toolbox, then you can drag and drop this control onto your form.

And add a button and add code to its click event for opening PDF files.
- private void button1_Click(object sender, EventArgs e)
- {
- // Create object of Open file dialog class
- {
- OpenFileDialog dlg = new OpenFileDialog();
- // set file filter of dialog
- dlg.Filter = "pdf files (*.pdf) |*.pdf;";
- dlg.ShowDialog();
- if (dlg.FileName != null)
- {
- // use the LoadFile(ByVal fileName As String) function for open the pdf in control
- axAcroPDF1.LoadFile(dlg.FileName);
- }
- }
- }

Rudiawan YusufPosted Aug 25, 2022, 3:09 AM
If the file location is from the URL, is it possible?
Ilker EPosted Jul 6, 2021, 6:52 PM
I have registered interop files with gacutil and it worked. But i have trouble on client pc. It is not working on client? How to register interop files on client pc?
luis gonzalezPosted Oct 9, 2020, 9:34 PM
When using this option, somebody did not have a problem wanting to print and that the button simply did not do anything ???
Fabián RomoPosted Sep 20, 2020, 9:11 PM
What happens if I make an installer with my project, and install it on a PC that does not have acrobat reader?
ehsan rafiePosted Jul 7, 2018, 3:59 AM
Hello.i want to know how to show .pdf file from database to adobe PDF reader in win fourms?
Abhirup GhoshPosted Dec 8, 2016, 1:37 AM
Hello sir i am facing a problem.when i am opening the pdf it get stuck at the Initializing process.
Ajeet MishraPosted Jun 14, 2016, 8:30 AM
good
mahmoud eidPosted Oct 27, 2015, 4:06 AM
hello if i need writer in pdf after displaying ?
Arjun GryllsPosted Oct 20, 2015, 2:01 PM
what is axAcroPDF1 here?
Nesimi AliyevPosted Jan 9, 2015, 4:38 AM
thank you very much
Saber ShaikhPosted Jan 5, 2015, 4:04 AM
super thank you
CHAITANYA KIRAN KASANIPosted Dec 7, 2013, 6:17 AM
how to open three different paths pdf files in a single adobe PDF reader....axAcroPDF1.LoadFile(path1,path2,path3); pls help me.......
Dibakar GhoshPosted Jun 14, 2013, 8:05 AM
in c# I want to bring a number only to a text box by select and double click that number in a pdf file
manan shahPosted Nov 27, 2012, 3:44 AM
I do not want controls like zoom,print or any controls. I want only View the pdf.
Nehru KandasamyPosted Oct 9, 2012, 4:26 AM
Hi,How to Load the PDF file into the printpreviewdialog control.
Nehru KandasamyPosted Oct 9, 2012, 4:26 AM
Hi,How to Load the PDF file into the printpreviewdialog control.
Nehru KandasamyPosted Oct 9, 2012, 4:26 AM
Hi,How to Load the PDF file into the printpreviewdialog control.
Arindom ChandaPosted Sep 22, 2012, 6:06 AM
Hi, When i tried to change the size of pdf reader an extra form appear(while running the project). Why is that?
Amisha MakkarPosted Jul 25, 2012, 7:29 AM
how can we create a new pdf file and populate that pdf on button click event
Former memberPosted Jul 24, 2012, 12:57 AM
Great articles, I found a PDF Viewer component named Spire.PDFViewer without Acrobat Reader control.
Shital JainPosted Jul 13, 2012, 12:15 AM
Hi, thanks for code but I'm getteing some error while executing the code: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Can you please help me solve this error. Thanks.
Chiranjeevi SPosted Jul 4, 2012, 5:00 PM
hai, thnaks for the code, may i know how to disable the print option for the opened pdf file.
Manish TewatiaPosted Feb 9, 2011, 11:02 PM
Help full article....
bilal aliPosted Feb 9, 2011, 9:16 AM
Kinidly sir tell me abt this error Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))