W
wilsond
Hi all,
I've been tasked with writing a transcription program. I have to use Word. I
have some questions about programming in Word. I've done a bit of automation
in the past. The basics are that the application will be a fat client
residing on the users machine. The app starts with a login screen. The user
types in a user name/password and clicks a button. The username and password
are submitted to a webserver for authentication and profile retrieval. Upon
successful logon, the app will start an instance of Word. There will be a
custom toolbar with all the buttons the user will need to request new jobs,
etc. All data needs to be transferred back and forth through an SSL
connection to the web server. Will be utilizing Word 2003. I apologize in
advance for my lack of knowledge in Word terminology. Anyhoo...
Toolbars. Can I create a custom toolbar (with my own custom actions that
will be performed upon clicking) that will only be available (visible?) under
certain circumstances. Say, perhaps, when a certain template was loaded? I
understand I can put the toolbars in a template document ( .dot file). Is
this correct? I don't particularly want to do that. There will be a "generic"
template but there will also be at least 4 different templates for each
client. The templates can not be stored on the local drive either (they must
be "fed" to the application upon user request). I was thinking an Add-in
here. But, I don't want the toolbar to load if say, the user starts Word the
"normal" way to type a letter to grandma, etc.
Can I load a document template from a url? Or I guess maybe the correct
question would be: Can I create a new document from a template that is stored
on a webserver? I need to do this without
"prompting" the user at all. The template, I suppose, could be saved
temporarily on the users hard-drive and then loaded from the hard-drive. I
would like to load it from the url and not have to save it to the hard-drive
first.
How can I save a document back to a web server? I cannot save it back to a
drive letter:\path because there won't be any mapped network shares. I cannot
allow the user to save the document on their local hard-drive either. I do
not want to "prompt" the user.
The document templates will have "fields" or "tags". For example, lets say
there are 5 tags: tag1, tag2, ...tag5. Let's say the cursor is in between
tag2 and tag3. Is there anyway I can capture the "tab" key such that when the
user presses it, it tabs between tags? For instance, say the cursor is in the
above mentioned place, the user presses the tab key and the cursor moves to
the "start" of the next tag (tag3). If the user presses "shift + tab" the
cursor moves back to the previous tag (tag1).
That's all I have for now. I'm sure I'll be back. Thanks a bunch for any
suggestions, hints.
David
I've been tasked with writing a transcription program. I have to use Word. I
have some questions about programming in Word. I've done a bit of automation
in the past. The basics are that the application will be a fat client
residing on the users machine. The app starts with a login screen. The user
types in a user name/password and clicks a button. The username and password
are submitted to a webserver for authentication and profile retrieval. Upon
successful logon, the app will start an instance of Word. There will be a
custom toolbar with all the buttons the user will need to request new jobs,
etc. All data needs to be transferred back and forth through an SSL
connection to the web server. Will be utilizing Word 2003. I apologize in
advance for my lack of knowledge in Word terminology. Anyhoo...
Toolbars. Can I create a custom toolbar (with my own custom actions that
will be performed upon clicking) that will only be available (visible?) under
certain circumstances. Say, perhaps, when a certain template was loaded? I
understand I can put the toolbars in a template document ( .dot file). Is
this correct? I don't particularly want to do that. There will be a "generic"
template but there will also be at least 4 different templates for each
client. The templates can not be stored on the local drive either (they must
be "fed" to the application upon user request). I was thinking an Add-in
here. But, I don't want the toolbar to load if say, the user starts Word the
"normal" way to type a letter to grandma, etc.
Can I load a document template from a url? Or I guess maybe the correct
question would be: Can I create a new document from a template that is stored
on a webserver? I need to do this without
"prompting" the user at all. The template, I suppose, could be saved
temporarily on the users hard-drive and then loaded from the hard-drive. I
would like to load it from the url and not have to save it to the hard-drive
first.
How can I save a document back to a web server? I cannot save it back to a
drive letter:\path because there won't be any mapped network shares. I cannot
allow the user to save the document on their local hard-drive either. I do
not want to "prompt" the user.
The document templates will have "fields" or "tags". For example, lets say
there are 5 tags: tag1, tag2, ...tag5. Let's say the cursor is in between
tag2 and tag3. Is there anyway I can capture the "tab" key such that when the
user presses it, it tabs between tags? For instance, say the cursor is in the
above mentioned place, the user presses the tab key and the cursor moves to
the "start" of the next tag (tag3). If the user presses "shift + tab" the
cursor moves back to the previous tag (tag1).
That's all I have for now. I'm sure I'll be back. Thanks a bunch for any
suggestions, hints.
David