Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Programming / February 2008

Tip: Looking for answers? Try searching our database.

VB.Net Resource and Publisher File Conversion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jess - 26 Feb 2008 23:22 GMT
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?
Ed Bennett - 27 Feb 2008 11:09 GMT
> 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.

Signature

Ed Bennett - MVP Microsoft Publisher
http://ed.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.