Re: Open an existing Word file?
From: Bernie Yaeger (berniey_at_cherwellinc.com)
Date: 08/25/04
- Next message: eman: ".NET DLL for VB6 App"
- Previous message: Brian Henry: "proper case"
- In reply to: CopynPaste: "Open an existing Word file?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: eman: ".NET DLL for VB6 App"
- Previous message: Brian Henry: "proper case"
- In reply to: CopynPaste: "Open an existing Word file?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|