Script für zusätzlichers Dokument drucken und mit ComboBox
Manuel Grenacher
Anwenden im GenerateScript auf dem Dokument:[quote]'Print Document
If Engine.isDoublePass Then
Dim MyProcess As New Process
Dim Buttons As MessageBoxButtons = MessageBoxButtons.YesNo
Dim Result As DialogResult
Result = MessageBox.Show("Will you print the pdf", "Print PDF", Buttons)
If Result = System.Windows.Forms.DialogResult.Yes Then
MyProcess.StartInfo.CreateNoWindow = False
MyProcess.StartInfo.Verb = "print"
MyProcess.StartInfo.FileName = "C:excel_fibu.xlsx"
MyProcess.Start()
MyProcess.WaitForExit(10000)
MyProcess.CloseMainWindow()
MyProcess.Close()
End If
End If
0
Please sign in to leave a comment.
Comments
0 comments