Levski
04-19-2005, 08:18 AM
Hello
I am connecting to words automation server from a third party application to achieve the following:
A saved word file/template opens, the user makes the desired edits and saves the document, which then locks and saves as a var name (var x.doc, for examples sake). The original file/template remains unchanged and unlocked, ready to be opened by the next session.
I have achieved this by the following process:
1) Original.doc is opened
2) User makes changes and instructs save
3) Third party app intervenes ondocumentbeforesave and cancels save
4) Third party app does SaveAs x.doc // to change name before locking so Original.doc is left intact
5) TP app does Protect(wdAllowOnlyFormFields, True)
6) TP app does Save
As you can see, I am having to save twice to achieved the desired affect. Is there any way around this? Any further suggestions/comments about my entire approach to this task would be much appreciated as my Word knowledge is very lacking.
Thanking you in advance.
Levksi
I am connecting to words automation server from a third party application to achieve the following:
A saved word file/template opens, the user makes the desired edits and saves the document, which then locks and saves as a var name (var x.doc, for examples sake). The original file/template remains unchanged and unlocked, ready to be opened by the next session.
I have achieved this by the following process:
1) Original.doc is opened
2) User makes changes and instructs save
3) Third party app intervenes ondocumentbeforesave and cancels save
4) Third party app does SaveAs x.doc // to change name before locking so Original.doc is left intact
5) TP app does Protect(wdAllowOnlyFormFields, True)
6) TP app does Save
As you can see, I am having to save twice to achieved the desired affect. Is there any way around this? Any further suggestions/comments about my entire approach to this task would be much appreciated as my Word knowledge is very lacking.
Thanking you in advance.
Levksi