473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Open an existing Word file?

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
Nov 21 '05 #1
2 1917
* "=?Utf-8?B?Q29weW5QYXN0ZQ==?=" <Co********@discussions.microsoft.com> scripsit:
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 ?


Without what dialog box?

For office automation using .NET, take a look at
<URL:http://msdn.microsoft.com/office/>.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
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" <Co********@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.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

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Davis | last post by:
How do i or can I open a word document directly from Access? I would like to be able for the user to click a button on my form to open a word document and then also run a macro in Word. Thanks...
8
by: Radu | last post by:
Hi, I have the following problem: I open a recordset based on excel/csv files, but then I need to filter (in code) in order to extract only data pertaining to a specific person. This code is...
10
by: Antoine De Groote | last post by:
Hi there, I have a word document containing pictures and text. This documents holds several 'ABCDEF' strings which serve as a placeholder for names. Now I want to replace these occurences with...
16
by: Gary Wessle | last post by:
Hi please help with this. std::fstream iofs( f.c_str(), std::ios::in|std::ios::out ); std::cout << f << '\n' << iofs.is_open() << std::endl; puts out...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.