Hi
My vb.net opens a word document from a word template. I am trying to find
when the document is saved by the user so I can make a history in my vb.net
app. Here is how I think it may work;
Open a word doc from vb.net app, pass ref of a vb.net event handler to the
word doc, in word, use FileSave macro to call the vb.net event handler when
the document is saved. The vb.net event handler creates history in vb.net
app.
My questions are; a) Is the above viable? b) Could someone please show me
what coding accomplishes above?
Thanks
Regards 5 2849
Try very hard to avoid having code running in two places. Debugging and
maintenance can get very frustrating. You should be able to do it all from
the VB end: Word, as an object, raises enough events that you can track
what's going on:
Dim with events WordApp as Word.Application
That way, you don't need any code at the Word end.
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
My vb.net opens a word document from a word template. I am trying to find when the document is saved by the user so I can make a history in my
vb.net app. Here is how I think it may work;
Open a word doc from vb.net app, pass ref of a vb.net event handler to the word doc, in word, use FileSave macro to call the vb.net event handler
when the document is saved. The vb.net event handler creates history in vb.net app.
My questions are; a) Is the above viable? b) Could someone please show me what coding accomplishes above?
Thanks
Regards
Does word 2000 support filesave event?
Thanks
Regards
"Jezebel" <gr****@play.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Try very hard to avoid having code running in two places. Debugging and maintenance can get very frustrating. You should be able to do it all from the VB end: Word, as an object, raises enough events that you can track what's going on:
Dim with events WordApp as Word.Application
That way, you don't need any code at the Word end. "John" <jo**@nospam.infovis.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
My vb.net opens a word document from a word template. I am trying to
find when the document is saved by the user so I can make a history in my vb.net app. Here is how I think it may work;
Open a word doc from vb.net app, pass ref of a vb.net event handler to
the word doc, in word, use FileSave macro to call the vb.net event handler when the document is saved. The vb.net event handler creates history in
vb.net app.
My questions are; a) Is the above viable? b) Could someone please show
me what coding accomplishes above?
Thanks
Regards
Hi John,
If you create a macro with the name of one of Word's built-in commands, your
macro will run whenever that command is executed (in place of the command)
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
"John" <jo**@infovis.co.uk> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl... Does word 2000 support filesave event?
Thanks
Regards
"Jezebel" <gr****@play.net> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Try very hard to avoid having code running in two places. Debugging and maintenance can get very frustrating. You should be able to do it all
from the VB end: Word, as an object, raises enough events that you can track what's going on:
Dim with events WordApp as Word.Application
That way, you don't need any code at the Word end. "John" <jo**@nospam.infovis.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
My vb.net opens a word document from a word template. I am trying to find when the document is saved by the user so I can make a history in my
vb.net app. Here is how I think it may work;
Open a word doc from vb.net app, pass ref of a vb.net event handler to the word doc, in word, use FileSave macro to call the vb.net event handler when the document is saved. The vb.net event handler creates history in vb.net app.
My questions are; a) Is the above viable? b) Could someone please show me what coding accomplishes above?
Thanks
Regards
It fires the DocumentBeforeSave and DocumentBeforeClose events amongst
others.
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl... Does word 2000 support filesave event?
Thanks
Regards
"Jezebel" <gr****@play.net> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Try very hard to avoid having code running in two places. Debugging and maintenance can get very frustrating. You should be able to do it all
from the VB end: Word, as an object, raises enough events that you can track what's going on:
Dim with events WordApp as Word.Application
That way, you don't need any code at the Word end. "John" <jo**@nospam.infovis.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi
My vb.net opens a word document from a word template. I am trying to find when the document is saved by the user so I can make a history in my
vb.net app. Here is how I think it may work;
Open a word doc from vb.net app, pass ref of a vb.net event handler to the word doc, in word, use FileSave macro to call the vb.net event handler when the document is saved. The vb.net event handler creates history in vb.net app.
My questions are; a) Is the above viable? b) Could someone please show me what coding accomplishes above?
Thanks
Regards
I think it does not offer DocumentAfterSave (unless I have missed it). In
which case I guess I will go back to my original strategy.
Regards
"Jezebel" <gr****@play.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... It fires the DocumentBeforeSave and DocumentBeforeClose events amongst others.
"John" <jo**@nospam.infovis.co.uk> wrote in message news:ue**************@TK2MSFTNGP10.phx.gbl... Does word 2000 support filesave event?
Thanks
Regards
"Jezebel" <gr****@play.net> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Try very hard to avoid having code running in two places. Debugging
and maintenance can get very frustrating. You should be able to do it all from the VB end: Word, as an object, raises enough events that you can
track what's going on:
Dim with events WordApp as Word.Application
That way, you don't need any code at the Word end. "John" <jo**@nospam.infovis.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi > > My vb.net opens a word document from a word template. I am trying to find > when the document is saved by the user so I can make a history in my vb.net > app. Here is how I think it may work; > > Open a word doc from vb.net app, pass ref of a vb.net event handler
to the > word doc, in word, use FileSave macro to call the vb.net event
handler when > the document is saved. The vb.net event handler creates history in vb.net > app. > > My questions are; a) Is the above viable? b) Could someone please
show me > what coding accomplishes above? > > Thanks > > Regards > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Luis |
last post by:
I have a few input buttons at the end of an asp page. When I change the
mime-type of the asp page to create a Word Document which the user can
save, the input buttons are not displayed.
Is there a...
|
by: John |
last post by:
Hi
I have a feature to open word documents from my access app. Is it possible
that when a user saves a word document, my access app gets the name under
which the document is saved and the date...
|
by: John |
last post by:
Hi
I have a feature to open word documents from my vb.net app. Is it possible
that when a user saves a word document, my vb.net app gets the name under
which the document is saved and the date...
|
by: Dan |
last post by:
Is there a way to obtain the last page visited? I don't want to go to
that page, I just want to be able find out what page they came from,
the url of that page. Is this possible?
|
by: Kevin K |
last post by:
Hi,
I'm having a problem with extracting text from a Word document using
StreamReader. As I'm developing a web application, I do NOT want the server
to make calls to Word. I want to simply...
|
by: funeeldy |
last post by:
I need to locate a particular table in a document. I cannot hardcode the table number since it could be different in every doc.
I do have some header text that comes right before it consistently,...
|
by: ljungers |
last post by:
Wondering if somone knows how to open a Access report in Word or export it to Word. Currently I'm opening and printing a report using VBA with the following command (DoCmd.OpenReport "TheReportName",...
|
by: etuncer |
last post by:
Hello All,
I have Access 2003, and am trying to build a database for my small
company. I want to be able to create a word document based on the data
entered through a form. the real question is...
|
by: Max |
last post by:
I recently moved to ASPnet Ext 3.5
What I can't get with Ajax and History browser managemet is this:
User fills some fields (dropdown and textbox) on page 1 (all are in an
update panel)
User...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |