Hello Bob,
The procedure would be something like this:
To copy the file:
1. Write a word macro using the Visual Basic FileCopy function. From memory
it is simply FileCopy(sourceFilename, destinationFilename). That's it.
2. Have the user run that macro whenever the file should be copied.
To automatically insert the file into the word document:
3. Write code that uses the objects provided with the AskSam SDK to insert
the file into the AskSam document. This part would be somewhat more
challenging than the first two steps. It would require that the programmer
understands how to use the AskSam SDK, which wouldn't be hard for a
competent programmer, but may take some time.
Some issues to consider are:
* Do you want the copied file to overwrite the previously copied file. Do
you want it to use a new name each time? Do you want to prompt the user to
enter a filename, or to do so automatically?
* What kind of checking do you want to do to ensure that the file was copied
or inserted successfully?
If you'd like me to write the entire thing for a small fee, send me an
email.
Regards,
Tristan Jenkins
----- Original Message -----
From: "Bob Haroche" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Friday, February 07, 2003 9:57 AM
Subject: Integrating MS Word with AskSam 5
> Hello all,
>
> I'm new to the list so I apologize if this has been previously
> covered. A search of the archives revealed the question was asked but
> not answered specifically.
>
> I'd like the ability for a user to run a macro within MS Word which
> would automatically send the document across a LAN either directly
> into the AskSam database on the server /or/ to a specified directory
> on the server from which the db administrator would later manually
> import into AskSam.
>
> I understand that AskSam 5 Pro supports VB functions. I myself don't
> know VB though I could bring a VB programmer on board for this task.
>
> My question is whether people have done this before, and what
> resources (code samples?) they might be able to share or point me in
> the right direction.
>
> Thanks in advance.
>
> -------------
> Regards,
> Bob Haroche
> O n P o i n t S o l u t i o n s
> www.OnPointSolutions.com
|