J
jp2msft
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 isn't 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.
To load the file, I tried:
File.Open(global:
roject2.Properties.Resources.File1)
But that would 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 isn't 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.
To load the file, I tried:
File.Open(global:

But that would not compile.
Can I use the Resource object to store files that I can access in my
application? If so, how?