Re: Open an existing Word file?

From: Bernie Yaeger (berniey_at_cherwellinc.com)
Date: 08/25/04


Date: Wed, 25 Aug 2004 08:50:56 -0400

Hi,

Opening the Word file itself is easy; the harder part will be using the
array as input for the table.

Here's what I do: I need to select random accounts and place the current
receivable balances for those accounts into a Word merge letter which
displays each selected account and that account's balances. I use a sql
server sp to zap and then create a table, containing the data I need - name,
account #, 0-30 days, 31-60 days, etc. Then I created the Word doc and
created a macro that loads that table into a table that displays as
necessary, and then of course merges so that each customer has a page. When
I run the routine, I do the sp rebuild as I mentioned above and then I call
the Word doc and macro, thus:
Case "welcome.doc"

macroname_ = "/mwelcome"

longstringname_ = globalmsopath & "\winword.exe " & "f:\imcapps\docs\" &
mergeletterbox.Text & " " & macroname_

Shell(longstringname_, AppWinStyle.NormalFocus, False, -1)

Now this opens the Word doc but not into a dialog box, as you wish. I'm
pretty sure I could do that also, by calling it from the dialog box and
constraining Word and a child of that dialog box (but I haven't tried that).

HTH,

Bernie Yaeger

"CopynPaste" <CopynPaste@discussions.microsoft.com> wrote in message
news:45DD20E3-CBE8-4EAA-B567-36ACF7430DE2@microsoft.com...
> Hi,
>
> I wrote a VB.net program that import a text file, which I will parse and
> place into arrays.
> My question is how to open an existing Word file without the Dialog Box
that
> has a 4x10 table and place the array[] into the table ?
>
> Thank you for any assistance.
>
> CopynPaste



Relevant Pages

  • importing data from access to Word and then sever the contact...
    ... user can then edit the word doc as desired and NOT, yes I said not, hav ethe ... access db info change in any way. ... once the Word file is edited and printed, it will be saved as a static ...
    (microsoft.public.word.vba.beginners)
  • Extracting styles from Word using VB6
    ... build an array of the styles used and write a TXT file. ... Below is the code I've written so far, processing the Word file character by ... ' Style As String ' ID string in ... Dim HNum As Integer ' Count of number of elements in H array ...
    (microsoft.public.word.vba.general)
  • Extracting styles from a Word file with VB6
    ... build an array of the styles used and write a TXT file. ... Below is the code I've written so far, processing the Word file character by ... ' Style As String ' ID string in ... Dim HNum As Integer ' Count of number of elements in H array ...
    (comp.lang.basic.visual.misc)
  • Re: Photograph
    ... Jay has referred you to the instructions that will do this the best you can ... if the Word doc is all you have, but in this instance I think I'd contact ... How can I most easily turn this photo (from a 2003 Word file) ...
    (microsoft.public.word.newusers)
  • Re: Reading Text
    ... Whoa, now, Patricia! ... If it is a Word file, it is binary, not Unicode! ... she's describing, as a byte array is NOT text, but binary. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading