Re: Updating bookmarks in word after stream

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
> >
> >
> >


.



Relevant Pages

  • Re: Updating bookmarks in word after stream
    ... At this point, I have an exe that can open the document template, update the ... bookmarks, and save the file. ... > of Word documents based on a database and user selections. ... stream this temp file to the end user. ...
    (microsoft.public.vb.general.discussion)
  • Re: Joining files
    ... dll just copy it to the directory with your exe. ... file and transmit them one at a time but I would rather somehow stream ... all the files into a single file and then transmit this one file. ... my problem is that I am distributing the .exe without any ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • Re: DLL pass vector by value crash
    ... The prototype for testfunc is a by-value copy, so it has to make a copy of the value. ... Are you using static linking for either the .exe (if so, it probably won't work correctly, ... clearly using the shared CRT DLL for the DLL you are constructing. ... no crash occurs in either config. ...
    (microsoft.public.vc.mfc)
  • Re: DLL pass vector by value crash
    ... stack of the exe and may allocate default member element on the exe heap. ... If this is a dangerous situation, the simple app I set up calling testFunc() ... in a dll did not crash. ... msvcr90.dll!free and access the source code of free.c. ...
    (microsoft.public.vc.mfc)