Home » Developer & Programmer » Forms » 2 session from forms
2 session from forms [message #242784] Tue, 05 June 2007 02:00 Go to next message
srinivas.k2005
Messages: 334
Registered: August 2006
Senior Member
Hi,

I am working with forms 10g.
I am generating the word document using ole2.
During the generation of word document i should call an .exe which covers the word document population .
the .exe just shows the progress bar runing.

Below is the code i am runing.

ole2_pr;
host('c:\test.exe',no_screen);

here ole2_pr is a procedure which populates the data in word.
but after completion i am getting the .exe.

But once the procedure starts populating data ,it should call .exe and hide word document behind.

i tried putting the .exe call inside the procedure.but till the .exe gets completed the word generation stops.

SO any idea or built in to run both at a time.It seems to be difficult but i think there should be a built in to do this.

Thanks,
Srinivas
Re: 2 session from forms [message #242812 is a reply to message #242784] Tue, 05 June 2007 03:49 Go to previous messageGo to next message
hemavb
Messages: 103
Registered: May 2007
Location: Dubai , UAE
Senior Member
how about setting a timer.

you must be knowing howmuch time it takes to generate the word file. set atimer, initiate it before u call the OLE procedure.
Re: 2 session from forms [message #242817 is a reply to message #242784] Tue, 05 June 2007 04:02 Go to previous messageGo to next message
srinivas.k2005
Messages: 334
Registered: August 2006
Senior Member
Can i open two sessions using timer.

Can you please give some example
Re: 2 session from forms [message #242819 is a reply to message #242784] Tue, 05 June 2007 04:05 Go to previous message
hemavb
Messages: 103
Registered: May 2007
Location: Dubai , UAE
Senior Member
no you will not start a new session.
the running of the HOST command will jsut get delayed by the amount of time that u set in the timer.
Previous Topic: set_block_property --for a non database block
Next Topic: ORA-12203: TNS:unable to connect to destination....
Goto Forum:
  


Current Time: Sat Dec 03 15:57:16 CST 2016

Total time taken to generate the page: 0.09794 seconds