Re: Updating bookmarks in word after stream
- From: "Veign" <NOSPAMinveign@xxxxxxxxx>
- Date: Fri, 15 Jul 2005 10:57:02 -0400
Why make it an EXE? Convert the part of the code the processes the Word
documents into a DLL. This can then be called directly from your webpage as
needed...
--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
"Pete M" <PeteM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A69CAE77-00DE-464B-9189-1F877549D292@xxxxxxxxxxxxxxxx
> Ok... That is what I was asking, and that is what I was afraid of.
>
> At this point, I have an exe that can open the document template, update
the
> bookmarks, and save the file. I also have a dll that will stream the
document
> to the user. What is the best way for me to handle this process, given
that
> the user will be clicking a link in a browser? Is there a way, in the IIS
app
> (dll), to kick off the exe and, when the exe completes the document save,
> finish the dll code that handles the streaming?
>
> Thanks again!
> Pete
>
> "Veign" wrote:
>
> > What you are asking is there a way to update the bookmarks while you are
> > streaming the file? If you have a website that allows for the
customization
> > of Word documents based on a database and user selections. You really
have
> > no choice but to update the document on the server, save the document to
> > some temp file, stream this temp file to the end user.
> >
> > The stream does just that, stream the contents of the file over the
wire.
> >
> > --
> > Chris Hanscom - Microsoft MVP (VB)
> > Veign's Resource Center
> > http://www.veign.com/vrc_main.asp
> > --
> >
> >
> > "Pete M" <PeteM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:BBFA403A-EE37-4381-AB1B-C9925DF43222@xxxxxxxxxxxxxxxx
> > > Hello!
> > >
> > > I have a word doc template, that I need to populate with information
from
> > a
> > > database. However, I need to serve this over the Internet to my sales
> > staff.
> > >
> > > The word document has Bookmarks, which, locally, I would normally use
> > > CreateObject("Word.Application"), open the doc, and update each
bookmark
> > with
> > > .ActiveDocument.Bookmarks("Text1").Select and .Selection.Text =
> > > "[DB_Field]".
> > >
> > > Since I need to serve this over the Internet, I had to create an IIS
app,
> > > and I am able to serve the document using the adodb.stream method. But
now
> > > I'm stumped as to how to actually update the bookmarks using this
stream
> > > method. I had thought of writing a macro in word, but I don't think
thats
> > an
> > > option since the document is streamed to client machine, client
machine
> > isn't
> > > connected to the network nor has database access. I suppose I could
make a
> > > new document for each item, but our item database is 5,000+ items, and
I
> > > don't want word opening and closing on the server making documents all
> > day.
> > >
> > > Any help or insight would be greatly appreciated
> > >
> > > Thanks!
> > > Pete M
> >
> >
> >
.
- References:
- Updating bookmarks in word after stream
- From: Pete M
- Re: Updating bookmarks in word after stream
- From: Veign
- Re: Updating bookmarks in word after stream
- From: Pete M
- Updating bookmarks in word after stream
- Prev by Date: Re: Read Mails from OutLook Express
- Next by Date: Re: Using AND and OR together in sql
- Previous by thread: Re: Updating bookmarks in word after stream
- Next by thread: VB - SOAP ERROR
- Index(es):
Relevant Pages
|