c# - Programmatically adding Adobe PDF viewer to new tab -


i'd able open multiple documents @ same time in tabs, this, need able programmatically. how did following code:

        tabpage tp = new tabpage("new document");         richtextbox rtb = new richtextbox();         rtb.dock = dockstyle.fill;          tp.controls.add(rtb);         tabcontrol1.tabpages.add(tp);` 

is how i'd add pdf viewer in place of richtextbox. i'm not sure how add viewer programmatically. or push in right direction great.

ok. download itextsharp.dll

unblock dll. right click in itextsharp.dll. go properties. @ bottom click on unblock.

right click in project in solution exploral. click add refference. select location saved itextsharp.dll. add in project.

now write following lines.

pdfreader reader             = new pdfreader("your content here"); 

hope help. can visit link. thanks


Comments