Question WIndows Form with pdf viewer


New member
Dec 28, 2016
Programming Experience
I am trying to make a Windows Form Application to view some .pdf files that I have added to the Resources folder in my project.
I am using a "menustrip to list my .pdf files. I can not figure out how to open ie. the ACC.pdf when klick on the menuitem "ACC"
My only previous experience with programming from arduino, so this was difficult :)

28-12-2016 20-40-00.jpgForm1.jpg
Set the resource to copy to output directory, and use Loadfile method to load the file from file path to Adobe reader component.
Why not? You need to have a pdf file for that component to load. When you set that resource to copy to output directory the resource will be a file in that directory that you can load. As the resource is in a Resource folder in project it will also be in a Resource folder in project output directory.
Top Bottom