OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Howto open a document from a template in silent mode

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
heffalump
General User
General User


Joined: 15 Jan 2004
Posts: 21
Location: Germany, Pliezhausen

PostPosted: Wed Mar 17, 2004 5:30 am    Post subject: Howto open a document from a template in silent mode Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed Mar 17, 2004 8:04 am    Post subject: Reply with quote

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! Smile:

Peter Biela
Back to top
heffalump
General User
General User


Joined: 15 Jan 2004
Posts: 21
Location: Germany, Pliezhausen

PostPosted: Wed Mar 17, 2004 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group