I had to use triple quotes in my pathname with spaces...Process.Start
("WINWORD.EXE","""\\EPISERVE\epicor\Xybix Epicor Process
Scripts\Xybix Sales Order Entry Script.doc""")
("WINWORD.EXE","""\\EPISERVE\epicor\Xybix Epicor Process
Scripts\Xybix Sales Order Entry Script.doc""")
--- In vantage@yahoogroups.com, "ofcwiz" <DavidH@...> wrote:
>
> Here's my code:
> Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args
As
> System.EventArgs) Handles btnEpiCustom1.Click
> '// ** Place Event Handling Code Here **
> Process.Start("WINWORD.EXE","\\EPISERVE\epicor\Xybix Epicor
Process
> Scripts\Xybix Sales Order Entry Script.doc")
> End Sub
>
> Yes there are spaces. I thought putting the code in quotes would get
> the job done.
>
> DaveH
> Xybix
> 8.03.406 P
>
> --- In vantage@yahoogroups.com, "Michael McWilliams"
> <mmcwilliams22@> wrote:
> >
> > Do you have any spaces in the path maybe a folder that uses
spaces
> > in the naming. That could be causing the problem. Should work
just
> > like the excel example.
> >
> > --- In vantage@yahoogroups.com, "ofcwiz" <DavidH@> wrote:
> > >
> > > Steven,
> > >
> > > I tried this and was able to open WORD with the mouse click but
> > it's
> > > unable to find the document. I tried putting the path in the
> > > "Spreadsheet Name" but it does not work. Is a path possible with
> > > Process.Start(,?), or is there a network folder the document
must
> > be
> > > in, or is there a configuration setting for the path?
> > >
> > > Thank you for your assistance,
> > > DaveH
> > > 8.03.406 Progress
> > >
> > >
> > > --- In vantage@yahoogroups.com, Steven Gotschall <sgotschall@>
> > wrote:
> > > >
> > > > I've done this for Excel, it should work the same for Word.
> > > >
> > > > On the click event for the button use:
> > > >
> > > > Process.Start( "Excel.exe" , "Spreadsheet Name")
> > > >
> > > >
> > > > Steven G.
> > > >
> > > > ________________________________
> > > > From: ofcwiz <DavidH@>
> > > > To: vantage@yahoogroups.com
> > > > Sent: Thursday, October 30, 2008 1:25:48 PM
> > > > Subject: [Vantage] hyperlink to Word document
> > > >
> > > >
> > > > Has anybody placed a button on a custom form such as Order
> > Entry,and
> > > > set it up to open a Word document? We would like to put a
button
> > on
> > > > our custom SO form and click on it to open up the instruction
> > script
> > > > for entering a Sales Order. Which is a Word document.
> > > >
> > > > I'm aware I can put a link in the Favorites menu but we were
> > hoping to
> > > > get closer to the input form.
> > > >
> > > > Thanks,
> > > > DaveH
> > > > Xybix
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> >
>