How to open a pdf file that has been embedded as a resource

  • Thread starter Thread starter Shawn Yates
  • Start date Start date
S

Shawn Yates

Hello, I am currently learning VB and am still a beginner. I have
embedded a pdf file as a resource and now I want to be able to view it
in adobe reader by pushing a button. I have searched and searched but
haven't found any answers. Is it even possible, and if so, how is it
done?
Thanks
 
Shawn Yates said:
Hello, I am currently learning VB and am still a beginner. I have
embedded a pdf file as a resource and now I want to be able to view it
in adobe reader by pushing a button. I have searched and searched but
haven't found any answers. Is it even possible, and if so, how is it
done?

You'd have to extract the data from the resource to a file and then use
'Process.Start(<file name>)' to open the file. However, what are the
reasons to embed the file into the binary?
 
Herfried K. Wagner said:
You'd have to extract the data from the resource to a file and then use
'Process.Start(<file name>)' to open the file. However, what are the
reasons to embed the file into the binary?

I had the application working fine using the shell function and just
opening the files that way from a shared folder. Not everyone can have
access to the shared folder, however, and I really don't want to copy
the files on to everyone's computer.
 
Back
Top