VSTO Excel launching external app from ActionPane error

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
 
C

Cindy M.

Hi =?Utf-8?B?Umlja0g=?=,

I suggest a VBA newsgroup probably isn't optimal for this question. There's a
VSTO forum
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=16&SiteID=1&PageID=0

A VSTO newsgroup on this server

And an office.developer.automation newsgroup on this server.

Chances are better to get an answer concerning the .NET framework in any of
those...
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

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top