Webutil_file_transfer.as_to_client  WUT-121 error?!

I am trying to transfer a .csv file (22k) from my Apps Server using webutil_file_transfer.as_to_client('c:\temp/','c:\epsis/reports/serv.csv') command.
I have amended my webutil.cfg to allow file transfers and other webutil functions work fine so I am presuming the install is good.
I continue to get the WUT-121 error but don't understand why. Any suggestions?

To transfer from the App Server to another machine, you have several options:
1. Use the HOST command. This may be difficult depending on the server's platform and security configuration. If Windows, by default the process (Forms) will not have permission to access network resources (i.e. mapped/shared drives). You will need to refer to the Microsoft documentation in order to overcome these restrictions.
2. Use HOST to execute a ftp connection for transferring the file. Of course the remote machine must support ftp. If you have access to "My Oracle Support", see note 110531.1
3. Create a java class which could be imported into the form that can perform this task. Refer to the Forms Java Importer documentation for information about importing java for server side execution. Also, here is a starting place for the java information:
http://www.google.com/#&q=java+transfer+file

Similar Messages

  • WUT-121 error on 9iAS

    Using WebUtil, I successfully opened an image file in a form in 9iDS. When we moved to the app server, we encountered the WUT-121 error. The temporary directory space is not restricted, and this is in the file webutil.cfg:
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE          
    transfer.appsrv.workAreaRoot=E:\WUTemp
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=E:\WUTemp     
    transfer.appsrv.read.2=E:\WUTemp\199_60_89_70\MackJ
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=E:\WUTemp
    transfer.appsrv.write.2=E:\WUTemp\199_60_89_70\MackJ
    A process can open the client file dialog, and create the sub-direcories under the workAreaRoot, but can not then write the file into the work area, whethr they are listed in the above file or not.
    Are there any other parameters we should be setting on the app server? (server: Win2000, 9iAS release 2)

    So 121 indicates that the Access control check faile - the last time I saw this going false failures was when Forms was installed onto Unix and the .cfg file was still in DOS format e.g. had <cr><lf> line terminators.
    You are in a Windows machine so this should not be an issue - however, it might be worth checking that you don't have some non printing characters that prevent a match between the upload directory and the transfer.appsrv.write list.
    So what you need is to use the debugger and set a breakpoint in the WebUtil_core.checkASACL() function, you can also examine the package variables: m_readACL, m_writeACL in the package body - these maintain the list that is read from the config file.

  • Error in WEBUTIL_FILE_TRANSFER.AS_To_Client  if client ip path provided

    Hi All,
    I am using forms Version 10.1.2.0.2 (Production)
    In my application i have to transfer the "test.tif" file stored in application server to fax client machine. I have used webutil for transfer with ip address of the fax client.
    x:=WEBUTIL_FILE_TRANSFER.AS_To_Client('\\10.10.10.33\fax\test.tif' , 'd:\temp.tif');
    But its giving the error
    *ERROR>WUT-131 [WEBUTIL_FILE_TRANSFER.DownloadInt] Invalid client file name 10.10.10.33\fax\test.tif. Cannot create client file.*
    the webutil config file have following details added
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=d:\temp
    transfer.appsrv.read.2=c:\temp
    transfer.appsrv.read.3=\\10.10.10.33\fax
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp
    transfer.appsrv.write.2=d:\temp
    transfer.appsrv.write.3=\\10.10.10.33\fax
    Can someone please provide me solution in which i can specify the ip path of client machine for file transfer.

    To transfer from the App Server to another machine, you have several options:
    1. Use the HOST command. This may be difficult depending on the server's platform and security configuration. If Windows, by default the process (Forms) will not have permission to access network resources (i.e. mapped/shared drives). You will need to refer to the Microsoft documentation in order to overcome these restrictions.
    2. Use HOST to execute a ftp connection for transferring the file. Of course the remote machine must support ftp. If you have access to "My Oracle Support", see note 110531.1
    3. Create a java class which could be imported into the form that can perform this task. Refer to the Forms Java Importer documentation for information about importing java for server side execution. Also, here is a starting place for the java information:
    http://www.google.com/#&q=java+transfer+file

  • ERROR WUT-121

    can u pls tel me solution for ERROR>WUT-121 [WEBUTIL_FILE_TRANSFER.UploadInt] The file transfer has been forbidden by the Administrator
    it comes whenn i'm trying to upload my image.

    Are you running this own you own PC or with an Application Server? - the error means that you are not allowed to write the file onto the mid-tier and you should (perhaps) ask an administrator. But I'm only guessing as there isn't really enough information : Forms version, operating system, etc
    Edited by: spilgrim on Apr 26, 2010 2:06 PM

  • Problem using webutil_file_transfer.AS_to_Client

    I have configured webutil package successfully
    I have made the following configuration to webutil.cfg:
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=c:\temp
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp
    I have the following code:
    BEGIN
         IF NOT webutil_file_transfer.AS_to_Client('C:\temp\saad.pdf', 'C:\temp\saad.pdf') THEN
              message('Upload was not successful');
         ELSE
              message('Upload was successful');
         END IF;
    END;
    I always got "Upload was not successful" can any body tell me what the problem is ?

    Francois Degrelle wrote:
    - be sure that the first argument is the client machine file and the second the server file
    FRancois
    It is OK
    Francois Degrelle wrote:
    - at runtime, display the Java console to see if there is any error message
    FRancois
    No Errors
    Francois Degrelle wrote:
    - try another function in the Webutil_File_Transfert package
    FRancois
    I have tried client_to_db successfully

  • Problem with webutil_file_transfer.as_to_client

    Hi all,
    I am migrating some Forms/Reports from 6i to 10g, well, when i make a report sometimes i want to save some of those reports from server to client.
    For doing this i am using the WEBUTIL functinality with webutil_file_transfer.as_to_client.
    this works fine with some reports but doesn't work with other ones, but the problem is that no error appers, it just doesn't write the report, so i don't know what is the problem
    thx in advance.

    Hi Michael,
    I have found what it's the problem.
    As i said i am upgrading reports from 6i to 10g,
    when i run the report in 6i, the report is generated always with data, for example, if the result of the query is nothing, the report is created with the date, name of the report, and some other information that appears in all of my reports by default, so the report is created and then transferred.
    when i run the report in 10g, and the result of the query takes back some data, the report is created in the the server and then transferred properly, but when i create the report as a txt file, it's created without the default data, i don't know why, but those data doesn't appears, but only in .txt files, it works perfectly with .pdf file.
    So the problem comes when the user run's a report with no query result, then in the OracleAS it says it's has been created, but as it's empty, it doesn't tranfer the file to the client machine.
    It's a very strange thing, i don't understand why in 6i it adds the default data to the report, and in 10g it doesn't add that default data...
    P.S: As my english is not very good, when i say default data, i mean eveything that is not returned with the querys of the report, for example the date, the name of the report...
    Do you guys have any idea of why this could happen only with txt files?
    thx for your time!

  • Webutil_file_transfer.AS_To_client

    Hello,
    The webutil_file_transfer.AS_To_client only works in ascii mode. Therefore on Unix we add the command unix2dos to workaround this problem.
    The code is as follows:
    if upper(get_application_property(operating_system))
    not like '%WIN%'
    then
    host('unix2dos '||g_ap_directory||g_file_name
    ||' '||g_ap_directory||g_file_name);
    end if;
    if not webutil_file_transfer.AS_To_Client
    ( user_preferences.get_output_directory||g_file_name
    , g_ap_directory||g_file_name
    then
    end if;      
    This works fine the first time the code is executed. The second time the code fails. The unix2dos does not do the job. When we do not do the file transfer it does work ok.
    Looks like the webutil_file_transfer.AS_To_Client prevents other actions on the AS.
    Any ideas?
    Regards Erik

    You may need to clear your variables and find some way to reset everything after the function is complete. That would be my first guess. Nothing is jumping out at me from the code at the moment.

  • Problem reading file after using webutil_file_transfer.as_to_client

    Hi all,
    The Forms webapplication I'm working on has to talk with a cardreading-application on the client-PC. The communication is carried out by exchanging small files. Reading from the client by Forms on the AS goes well (using client_text_io from webutil). The problem arises when the application has to respond back with a file. The file is made on the AS and then transfered from the AS to the client using webutil_file_transfer.as_to_client. This file can not be read by the cardreading application when the AS is on Linux. Our developement AS server is on a Windows 2000 box and then the communication doesn't show this problem.
    If I open the file from the AS on Linux , I can see that there is only 1 long line. The Windows version of the file contains 2 lines (as it should be). It seems that before/during/after the transfer some special characters like carriage return and tab are causing the problem.
    Looking in web_file_transfer.as_to_client I see that the procedure reads lines from a temporary file into a buffer. The lines are separated by a CHR(10). Could the transfer from Linux to Windows(DOS) cause a problem with these characters ?
    Has anyone experienced this problem ? If someone has a clue this would be very welcome.
    We work with :
    - Forms and AS 10.1.2.0.2
    - Webutil 1.0.6
    - Development OS: Windows 2000 (Service Pack 4)
    - Production OS: Red Hat Enterprise Linux AS release 3 (Taroon Update 3)
    - Client-PC OS: Windows 2000 (Service Pack 4)
    Thanx,
    Enrico

    Without going into a long winded answer, the only thing I can really offer is to say this... If you feel as though your code has been correctly written and you simply cannot identify any other possible solution, add SYNCHRONIZE. In short, its execution acts similar to a reset or refresh button.
    Another common place where SYNCHRONIZE has been helpful is when calling RUN_REPORT_OBJECT. For example, if you use the code we offer in the Forms/Reports Integration document you will find that it works very well - most of the time. However, sometimes it fails for what seems to be unexplainable reasons. If you message out the values being assigned you will see that some variable values are not being set even though the code execution has already passed the point where a value should have been assigned. Adding the SYNCHRONIZE just after the point where the value should have been assigned forces the assignment before executing the next line of code. For example,
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
    In the above code, a request for a report is made followed by a check of its status. At this point you would expect that the status would be something like one of the following:
         'RUNNING', 'OPENING_REPORT', 'ENQUEUED'
    However, we have seen instances where the value assigned to the variable would actually be NULL, which of course will make the rest of the code likely fail. By adding SYNCHRONIZE the problem is correctable.
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
         SYNCHRONIZE;
    It is important to understand, however that using SYNCHRONIZE comes at a price. Each time it is executed a network round-trip occurs which will give the application the appearance of degraded performance. So use this built-in only when you know you must.

  • Webutil: WUT-100 error

    Hello,
    I'm getting WebUtil WUT-100 error, thus:
    Loading http://2ua300tw.epcor.ca:8890/forms90/webutil/webutil.jar from JAR cache
    Loading http://2ua300tw.epcor.ca:8890/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    Loading http://2ua300tw.epcor.ca:8890/forms90/webutil/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    2004-Aug-03 11:47:02.826 ERROR>WUT-100 [FileTransfer.defineFile()] Bad file information string: |0|S|Y|File Upload|Loading . Please wait...
    I've checked the discussion forum, but I couldn't find any discussion relating to this error. Does anyone know how to resolve this problem?
    Thanks,
    gk

    Harm,
    I get the same error here, but my file is not being uploaded.
    You need to provide a string to the progressSubtitle parameter of the client_to_as_with_progress function, not only ''.
    This works for me.
    HTH
    Gerald

  • WUT-133 Error Message is showing in different languages??

    I have a user that is showing the WUT-133 error in French in the English environment and I am showing the English message in both environments??? Is there a setting in the webutil.cfg or formsweb.cfg file to set?
    Thanks,
    Terry

    Frank,
    Sorry for the confusion. Our web application has 2 links, 1 in french and 1 in english. The client who logs in in english sees all WUT messages in French when he should see them in English. I did further research and found out that the webutil.cfg file reads the client's registry... We will try to make 2 different webutil.cfg files (1 in the english environment and 1 in the french environment). This will ignore what the registry states "English or French" and return the WUT error message in the proper language.
    Thanks for your time...
    Terry

  • Wut-134 error

    Hello,
    I have configured webutil file
    but when i run webutil_demo form i am getting
    *WUT-134 Error 2012-Aug-31  11:07:06.421 ERROR>WUT-134 [WEBUTIL_CORE.checkJava] frmwebutil.jar not in the Application Server Classpath*
    I have added frmwebutil.jar file CLASSPATH in default.env file.
    Thanks

    What parameters are you passing in your Forms application URL? Typically, when you use WebUtil you add the "?config=WEBUTIL" parameter to your URL. If you are already using a configuration parameter, then add the [webutil] section of the formsweb.cfg to your configuration section. For example, if you had a configuration section called "MyForms" you would modify the formweb.cfg as follows:
    [MyForms]
    ...Your settings here...
    # Webutil configuration settings copied from the [webutil] section.
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    #baseHTMLjinitiator=webutiljini.htm
    baseHTMLjinitiator=webutiljpi.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jarThe key here is the WebUtilArchive entry because it tells forms to include the frmwebutil.jar, but I strongly recommend you include all of the settings from the [webutil] section.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • WEBUTIL_FILE_TRANSFER.AS_To_Client not working

    Hi all,
    server : win2008 R2 64 bit
    fmw : 11.1.1.4
    when we try to copy a file from AS to client, we get non-oracle exception 105101
    after searching this forum I added the following exception handler:
    exception
         --check for ORA-105100
         when ORA_JAVA.JAVA_ERROR then
           message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
         --check for ORA-105101
         when ORA_JAVA.EXCEPTION_THROWN then
           raisedException := exception_.new(ORA_JAVA.LAST_EXCEPTION);
              begin
                message('Exception: '||Exception_.toString(raisedException));
                message('Exception: '||Exception_.toString(raisedException));
                :javaerror := Exception_.toString(raisedException);
              exception
                when ORA_JAVA.JAVA_ERROR then
                  message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
              end;this gives us the following error :
    java.lang.Exception: java.lang.NoClassDefFoundError: oracle/forms/webutil/fileTransfer/AppServerFileReadernumerous people have searched all config files (webutil.cfg,...)
    webutil_is_as_readable for the file on the server returns true
    nothing found on google/metalink
    Kr
    Martin

    Hi all,
    some ... person copied frmwebutil.jar from another server
    with a different version
    solved

  • Webutil Error WUT-131

    I am on this exercise because I am trying to print a report to local printer, and I am on the web based environment. I am trying to use the pdfp.exe available online to accomplish my task.
    /***********************************C O D E****************************************/
    declare
    declarations...
    begin
         :global.user_home := webutil_clientinfo.get_system_property('user.home');
    go_block('bl_main');
    first_record;
    loop
    lnu_mst_rec := lnu_mst_rec + 1 ;
    i := 0;
    go_block('bl_dtl');
    first_record;
    loop
    if :bl_dtl.victim_full_name is not null then
    /*creating report parameters*/
    rp2rro.setDestype('FILE');--destination is file
    if :bl_main.sbi_no is not null then
    lvc_count := lvc_count + 1;
    lvc_file := 'vtn_vnwl' ||lvc_count||'_'|| :bl_main.sbi_no||'.pdf';--filename
         tool_env.getvar('VISITATION_REQUEST_PATH',v_path);
         --fname VARCHAR2(200) := '"'||:global.user_home||'\vtn_vnwl4_00999998.pdf"';
    lvc_loc_file := '"'||:global.user_home||'\'||lvc_file||'"';--target file in client directory
    lvc_sfile := v_path||lvc_file;--report in report server
    lvc_server_executable := v_path||'pdfp.exe';
    end if;
    rp2rro.setDesname(lvc_sfile);
    rp2rro.setOthers('DESFORMAT=PDF');
    /* calling the right report*/
    IF ltrim(rtrim(:bl_main.VICTIM_NTFC_RESN)) = '7' then
    rp2rro.rp2rro_run_product(REPORTS, 'vtn_vnwl_pardon', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    ELSIF UPPER(:bl_main.VICTIM_NTFC_RESN) = '6' then
    rp2rro.rp2rro_run_product(REPORTS, 'vtn_vnwl_parole', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    end if;
    END IF;
    /*this is to check if the report exists*/
    begin
    my_file := text_io.fopen(lvc_sfile,'R');
         if text_io.is_open(my_file) then
         :parameter.file_exist := 'TRUE';
         text_io.fclose(my_file);
         end if;
         exception
         when e_file_not_found then
         :parameter.file_exist := 'FALSE';
         when others then
         :parameter.file_exist := 'N/A';
         end;
         if :parameter.file_exist = 'TRUE' then--if report was created on the server
         v_bool := webutil_file_transfer.as_to_client(lvc_loc_file, lvc_sfile);-- transferring report
    /******ERRROR***************/
    WUT-131 cannot create client file => invalid client file name
    while my file name reads
    "C:\Documents and Settings\vijay.krishna\vtn_vnwl4_00999998.pdf"
    /********************************ERROR*************************************/
    help me out!
    thanks
    vijay krishna

    Try sending the file to the client machine where the directory path has no spaces.
    L :-)

  • WebUtil_file_transfer.client_to_db

    Dear sir,
    This is my code
    Declare
    Result BOOLEAN ;
    Begin
    Result:= Webutil_File_Transfer.Client_To_DB('c:\txt1.txt','photo','photo_image','ID=2') ;
    if Result =true then
         message('gooooooooooooooood');
              message('gooooooooooooooood');
    else
              message('Baaaaaaaaaaaaad');
              message('Baaaaaaaaaaaaad');
    end if;
    end;
    my table name is photo
    column name is photo_image BLOB
    i put this code under bush button and i always get my defined message " baaaaaaaaaaad" .!!!
    i tried to be in update state . i pushed excute_query where column id and its value 2 is found and pushed my button to store file but nothing !!
    can any one help me ..
    thnaks in dvance
    Edited by: Eng Hossam Wally on 23/04/2011 05:48 ص

    Dear Sir ,
    This is the last java console txt ia have when i try and get the same defined message baaaaaaaaaaaad !! :D
    " Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Hossam
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: C:\Documents and Settings\Hossam\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://sicowin:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://sicowin:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://sicowin:8889/forms/java/jacob.jar from JAR cache
    Loading http://sicowin:8889/forms/java/GetImageFileName.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    2011-أبر-23 21:21:32.625 ERROR>WUC-24 [URLDownload.pullFile()] حدث خطأ أثناء قراءة عنوان URL http://sicowin:8889/forms/webutil/jacob.dll
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    2011-أبر-23 21:25:27.984 ERROR>WUC-24 [URLDownload.pullFile()] حدث خطأ أثناء قراءة عنوان URL http://sicowin:8889/forms/webutil/jacob.dll
    2011-أبر-23 21:25:30.734 ERROR>WUT-121 [WEBUTIL_FILE_TRANSFER.UploadInt] تم منع نقل الملف بواسطة المسئول
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    2011-أبر-23 21:26:25.250 ERROR>WUC-24 [URLDownload.pullFile()] حدث خطأ أثناء قراءة عنوان URL http://sicowin:8889/forms/webutil/jacob.dll
    2011-أبر-23 21:26:27.593 ERROR>WUT-121 [WEBUTIL_FILE_TRANSFER.UploadInt] تم منع نقل الملف بواسطة المسئول
    i will translate the non english words to you as :
    حدث خطأ أثناء قراءة عنوان = An error occurred while reading the title
    تم منع نقل الملف بواسطة المسئول = Was to prevent the transfer of the file by the official
    Thanks in advance ..
    Edited by: Eng Hossam Wally on 23/04/2011 12:33 م

  • Wut 118 application server file abc.prn does not exist or is of zero length

    dear members,
    I am printing a character mode report which gives the following error:
    "wut 118 application server file c:\abc.prn does not exist or is of zero length"
    my code on when-button-pressed is here:
              declare
                   repid REPORT_OBJECT;
                   v_rep VARCHAR2(200);
                   rep_status VARCHAR2(50);
                   report_name varchar2(100);
                   v_path varchar2(200);
                   rep_server varchar2(50);
              BEGIN
                   select parameter into rep_server from mis where parameter_type = 'REPORT_SERVER';
                   report_name := 'C:\TEMP\abc.prn';
                   repid := find_report_object('reports');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,:global.report_path||'abc123.rdf');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,:global.report_path||'dflt.prt');
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,report_name);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,REP_SERVER);
    PF_FGOWGPNO='||:FG_DISPATCH_M.FGOWGPNO||' PF_FISCAL_YEAR='||:FG_DISPATCH_M.XFISCAL_YEAR||:FG_DISPATCH_M.XFISCAL_YEAR||' P_USERNAME='||:DUMMY.USER);
    PF_FGOWGPNO='||:FG_DISPATCH_M.FGOWGPNO||' PF_FISCAL_YEAR='||:FG_DISPATCH_M.XFISCAL_YEAR);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no PF_FGOWGPNO='||:FG_WH_INTERCHANGE.FG_TRANSIT_ID||' PF_FISCAL_YEAR='||:FG_WH_INTERCHANGE.XFISCAL_YEAR||' PRINT_IT='||:DUMMY.PRINT_IT);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   rep_status := REPORT_OBJECT_STATUS(v_rep);
                   WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
                        rep_status := report_object_status(v_rep);
                   END LOOP;
                   IF rep_status = 'FINISHED' THEN
                        --WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repsrv10g','_blank');
                        NULL;
                   ELSE
                        message('Error when running report');
                   END IF;
                   exception
                        when others then
                        message(sqlerrm);
                        raise form_trigger_failure;
                   END;
                   declare
                        a boolean;
                   begin
                        a := webutil_file_transfer.as_to_client('c:\temp\abc.prn','c:\temp\abc.prn');
                   end;               
                   begin
                        client_host('cmd start /c type c:\temp\abc.prn > prn');
                   exception
                        when others then null;
                   end;Regards:

    Disregard my last. I see what you are doing. You are using file transfer to move the file to the local machine. It was confusing because the paths are the same.
    I would suggest adding a SYNCHRONIZE after the file transfer and before the attempt to print. It might even be a good idea to add some error handling code to verify that the file has been copied and can be found. This will allow you to better deal with situations where the file doesn't get written for some reason. WebUtil offers some functions to check for file existence and size.
    Also, if you are using Java 7U21, this may cause some issues with your CLIENT_HOST call.

