AdobePDFSilent.vb example problems
Hi all,
I have been trying to get the 'adobepdfsilent' example to work without any success. When i run it it jams up in the print process routine 'PrinttoAdobePDF'.
if i rem out the 'createnowindow' and 'windowstyle properties I see the printer dialog and can click through it but if it's left in silent mode it just stops. I'm assuming it's actually waiting on something.
Private Sub PrintToAdobePDF(ByVal InputfilePath As String)
'Prints InputFilePath to the AdobePDF printer.
'Since we just gathered all this info programmatically,
'this function assumes the file is present, that it has an
'associated application and that the current user has print privileges.
'Define properties for the print process
Dim pProcInfo As New ProcessStartInfo
pProcInfo.FileName = InputfilePath
pProcInfo.Verb="Print"
'Make process invisible *** REM THESE OUT AND IT WORKS WITH PROMOPTS ***
pProcInfo.CreateNoWindow = True
pPRocInfo.WindowStyle = ProcessWindowStyle.Hidden
'start print process
Dim pMyProc As Process = Process.Start(pProcInfo)
pMyProc.WaitForExit()
End Sub
Can anyone help me out?. If it doesnt work can someone point me to an SDK that will work
