joe_pool_is
Well-known member
How would I load a file from a resource?
We have a PDF-like file that is formatted for printing the our label forms (it isnt quite like a PDF, but pretty close. It lets us enter text that comes out as a barcode).
Anyway, the file often gets lost or deleted by someone fooling around with the PC when they should not be.
To resolve this problem, I inserted the file under Project Properties > Resources > Files section.
Im trying to do something like this:
Obviously, this will not compile.
Can I use the Resource object to store files that I can access in my application? If so, how?
We have a PDF-like file that is formatted for printing the our label forms (it isnt quite like a PDF, but pretty close. It lets us enter text that comes out as a barcode).
Anyway, the file often gets lost or deleted by someone fooling around with the PC when they should not be.
To resolve this problem, I inserted the file under Project Properties > Resources > Files section.
Im trying to do something like this:
Code:
File.Open(global::Project2.Properties.Resources.File1);
Can I use the Resource object to store files that I can access in my application? If so, how?