Maybe you are looking for

  • No DVD Drive Found on my G4

    Hi, I recently purchased a used G4 with OS 10.1.5. In order to upgrade to Tiger I need a DVD Driver. When I do a find no driver is found, I also tried inserting a DVD, Nada. How easy/difficult is to find a DVD Driver? Are they available for download?

  • Movies taking forever to load

    This flash movie i try to watch always pauses, http://dv.ouou.com/swf/ouou.swf?id=38d7f45b65c94, anyone know why it takes so long to load even 2 seconds? I have IE 7 and Adobe Flash Player 9.

  • Where should i place ASA?

    Hi Where should i place an ASA firewall in my network? Should i connect ASA outside interface directly to the ISP? Can ASA 5585 perform BGP?

  • IBooks- pdfs not importing from Mail

    So when I open a pdf in Mail on my iPhone 3GS I gather I'm meant to get an "Open in iBooks" button in the top right corner of my screen? I don't haz it. And when i open a pdf in Mail it downloads and gives me the front page but won't actually show an

  • Use NI 9237 to Measure the Strain Gauge

    I'm a newbie and I have no idea how to use NI 9237. I'm trying to meaure the strain gauge with NI9237. I dropped down  from . The data type of is Double. I want to know is it the output (the difference of Al+ and Al-) of strain gauge? Or is it someth