| View previous topic :: View next topic |
| Author |
Message |
heffalump General User


Joined: 15 Jan 2004 Posts: 21 Location: Germany, Pliezhausen
|
Posted: Wed Mar 17, 2004 5:30 am Post subject: Howto open a document from a template in silent mode |
|
|
I have a OO-template (*.stw-file) which contains several text-fields. If I create a document out of the template then a modal dialog-window pops up asking me for text input. I m doing this via OLE-automation (using VB) therefore I loose control on creating the document because my "workflow" stops (-> modal window).
Is there any possibilty to open the document in some kind of silent / quiet mode? The user should do the field-inputs after the creation of the document has finished, e.g. by <CTRL>+<SHIFT>+<F9>.
Thanks, any help would greatley be appreciated |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 17, 2004 8:04 am Post subject: |
|
|
Have you tried to load the document with the property UpdateDocMode?
May be it's the right place to look. It proivdes the settings:
NO_UPDATE Do not update document.
QUIET_UPDATE Update document if it does not require a dialog. Otherwise do not update. For example a link to a database can require a dialog to get password for an update.
ACCORDING_TO_CONFIG Produce update according to configuration settings. If there are no settings use dialog.
FULL_UPDATE Update document even if it does require a dialog.
Using NO_UPDATE or QUIET_UPDATE could help you with your problem.
But It's just a guess!
Enjoy the nice Spring Weather! :
Peter Biela |
|
| Back to top |
|
 |
heffalump General User


Joined: 15 Jan 2004 Posts: 21 Location: Germany, Pliezhausen
|
Posted: Wed Mar 17, 2004 8:25 am Post subject: |
|
|
I have tried both properties with no success:
| Code: |
args(n).Name = "MacroExecutionMode"
args(n).Value = 0 'NO_EXEC |
and
| Code: |
args(n+1).Name = "UpdateDocMode"
args(n+1).Value = 0 'QUIET_UPDATE |
There must be another approach... |
|
| Back to top |
|
 |
|