469,326 Members | 1,359 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

Can you stuff data into a word doc w/o word?


I've inherited a report that is > 100 pages long, most of it is typewritten
and doesn't change. The ideal situation would be to insert the data into
fields in a word doc.

The issue is that this project is being distributed to some machines with
the run-time. Do you have to have word on a computer in order to stuff data
into a word doc?

Thanks,

Nov 13 '05 #1
8 60132
Oh (duh), I can distribute the word viewer too...
Nov 13 '05 #2
On Sat, 29 Jan 2005 12:03:11 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:
Oh (duh), I can distribute the word viewer too...


You can't use the Word viewer to write data to a Word document, right?
Nov 13 '05 #3
On Sat, 29 Jan 2005 11:49:54 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:

I've inherited a report that is > 100 pages long, most of it is typewritten
and doesn't change. The ideal situation would be to insert the data into
fields in a word doc.

The issue is that this project is being distributed to some machines with
the run-time. Do you have to have word on a computer in order to stuff data
into a word doc?

Thanks,


Thre are now XML versions of the MS Office document formats. You can use the
MSXML2 libraries to manipulate XML documents. If you have a Word Document
file containing the fields you want, saved in XML format, and distributed with
the application, you should be able to use MSXML to locate the field tags, and
replace the text content within them.
Nov 13 '05 #4


"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:tn********************************@4ax.com...
On Sat, 29 Jan 2005 11:49:54 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:

You can't use the Word viewer to write data to a Word document, right?
Its just to allow the user to see/print the doc, and can be included with
the runtime.

Thre are now XML versions of the MS Office document formats. You can use
the
MSXML2 libraries to manipulate XML documents. If you have a Word Document
file containing the fields you want, saved in XML format, and distributed
with
the application, you should be able to use MSXML to locate the field tags,
and
replace the text content within them.


That's a good suggestion. Something else I could do would be to format a
nice report using Front Page, in HTML, and basically do the same thing.

Thanks,

Mike


Nov 13 '05 #5
On Sun, 30 Jan 2005 16:41:06 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:

....>
Thre are now XML versions of the MS Office document formats. You can use
the
MSXML2 libraries to manipulate XML documents. If you have a Word Document
file containing the fields you want, saved in XML format, and distributed
with
the application, you should be able to use MSXML to locate the field tags,
and
replace the text content within them.


That's a good suggestion. Something else I could do would be to format a
nice report using Front Page, in HTML, and basically do the same thing.


Especially if the page was strict XHTML, which MSXML could manipulate without
any other pre-processing.
Nov 13 '05 #6


"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:dq********************************@4ax.com...
On Sun, 30 Jan 2005 16:41:06 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:

...>
Thre are now XML versions of the MS Office document formats. You can
use
the
MSXML2 libraries to manipulate XML documents. If you have a Word
Document
file containing the fields you want, saved in XML format, and
distributed
with
the application, you should be able to use MSXML to locate the field
tags,
and
replace the text content within them.


That's a good suggestion. Something else I could do would be to format a
nice report using Front Page, in HTML, and basically do the same thing.


Especially if the page was strict XHTML, which MSXML could manipulate
without
any other pre-processing.


What is MSXML? Are there objects I can deal with in Access? Are there built
in commands to search out these tags and substitute data? I'm using 2002, is
there any difference in these regards in 2003? -- Mike


Nov 13 '05 #7
On Sun, 30 Jan 2005 20:16:07 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:


"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:dq********************************@4ax.com.. .
On Sun, 30 Jan 2005 16:41:06 -0800, "Mike Turco"
<mi*******@yahoo-no-spam-4-me.com> wrote:

...>
Thre are now XML versions of the MS Office document formats. You can
use
the
MSXML2 libraries to manipulate XML documents. If you have a Word
Document
file containing the fields you want, saved in XML format, and
distributed
with
the application, you should be able to use MSXML to locate the field
tags,
and
replace the text content within them.

That's a good suggestion. Something else I could do would be to format a
nice report using Front Page, in HTML, and basically do the same thing.


Especially if the page was strict XHTML, which MSXML could manipulate
without
any other pre-processing.


What is MSXML? Are there objects I can deal with in Access? Are there built
in commands to search out these tags and substitute data? I'm using 2002, is
there any difference in these regards in 2003? -- Mike


MSXML is a library that's installed if IE is installed. In the Access VBE,
select Tools -> References, and scroll down until you see "Microsoft XML,
v3.0" (I see it's up to v3 now). Check the box next to it, and you can use
the library in your program. To see what objects and methods are available,
go to the Object Browser (F2 from the VBE), and choose the library from the
drop-down in the upper-left. You can find documentation for the MSXML API on
msdn.microsoft.com (oh - looking there, I see they're up to v4).
http://msdn.microsoft.com/library/de...l/xmmscXML.asp
Nov 13 '05 #8
On Jan 31 2005, 03:10 am, Steve Jorgensen <no****@nospam.nospam> wrote in
news:6m********************************@4ax.com:
You can find documentation for the MSXML API on
msdn.microsoft.com (oh - looking there, I see they're up to v4).


The one that comes with Office 2003 is labeled v5.

--
remove a 9 to reply by email
Nov 13 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Matt W | last post: by
4 posts views Thread by Paolo | last post: by
4 posts views Thread by Dan | last post: by
2 posts views Thread by Mux | last post: by
1 post views Thread by ampeloso | last post: by
13 posts views Thread by liujiaping | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.