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

Joined: 01 Jul 2008 Posts: 38
|
Posted: Wed Jul 02, 2008 6:14 pm Post subject: how do i implement eventlistener? |
|
|
Hi,
My aim is to close the odt file after printing in my vb6 application. During debugging breakpoint at CallByName function then step into Close function everything works properly. But if there isn't any break point the code will run into a run time error '1001': com.sun.util.closevetoexception: controller disagree.
Therefore i believe implementing the eventlistener will work rather than sleep(..)
CallByName oDoc, "print", VbMethod, arg()
oDoc.Close (True)
Can any kind soul pls guide me in implementing the event listener so to close the odt file after printing. Saw some posting on event listener but cant fiigure out how to implement it. pls help Thanks=P |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
carlos.rocha General User

Joined: 01 Jul 2008 Posts: 12
|
|
| Back to top |
|
 |
|