WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS  problem

I am using webutil to transfer file from client to Application server and it is working fine, now what I need to do is
To transfer file to mapped drive on the application server, my question is this process possible to be done using the following command, if not please suggest for solution.
WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS('d:\directory_on_client\test.txt','M:\ directory\test.txt');
M : map_driver_directory on Application server (mapped to storage server).
Regards,
Shadid

you have enabled the filetransfer permision on the Server (webutil.cfg)
transfer.appsrv.enabled=TRUE
and example:
transfer.appsrv.read.1=d:\orabase\filetransfer\ ('M:\ directory)
transfer.appsrv.write.1=d:\orabase\filetransfer\ ('M:\ directory)

Similar Messages

  • Webutil_file_transfer.Client_to_as

    Hi,
    I have a form that used the webutil in particular I use ' webutil_file_transfer.Client_to_as’.
    After I use this function, the client file is locket. I cannot delete, rename or modify this file.
    The file is unlocked only if I exit the form.
    How I can unlock the file before I exit the form???
    Regards Adrian.

    Hi,
    I am facing similar issue.
    I am transfering a file from a:\ to db server.
    (I am using client_to_db function)
    But i can't rename the file,or delete it unless i close the application completely.
    Unfortunately my business requirement is of renaming the file.
    Can some one please help me out with at least the version of webutil in which this problem has been removed.?
    Thanks & Regards
    Parag Gurjar

  • Webutil file transfer problem

    I have a problem, I am using webutil_file_transfer.AS_To_Client to copy a file in a directory, but when I want to delete the original file with webutil_file.delete_file I get the error that the file is in use and it remains blocked until I close the application and the console of Java is closed too.
    How can I solve this?
    Thanks in advance.

    v_origen := 'C:\archivo.pdf';
    v_destino := 'D:\archivo.pdf';
    l_success := webutil_file_transfer.client_to_As(v_origen,v_destino,false,null);
    if l_success then
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'File saved);
    ALERTA := SHOW_ALERT('ALT_INFO');
    else
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'ERROR File not saved);
    ALERTA := SHOW_ALERT('ALT_INFO');
    end if;
    -- delete de original file
    l_success := webutil_file.delete_file(v_origen);
    if l_success then
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'Deleted OK);
    ALERTA := SHOW_ALERT('ALT_INFO');
    else
    SET_ALERT_PROPERTY('ALT_INFO',ALERT_MESSAGE_TEXT,'Deleted NOT OK);
    ALERTA := SHOW_ALERT('ALT_INFO');
    end if;
    The first message is l_success=true, the second message is l_success=false.
    I want to copy the file of a directory to other one and to delete the original one (to move the file).

  • Using webutil_file_transfer in 10G forms

    I am looking to upload a pdf blob from a table in the database to a physical directory on the the application server. Then use web.show_document to display the the pdf in a browser to the user.
    I currently use the following to display the pdf.
    webutil_file_transfer.DB_To_Client
    webutil_file_transfer.Client_To_AS
    web.show_document
    This work works well for users at work on our intranet. But this is considerably slower when users connect to the system from home over the internet. Is there a way with webutil_file_transfer or an oracle system function to move the pdf from the database to the application server?

    use either
    start c:\temp\A8020023122.pdfor
    rundll32.exe url.dll, FileProtocolHandler c:\temp\A8020023122.pdfinstaed of cmd /c, these two are not blocking.
    Edited by: aweiden on 24.10.2008 22:03

  • Should FTP port be opened for client_to_as function

    I need to transfer a file from the client machine to the Solaris Server where the 10g forms are running. I was planning on using the webutil_file_transfer.client_to_as function. I know we have to set some properties in the webutil.cfg file. Other than that, should the FTP port be open on the server for the file to be transferred from the client machine. Basically, wanted to know if FTP protocols are used to transfer the file so that certain securities can be set on the server.
    Also does anyone know how to delete the file on the solaris server programmatically through Oracle Forms? After the file is transferred from the client to the server and processed, I need to delete the file. I am assuming you can use the HOST command, but not sure of the exact syntax and what permissions are required to delete the file from the client machine.

    I have never used the "Client_To_AS" method, however, according to the documentation all you need to configure is the webutil.cfg and insure the transfer.appsrv.enabled parameter is set to TRUE and if the transfer.appsrv.accessControl parameter is set to TRUE then you also need to ensure the target directory on the App Server is listed in the transfer.appsrv.write list. There is no mention that FTP must be enabled on the App Server.
    The documentation also states that you should call the WebUtil_File_Transfer.IsASWritable function with the target file name to ensure you are able to write to the file location on the server.
    As to how to delete a file, you can use the "rm <filename>" command in Solaris to remove the file. Also, here is the link to the documentation I used to reply to your post.
    http://www.oracle.com/technology/products/forms/htdocs/webutil/web_util.pdf
    Hope this helps.
    Craig...

  • XLS upload via HSODBC. Unable to upload numeric (float) fields

    hi,
    I wrote a program unit with Oracle Forms Builder 10g to upload and read an Excel sheet.
    I created a HSODBC Data link to my DB, and used Excel 2003 to edit the XLS file to upload, and WEBUTIL_FILE_TRANSFER.CLIENT_TO_AS(client_dir_file,'\\server\dir\myfile.xls') to upload.
    My DBLink works and Im able to upload the file. But it seems oracle is unable to upload some fields containing numeric (float) values.
    running DESCRIBE Sheet1$@hsodbc; I got this table structure
    UPLOAD_DATE          DATE
    NUMBER VARCHAR2(32512 CHAR)
    CODE VARCHAR2(32512 CHAR)
    DESCR          VARCHAR2(32512 CHAR)
    SIMILARS FLOAT(49)
    WIDTH VARCHAR2(32512 CHAR)
    HEIGHT VARCHAR2(32512 CHAR)
    HIGH      VARCHAR2(32512 CHAR)
    ITEMS      FLOAT(49)
    fields SIMILARS, WIDTH, HEIGHT, HIGH, ITEMS contain numeric values in float format (ex: 1,00000). When I run
    SELECT * FROM SHEET1$@HSODBC
    I get that WIDTH, HEIGHT, HIGH columns are EMPTY (contain NULL values), while SIMILARS and ITEMS contains not null values.
    I am sure that the \\server\dir\myfile.xls contains not null values for WIDTH, HEIGHT, HIGH fields! I tried to change cells format before upload, setting them to FLOAT, but I got no results!
    Please help me, how can I do to change cell format in order to obtain a correct upload?

    E.C.
    there is a mistake in the subject. As I said in my thread, the upload works and the uploaded file contains all values. My problem is that I am "unable to READ" the numeric values stored in VARCHAR2 fields.

  • Client_Get_File_Name webutil

    Hello all, i am new to oracle development and i am trying to do the forms exercises in oracle 10g. However, when i got to uploading images in Client_get_file_name, there is an error:
    I have a code in an image button.
    Here it is:
    DECLARE
      v_file VARCHAR2(250):= client_get_file_name('C:\','','JPEG Files|*.jpg|',
         'Select a product image',open_file,TRUE);
      it_image_id ITEM := FIND_ITEM('control.product_image');
    BEGIN
      client_image.read_image_file(v_file,'',it_image_id);
    END;
    Then when i press the image button, an error occurs it says:
    “FRM-92101: There was a failure in the Forms Server during stratup.”
    If ayone could help me..
    Thanks in advance!

    Hi,
    FRM-92101 is a generic error and usually it means problems with Forms libraries (pll files). Try recompiling all your pll's or at least webutil.pll.
    If this does not help, try rename webutil.pll to webutil_lib.pll, for instance, and attach it to your form. For us webutil.pll did not work at all until we renamed it.
    Make sure you've subclassed Webutil Java beans from webutil.olb to your form.
    Let know if this helped.
    P.S. When working with files the better way is:
    Let user choose file (client_get_file_name or webutil_file.file_open_dialog)
    Transfer file to some temp directory on application server (webutil_file_transfer.client_to_as)
    Read file from application server using old Forms buil-in API, READ_IMAGE_FILE in this case.
    Delete file from temporary directory on application server
    This is better for network traffic and speed, since you transfer file once, but not performing many reads through network (which is slower than single transfer).

  • Forms automatization

    Hi there,
    i have a task related with forms and webutils.
    The problem comes when i try to perform certain steps without user influence.
    F.e. a form with a button. When button is pressed it triggers webutil_file_transfer.client_to_as()...
    The action is performed and the file is copied.
    What i was trying to do is do the same functionality without users action pressing the button.
    How it should work:from cmd in the url i provide a string with form name i want to run, it starts, does everything the same, as if the person pressed the button.
    The logic on the button was moved to a procedure. In new form instance trigger i go_item is performed(to button).
    execute_trigger('when-button-pressed') is performed.
    Problem: the problem accur when application is about to perform button imitation. webutil_file_transfer.client_to_as is performed.
    Error message looks like:
    oracle.forms.webutil.fileTransfer.FileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work....
    After this message follow wut-121: file transfer has been forbidden by the Administrator.
    Synchronize doesn't help....
    Testing: when performing actions myself it works.
    Any ideas how to make forms immitate actions will be valuable.
    versions:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Saulius.
    Edited by: saulius on 2009.4.7 05.57

    Hi,
    try this, I have seen it in the webutil- documentation.
    they wote:
    "However, there is an important
    restriction in the use of WebUtil functions: WebUtil can only start to communicate with
    the client once the Form has instantiated the WebUtil PJCs. This means that you cannot
    call WebUtil functions before the Forms user interface is rendered. This would include
    triggers such as PRE-FORM, WHEN-NEW-FORM-INSTANCE and
    WHEN-NEW-BLOCK-INSTANCE for the first block in the Form. ....
    If you do need to use WebUtil at Forms startup, it is recommended that you create a
    timer with a short duration (about 1ms) in your WHEN-NEW-FORM-INSTANCE
    trigger, then make the WebUtil call in a WHEN-TIMER-EXPIRED trigger."

  • Copy file from C drive to my network drive

    Hello to All,
    I am trying to copy some files from my C drive to the Network i.e. M drive.
    Using Oracle forms 10g AS on a UNIX box.
    This code works fine:
    :blk_global_items.file_load_from := 'c:\temp\0310011.ffs';
    :blk_global_items.file_load_to := 'C:\temp\logs\0310011.ffs';
    IF NOT webutil_file_transfer.client_to_as(
         clientFile => :blk_global_items.file_load_from,
         serverFile => :blk_global_items.file_load_to,
         asynchronous => TRUE,
         callbacktrigger => null) THEN
         message('Upload was not successfull');
    ELSE
         message('Upload was successfull');
    END IF;
    But not this code:
    :blk_global_items.file_load_from := 'c:\temp\0310011.ffs';
    :blk_global_items.file_load_to := 'M:\group\osc\0310011.ffs';
    IF NOT webutil_file_transfer.client_to_as(
         clientFile => :blk_global_items.file_load_from,
         serverFile => :blk_global_items.file_load_to,
         asynchronous => TRUE,
         callbacktrigger => null) THEN
         message('Upload was not successfull');
    ELSE
         message('Upload was successfull');
    END IF;
    I highly appreciate any suggestions.
    Habeeb

    Hi Jan
    The question that comes to my mind is to ask if this project is actually open in Captivate while you are trying to do this. My thought is that if it's still open, perhaps Captivate has a connection and something about the process of copying the file is causing something in the process to gag.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • Error in loading a jpeg file using webutil

    I´m using webutil with forms9i and got errors when loadin g jpeg files. I selected some files and worked ok. Some files (ones with blank characters inside their names) blow up the form.
    The resultant error message is:
    FRM-92102:a network error has occurred. The Forms Client has attempted to reestablish its connection to the server1 time(s) without success. Please check the network connection and try again later.
    Details...
    Java Exception:
    java.io.IOException: Negative or zero content-length from server
    at oracle.forms.netHTTPNStream.doFlush(Unknown Source)
    at oracle.forms.netHTTPNStream.flush(Unknown Source)
    at javaio.DataOusputStream.flush(Unknown Source)
    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Do you have any info about this error?

    It would help if you mentioned which bit of file transfer you are doing there are about 8 different options..
    For instance I tried Clint_to_AS with a file name containing a space and all was OK.
    webutil_file_transfer.client_to_as('d:\temp\a file.txt','d:\temp\foo.txt',false, null);

  • How to check if the file already exists in the application server directory

    Hi all. I'm on devsuite 10g.
    I transfer file from local machine to application server using webutil function webutil_file_transfer.client_to_as and I want to check if the file I'm transfering already exists on the server directory.
    How can I make this?
    Thanks all,
    Fabrizio

    use the text_io package and open the file in read-mode.
    like this
    declare
    xFileType text_io.file_type;
    begin
    xFileType := text_io.fopen('c:\temp\test.txt','R'); --file on the middle tier
    -- file exists;
    text_io.fclose(xFileType);
    exception
    when others then
    --file doesn't exist
    end;
    regards
    Christian

  • WUC-015 in Forms Builder Run Form

    When running a form via Forms Builder, I receive WUC-015. When running the same form via the "Run a form on the web" (runform.htm), it works fine. What did I configure wrong?

    I am running Developer Suite 10g. I have the OC4J instance running. I have a simple form with three buttons that do "webutil_host.host", "webutil_file_transfer.Client_To_AS", and "host". When I "Run a Form on the Web", I am prompted to accept the certificate and the beans load and the form works as anticipated. When I run the form from Forms Builder, I get no certificate and the beans do not load; producing a blank Webutil canvas (yes I know, it is not supposed to be the first navigable block, but while learning I wanted to see it), and the "...form must contain the following bean..." error.
    I have "compiled PLSQL -> All". I am passing "&config=webutil" with my Application Server URL in my Runtime preferences.
    My environment PATH variable is:
    %SystemRoot%\system32;
    %SystemRoot%;
    %SystemRoot%\System32\Wbem;
    C:\WINNT\ms\sms\core\bin;
    C:\Program Files\Oracle\jre\1.1.7\bin;
    c:\oracle\10iDS2\jdk\jre\bin\client;
    c:\oracle\10iDS2\jdk\jre\bin;
    c:\oracle\10iDS2\jlib;
    c:\oracle\10iDS2\bin;
    c:\oracle\10iDS2\jre\1.1.8\bin;
    c:\oracle\10iDS2\jdk\bin;
    C:\Oracle\Ora81\bin
    My environment WV_GATEWAY_CONFIG variable is:
    c:\oracle\10iDS2\listener\cfg\wdbsvr.app
    My registry FORMS90_BUILDER_CLASSPATH is:
    c:\WebUtil\lib\webutil.jar;
    c:\WebUtil\lib\jacob.jar;
    C:\Oracle\10iDS2\forms90\java\f90all.jar;
    c:\oracle\10iDS2\jlib\importer.jar;
    c:\oracle\10iDS2\jlib\debugger.jar;
    c:\oracle\10iDS2\jlib\utj90.jar;
    c:\oracle\10iDS2\jlib\dfc90.jar;
    c:\oracle\10iDS2\jlib\help4.jar;
    c:\oracle\10iDS2\jlib\oracle_ice.jar;
    c:\oracle\10iDS2\jlib\jewt4.jar;
    c:\oracle\10iDS2\jlib\ewt3.jar;
    c:\oracle\10iDS2\jlib\share.jar;
    My registry FORMS90_PATH is:
    c:\oracle\10iDS2\cgenf61\admin;
    c:\oracle\10iDS2\forms90;
    c:\ipms\forms10g;
    c:\WebUtil\forms;
    c:\WebUtil\lib
    My C:\Oracle\10iDS2\forms90\server\default.env file includes:
    ORACLE_HOME=c:\oracle\10iDS2
    FORMS90_PATH=c:\oracle\10iDS2\cgenf61\admin;
    c:\oracle\10iDS2\forms90;
    c:\ipms\forms10g;
    c:\WebUtil\forms;
    c:\WebUtil\lib
    PATH=c:\oracle\10iDS2\bin;c:\oracle\10iDS2\jdk\jre\bin\client
    FORMS90=c:\oracle\10iDS2\forms90
    CLASSPATH=c:\webutil\lib\webutil.jar;
    c:\webutil\lib\jacob.jar;
    c:\oracle\10iDS2\jdk\jre\lib\rt.jar;
    c:\oracle\10iDS2\j2ee\forms90app\forms90web\WEB-INF\lib\f90srv.jar;
    c:\oracle\10iDS2\jlib\repository.jar;
    c:\oracle\10iDS2\jlib\ldapjclnt9.jar;
    c:\oracle\10iDS2\jlib\debugger.jar;
    c:\oracle\10iDS2\jlib\ewt3.jar;
    c:\oracle\10iDS2\jlib\share.jar;
    c:\oracle\10iDS2\jlib\utj90.jar;
    c:\oracle\10iDS2\jlib\zrclient.jar;
    c:\oracle\10iDS2\reports\jlib\rwrun.jar;
    C:\Oracle\10iDS2\jdk\jre\bin\client\jvm.dll
    WEBUTIL_CONFIG=c:\webutil\server\webutil.cfg
    My C:\Oracle\10iDS2\forms90\server\forms90.conf file includes:
    # Virtual path for webutil
    AliasMatch ^/forms90/webutil/(..*) "c:\webutil\lib/$1"
    My C:\Oracle\10iDS2\forms90\server\formsweb.cfg file includes:
    [webutil]
    pageTitle=Oracle9iAS Forms Services - WebUtil
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=c:\webutil\server\webutiljini.htm
    My C:\Oracle\10iDS2\j2ee\DevSuite\application-deployments\forms\forms90web\orion-web.xml file includes:
    <virtual-directory virtual-path="/webutil" real-path="c:\webutil\lib" />
    When I submit the Runform.htm I use the following:
    Config: default
    Other Parameters: useSDI=yes&config=webutil
    And if I change the config above to something other than "default", the form operates improperly, as in form builder.

  • 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 using WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progre

    Dear Friend,
    Whenever I am trying to transfer the report using WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress the report is getting transfered from application server to client successfully. But when i am opening the report at clientside adobe reader is giving error "Adobe could not open file test1.pdf because it is either not a supported file type or because the file has been damaged".
    But when i am seeing the report output in enterprise manager it is properly opening in pdf.
    Please see the below code for your reference :
    declare
    v_rep varchar2(100);
    v_rep_stat varchar2(200);
    repid REPORT_OBJECT;
    v_mode varchar2(1000);
    xstatus boolean;
    xclient_filename varchar2(1000) := 'e:\sam\new\test1.pdf';
    xserver_filename varchar2(1000) := 'f:\dump\test1.pdf' ;
    repid := find_report_object('r1');
    set_report_object_property(repid,report_comm_mode,synchronous);
    set_report_object_property(repid,report_execution_mode,batch);
    set_report_object_property(repid,report_server,repserv);
    set_report_object_property(repid,report_destype,file);
    set_report_object_property(repid,REPORT_DESNAME,xserver_filename);
    v_mode := ' mode=default';
    set_report_object_property(repid,report_desformat,'pdf');
    set_report_object_property(repid,report_filename,'test');
    set_report_object_property(repid,report_other,v_mode);
    v_rep := run_report_object(repid,plist);
    v_rep_stat := report_object_status(v_rep);
    if v_rep_stat = 'FINISHED' THEN
    xstatus :=     WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress('http://development:7778/reports/rwservlet?'||'&server='||repservername,xclient_filename,0,'Download','Save','Saving Output File');
    if xstatus then
    message('Report Generated Successfully');
    message('Report Generated Successfully');
    end if;
    end if;
    Please point out where is the problem. Its urgent.

    I can see at least one error in the line with URL_To_Client_With_progress. I haven't tried fetching PDF's this way myself, so I don't know if it will work, but in any case - you specify the reports server file name correctly, but there's no indication of the jobID to fetch the generated PDF for.
    Does this work?
    xstatus := WEBUTIL_FILE_TRANSFER.URL_To_Client_With_Progress('http://development:7778/reports/rwservlet/getjobid' || repid ||'&server='||repservername ,xclient_filename,0,'Download','Save','Saving Output File');
    Jacob

Maybe you are looking for

  • Problem with TimesNewRoman Font in Russian Form

    Hi All, when i'm printing Russian forms with TimesNewRoman Font,printer is printing some junk texts..but if i am using cyrlicCourier Font,it prints well. I need to print the form in TimesNewRoman Font.where i have to change the settings??? Thanks Mer

  • Add iCal to web site

    Can iCal be added to a web site - to show availability for accommodation?

  • Multiple website, one MobileMe account

    OK, so I have created a webiste already and it is located on a domain name that I bought from GoDaddy. I have just purchased ANOTHER domain name and want to create another website with that domain using iWeb '08. How do I do that?

  • Ios 5 for calendar lock screens notifications

    With ios 4 calendar notification  on the lock screen would stay until the phone was unlocked. I loved this feature and used it on a regular basis as a way to see upcoming appointments. When I updated to ios 5 the calendar notification on the lock scr

  • HT201335 can we still use the Airplay Mirroring  with iPhone 3gs?

    any advice on how to mirror my iphone3gs with apple tv