Home » Developer & Programmer » Forms » print pdf file using webutil
print pdf file using webutil [message #327563] Mon, 16 June 2008 22:42 Go to next message
auliap
Messages: 1
Registered: March 2008
Location: Jakarta, Indonesia
Junior Member

Hi,
I want to print pdf files to printer using webutil, but i have a problem.
When i use WebUtil_Core.setProperty(WebUtil_Core.WUH_PACKAGE,'WUH_EXECUTION_MODE',NON_BLOCKING_MODE),
the output from printer are not sorted even "filelist" variable contains sorted file names.
I must use NON_BLOCKING_MODE because I have to print many files (> 200 files).

Script:
declare
BLOCKING_MODE CONSTANT PLS_INTEGER := 0;
NON_BLOCKING_MODE CONSTANT PLS_INTEGER := 1;
fileList in webutil_file.file_list;
v_filename varchar2(200);
acrobat_path varchar2(200) := '"C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe"';
begin
for i in 1..fileList.count loop
v_filename := acrobat_path||' /t "'||select_dir||fileList(i)||'" '||printer_name;
WebUtil_Core.setProperty(WebUtil_Core.WUH_PACKAGE,'WUH_EXECUTION_MODE',NON_BLOCKING_MODE);
WebUtil_Core.setProperty(WebUtil_Core.WUH_PACKAGE,'WUH_EXECUTE',v_filename);
procId.handle := to_number(WebUtil_Core.getProperty(WebUtil_Core.WUH_PACKAGE,'WUH_EXECUTE'));
end loop

end;

What should i do if i want the printed files are sorted ascendingly?
Thank you for your help.

Note:
If i use WebUtil_Core.setProperty(WebUtil_Core.WUH_PACKAGE,'WUH_EXECUTION_MODE',BLOCKING_MODE),
the output from printer are sorted correctly.
Re: print pdf file using webutil [message #337086 is a reply to message #327563] Tue, 29 July 2008 21:18 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you solved your problem?

Did you consider loading the entries from 'fileList' into your table, sorting that table, and then using the sorted table to produce your output.

David
Previous Topic: Download the Calendar from here
Next Topic: Select multiple items in LOV ?
Goto Forum:
  


Current Time: Sat Dec 10 06:43:35 CST 2016

Total time taken to generate the page: 0.05373 seconds