Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Basically, I know the document name and the phrase I want to find. I do not
have bookmarks in the word docuemtn, and would prefer not to add them (lots of documents, lots of search phrases!). I know if I had a bookmark I could use location/wordDoc.doc#bookmark , but don't have bookmark. So, how do I do it? |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
link MS Word with auto navigate by find wrote:
Basically, I know the document name and the phrase I want to find. I do not have bookmarks in the word docuemtn, and would prefer not to add them (lots of documents, lots of search phrases!). I know if I had a bookmark I could use location/wordDoc.doc#bookmark , but don't have bookmark. So, how do I do it? From pure HTML, there's no way to do that. If you can use ASP, write a VBScript routine that uses automation to run the search. The technique for creating an automation object is essentially similar to that in http://word.mvps.org/FAQs/InterDev/C...WordFromXL.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
This is close, but I need to do it from a JSP. I can get close using a macro
in word and do location/wordDoc.doc /mMyMacro, but at that point I don't know if a way to pass the text I want to look for in (the macro would of course search for the given text). How do I pass parameters to the macro? "Jay Freedman" wrote: link MS Word with auto navigate by find wrote: Basically, I know the document name and the phrase I want to find. I do not have bookmarks in the word docuemtn, and would prefer not to add them (lots of documents, lots of search phrases!). I know if I had a bookmark I could use location/wordDoc.doc#bookmark , but don't have bookmark. So, how do I do it? From pure HTML, there's no way to do that. If you can use ASP, write a VBScript routine that uses automation to run the search. The technique for creating an automation object is essentially similar to that in http://word.mvps.org/FAQs/InterDev/C...WordFromXL.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Unfortunately there is no way to pass a parameter to a macro through
Word's command line. You'd have to use a text file that the script writes to a known location and that the macro looks for, or a known registry entry. I'm not sure what you can accomplish inside the Java sandbox -- I'm not a web programmer. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. On Wed, 8 Mar 2006 13:45:28 -0800, link MS Word with auto navigate by find osoft.com wrote: This is close, but I need to do it from a JSP. I can get close using a macro in word and do location/wordDoc.doc /mMyMacro, but at that point I don't know if a way to pass the text I want to look for in (the macro would of course search for the given text). How do I pass parameters to the macro? "Jay Freedman" wrote: link MS Word with auto navigate by find wrote: Basically, I know the document name and the phrase I want to find. I do not have bookmarks in the word docuemtn, and would prefer not to add them (lots of documents, lots of search phrases!). I know if I had a bookmark I could use location/wordDoc.doc#bookmark , but don't have bookmark. So, how do I do it? From pure HTML, there's no way to do that. If you can use ASP, write a VBScript routine that uses automation to run the search. The technique for creating an automation object is essentially similar to that in http://word.mvps.org/FAQs/InterDev/C...WordFromXL.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Word 97 in Windows XP to maintain formatting | Microsoft Word Help | |||
hard space between words. | Microsoft Word Help | |||
Converting Word Perfect forms to Word forms | Microsoft Word Help | |||
ms-word creates html dash problem for front page | Microsoft Word Help | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help |