Home » Developer & Programmer » Forms » Delay time when Button press trigger (Form builder 6i, oracle 10g, windows 10)
Delay time when Button press trigger [message #690430] Wed, 08 October 2025 21:54 Go to next message
hissam78
Messages: 210
Registered: August 2011
Location: PAKISTAN
Senior Member
Dear Respectful,
Following is the code below defined on When button press trigger in form builder 6i form for printing from thermal receipt printer, its working but its take 15 second to print the receipt when we click on Button where defined WHEN BUTTON PRESS Trigger.
if we send the print directly from the report which is designed in Report builder 6i its working fine and print the receipt within 2 seconds.
not able to resolve this time delay of printing receipt print from form builder 6i click button press trigger,
somebody can help please.

thanks,

declare
	AppID   PLS_INTEGER;
  usname varchar2(50);
  pwd varchar2(50);
  cons varchar2(50); 
begin	
  usname := Get_Application_Property(USERNAME); 
  pwd    := Get_Application_Property(PASSWORD);
  cons   := Get_Application_Property(CONNECT_STRING);
    AppID  := DDE.App_Begin('RWRUN60.EXE  REPORTS\GDN_CLD.REP ' || usname||'/'||pwd||'@'||cons  ||' VNO='||:KITCHEN_ORD_M.VNO|| ' paramform=no destype=printer batch=no  maximize=no' , DDE.APP_MODE_NORMAL);
end;
Re: Delay time when Button press trigger [message #690431 is a reply to message #690430] Thu, 09 October 2025 05:05 Go to previous messageGo to next message
cookiemonster
Messages: 13973
Registered: September 2008
Location: Rainy Manchester
Senior Member
So in the 2 second case you've opened up a report, run it to show data and then you're timing how long it takes to print from that point?
In which case the difference is forms has to start up the reports engine, open the report and execute the report before it gets as far as printing.
Those 3 combined would explain the time difference I would assume.
Re: Delay time when Button press trigger [message #690432 is a reply to message #690431] Thu, 09 October 2025 05:43 Go to previous message
hissam78
Messages: 210
Registered: August 2011
Location: PAKISTAN
Senior Member
after running the report in report builder and sending printing request to printer it just takes 2 seconds.
but after clicking on Button in Form it takes 15 or more seconds,
you are quite right if we all three steps
Clicking on Button,
than open report
and then run the report
takes almost 15 minutes.
just we need to bypass the open report timing, if exclude than it will be fine.

thanks
Previous Topic: FRM-40654 after using set record property on a database block
Next Topic: Free software replacement for Oracle Forms
Goto Forum:
  


Current Time: Wed Nov 19 11:07:15 CST 2025