PDA

View Full Version : Writing to a MS Word form


jerichardson
03-18-2008, 09:55 AM
I'm by no means a programmer but I've found AutoPlay to be very user friendly. I've tech savvy but have never really hit the programming side, although I'm trying to learn.

Anyway, what I'm trying to do is this:

I have a basic application that consolidates all of our programs that we install on the corporate laptops. Basically, all it does is launches the prgrams with a simple button. There aren't multiple pages, just one page with a bunch of buttons. What I want it to do is:

1.) I want to ad 4 input boxes. I want each of them to go to a separate text form field within a MS Word document.

2.) When I click one of the buttons to launch the installer I want that to check off a box within the MS Word form.

I have tried searching for these answers but have so far come up short.

Anyone have any ideas?

ShadowUK
03-18-2008, 11:38 AM
You might need a DLL or something to read from Word files.

jerichardson
03-18-2008, 12:04 PM
I want to write to the word files ... not read from the word files :)

ShadowUK
03-18-2008, 12:11 PM
You still might need a DLL to write in word format.

jerichardson
03-18-2008, 01:46 PM
How do I go about doing that?

RizlaUK
03-18-2008, 01:53 PM
you can access the ms word activex control with LuaCOM, no need for a dll

LuaCOM
http://www.icynorth.com/luacom/index.html

there is a ms word example in the docs

Some LuaCOM/MSWord examples

http://www.indigorose.com/forums/showpost.php?p=36372&postcount=2
http://www.indigorose.com/forums/showpost.php?p=48682&postcount=5

LuaCOM won't let you load a Word Doc into your project visually. You can load it and manipulate it as an object through COM Automation though. If you want to embed the document, I think you best bet would be to open the document in the Web Object.

hope that helps