VB.Net Resource and Publisher File Conversion

J

Jess

I need to generate a Publisher file based off an existing file. I am able to
open up the file using Publisher.Application.open() when the file is sitting
around on my hard drive , but that only accepts a String for a filename. If I
wanted include the base file into my project as a resource, how could I get a
Publisher.Document from the Byte Array that Visual Studio saves my resource
as?
 
E

Ed Bennett

Jess said:
I need to generate a Publisher file based off an existing file. I am able to
open up the file using Publisher.Application.open() when the file is sitting
around on my hard drive , but that only accepts a String for a filename. If I
wanted include the base file into my project as a resource, how could I get a
Publisher.Document from the Byte Array that Visual Studio saves my resource
as?

The only way I know of of doing this would be to dump the byte array to
a temporary file with a name ending in .pub, then supply the filename of
that to the Open() method.
 
Top