R
RickH
Circular error messages--each way I try it points me to the other way...
Using Process.Start gives me an error saying I should use myProcess.Start
Using myProcess.Start gives error saying use Process.Start
I hope it's something obviuos that I'm missing because I'm too tired to see
it...
Really appreciate any help so I can finish this and go on vacation....
Public Class ThisWorkbook
Public Shared Sub LaunchForm()
Dim myProcess As New Process
Dim myApp As String = "c:\Program Files\InfoPath Form
Templates\XXXX\YYYYYYY.exe " & _
Globals.ThisWorkbook.ManifestNumber.ToString 'cmdline + 1 arg
Process.Start(myApp) 'Runtime complains that Process should be
MyProcess and vice versa
End Sub
End Class
Public Class ManifestMenu
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrint.Click
Globals.ThisWorkbook.Sheets(1).PrintOut(, , 1, , "EPSON LQ-590
ESC/P2")
ThisWorkbook.LaunchForm()
End Sub
End Class
Using Process.Start gives me an error saying I should use myProcess.Start
Using myProcess.Start gives error saying use Process.Start
I hope it's something obviuos that I'm missing because I'm too tired to see
it...
Really appreciate any help so I can finish this and go on vacation....
Public Class ThisWorkbook
Public Shared Sub LaunchForm()
Dim myProcess As New Process
Dim myApp As String = "c:\Program Files\InfoPath Form
Templates\XXXX\YYYYYYY.exe " & _
Globals.ThisWorkbook.ManifestNumber.ToString 'cmdline + 1 arg
Process.Start(myApp) 'Runtime complains that Process should be
MyProcess and vice versa
End Sub
End Class
Public Class ManifestMenu
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrint.Click
Globals.ThisWorkbook.Sheets(1).PrintOut(, , 1, , "EPSON LQ-590
ESC/P2")
ThisWorkbook.LaunchForm()
End Sub
End Class