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

[OLE] Disposed exception with different documents

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


Joined: 14 Mar 2006
Posts: 30

PostPosted: Thu Jul 06, 2006 1:20 am    Post subject: [OLE] Disposed exception with different documents Reply with quote

hi,
I'm using Delphi to print documents (.doc or .xls). The user can choose (with checkbox) between several documents to print and their copies numbers.
I'd made necessary adaptation to use both MS Office and OpenOffice via OLE.

My problem is when the user select different documents to print, with a copy number higher than 5, with MS Office no problem but with OpenOffice i've got :
"com.sun.Lang.DisposedException" between each differents documents.
But I checked that between each opening I closed the other. So I don't know which object isn't disposed.

Is someone got a clue ? I wonder if it is because the printer is busy or something....

Humantool
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Thu Jul 06, 2006 3:04 am    Post subject: Re: [OLE] Disposed exception with different documents Reply with quote

humantool wrote:
I wonder if it is because the printer is busy or something....

Yes, use Wait property in the print options
http://api.openoffice.org/docs/common/ref/com/sun/star/view/PrintOptions.html#Wait
Back to top
View user's profile Send private message Visit poster's website
humantool
General User
General User


Joined: 14 Mar 2006
Posts: 30

PostPosted: Fri Jul 07, 2006 12:54 pm    Post subject: Reply with quote

thanks for this advice, i use it right now !!
But I can test it, I hope this could fix my problem (....it seems good)

thanks B Marcelly Wink

Humantool
Back to top
View user's profile Send private message
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