print pdf file using webutil [message #327563] |
Mon, 16 June 2008 22:42 |
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 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS 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
|
|
|