I have customization that we use to populate a word document with data from Vantage. The following code is the piece that opens my Word doc.
Quote = wrd.Documents.Open("Y:\Customers\Quotes\Quote Form.docx")
Although I declared wrd as a Word.App and Quote as a Word.Doc, the syntax should be consistent for opening the file.
Quote = wrd.Documents.Open("Y:\Customers\Quotes\Quote Form.docx")
Although I declared wrd as a Word.App and Quote as a Word.Doc, the syntax should be consistent for opening the file.
--- In vantage@yahoogroups.com, "Butch Menge" <bmenge@...> wrote:
>
> You might also try specifying the path to WinWord.exe:
>
>
>
> (e.g. Process.Start("C:\Program Files\Microsoft
> Office\OFFICE11\WinWord.exe", "C:\client803\client\Process\PR-09
> Purchasing Procedure.doc")
>
>
>
>
>
> Butch
>
>
>
> From: gmack110256 <genemack@...
> <mailto:genemack%40rocketmail.com> >
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Sent: Tue, February 8, 2011 3:42:38 PM
> Subject: [Vantage] Re: Event Button
>
> I took out the spaces in the file name, but it will still not open the
> file.
> these are the pop up messages I am getting;
>
> This file could not be found.
> (C:\...\PR09PurchasingProcedure.doc)
>
> This file could not be found.
> (C:\client803\client\Process\PR09.doc)
>
> This file could not be found.
> (C:\client803\...\PurchasingProcedure.doc).
>
> Any idea's as to why?
>
> Thank You
>
> Gene
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
> Bartosz Niemczewski <bartoszniemczewski@>
> wrote:
> >
> > File is opening when remove spaces.
> >
> >
> >
> > ________________________________
> > From: mmcwilliams22 <mmcwilliams22@>
> > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > Sent: Tue, February 8, 2011 2:28:14 PM
> > Subject: [Vantage] Re: Event Button
> >
> >
> > Do not use the dash or spaces in the file name.
> >
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
> "gmack110256" <genemack@> wrote:
> > >
> > > Iam trying to get a button to trigger an event on th epurchase order
> form.
> > >This will open a word document that contains the job instruction for
> >processing
> >
> > >purchase orders (this is for ISO stuff).
> > >
> > >
> > > I have put the button on the form ok and wrote the code as follows:
> > >
> > > 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" , "C:\client803\client\Process\PR-09
> Purchasing
> > >Procedure.doc")
> > >
> > > End Sub
> > >
> > > This will open word just fine, but then tells me the file path is
> incorrect.
> >I
> >
> > >have placed the file in the client folder on the client machine where
> I am
> > >testing this.
> > >
> > > It seems to be defaulting to the C drive on the client machine.
> > >
> > > My question is does this file have to sit on the same server as
> Vantage is on
> >
> > >or is something in my code not right?
> > >
> > >
> > > Thank You
> > > Gene
> > >
> >
> >
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>