U
Uranthos
Within my .Net application I need to open a Publisher document and then print
it out to a PDF printer. So my code as below
<--snip-->
dim pubApp = New Microsoft.Office.Interop.Publisher.Application
dim pubDoc = Microsoft.Office.Interop.Publisher.Document
pubDoc = pubApp.Open(FileName:=InputFileName, ReadOnly:=False,
AddToRecentFiles:=False,
SaveChanges:=Interop.Publisher.PbSaveOptions.pbDoNotSaveChanges)
<--snip-->
This is where it fails regardless of what contents the file contains and the
only error that i am getting is 'Publisher cannot open the file'. Does anyone
know what could be causing this to happen I am using .Net 2003 Office 2003
with the PIA's as the bridge beteen the two.
Thanks in advance
Matthew White
it out to a PDF printer. So my code as below
<--snip-->
dim pubApp = New Microsoft.Office.Interop.Publisher.Application
dim pubDoc = Microsoft.Office.Interop.Publisher.Document
pubDoc = pubApp.Open(FileName:=InputFileName, ReadOnly:=False,
AddToRecentFiles:=False,
SaveChanges:=Interop.Publisher.PbSaveOptions.pbDoNotSaveChanges)
<--snip-->
This is where it fails regardless of what contents the file contains and the
only error that i am getting is 'Publisher cannot open the file'. Does anyone
know what could be causing this to happen I am using .Net 2003 Office 2003
with the PIA's as the bridge beteen the two.
Thanks in advance
Matthew White