Refreshing data in excel using .iqy

I have created Discoverer reports where I exported the query as a .iqy and then refresh the data in excel.  For the most part this works great, skipping the whole Discoverer process.  But I have one report that gives me an error "The site reports that the request is not valid" when I refresh.  It just started this and does this all the time now.  But there is another report which gives me the same message, but if I keep trying to refresh, it will work the 2nd or 3rd time.  Is this because there is too much data or time governor on it?  If I do run it in Discoverer, it takes less than 5 minutes to run.
Thanks.
Oracle BI Discoverer 11g (11.1.1.6.0)
Oracle Business Intelligence Discoverer Plus 11g (11.1.1.6.0)
Discoverer Model - 11.1.1.6.0
Discoverer Server - 11.1.1.6.0
End User Layer - 5.1.1.0.0.0
End User Layer Library - 11.1.1.6.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Copyright © 1999, 2009, Oracle.  All rights reserved.

I have created Discoverer reports where I exported the query as a .iqy and then refresh the data in excel.  For the most part this works great, skipping the whole Discoverer process.  But I have one report that gives me an error "The site reports that the request is not valid" when I refresh.  It just started this and does this all the time now.  But there is another report which gives me the same message, but if I keep trying to refresh, it will work the 2nd or 3rd time.  Is this because there is too much data or time governor on it?  If I do run it in Discoverer, it takes less than 5 minutes to run.
Thanks.
Oracle BI Discoverer 11g (11.1.1.6.0)
Oracle Business Intelligence Discoverer Plus 11g (11.1.1.6.0)
Discoverer Model - 11.1.1.6.0
Discoverer Server - 11.1.1.6.0
End User Layer - 5.1.1.0.0.0
End User Layer Library - 11.1.1.6.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Copyright © 1999, 2009, Oracle.  All rights reserved.

Similar Messages

  • Problem with uploading data from excel using BDC for tcode f-02

    Hi All,
    I am uploading data from excel using BDC for tcode f-02. The problem here is, while recording, the values of some fields are recording twice. I dont know why it's happening so. But if I run my abap program, I have to give those fields twice in my excel sheet. Otherwise data does not upload. But it is not the feasible way. We must give those fields once in excel. Please tell me, how I can solve the issue.
    With regards,
    Rosaline.

    Hi,
      in BDC each and every action is recording. If your press enter in same screen that also recorded once aging may be this is your case repeating field values will appear. we can solve the problem for repeat fields like below.
    suppose in your excel having repeated field X1 X2 X3 the X2 contains repeated field X3 means delete the X3 field.
    Now In your itab having X1 and X2 fields. While in the LOOP the ITAB pass the X2 field to repeated the fields.
    LOOP at ITAB to WA.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'RM08M-EBELN'.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." 1st time pass the X2 fields
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'INVFO-BLDAT'.
    bdcdata_wa-fval = wa-X2." pass the same value to repeated field
    APPEND bdcdata_wa TO bdcdata_tab.
    Endloop.
    Hope you can understand.
    Regards,
    Dhina..

  • Importing data from Excel using SDK!

    Hi All,
    Can we do a Goods Receipt and Goods Issue via SDK.
    IF so any code available for the same!Secondly can we
    Import data from Excel using SDK!
    Thnx in advance

    Hi Vinayak
    4 your 2nd issue: you can easily use Excel.Application COM-object. In C# exporting from Excel can be:
    Excel.Application     oXL;
    Excel._Workbook     oWB;
    Excel._Worksheet     oSheet;
    string          strTemplatePath;
    strTemplatePath = Application.StartupPath + "WHRequestList.xlt";
    try
         oXL = new Excel.Application();
         oWB     = (Excel._Workbook)(oXL.Workbooks.Add(strTemplatePath));
         oSheet     = (Excel._Worksheet)oWB.ActiveSheet;
         SAPbouiCOM.Item     edDocNum;
         SAPbouiCOM.IEditText specEdDocNum;
         edDocNum = SBOApp.Forms.Item(FormUID).Items.Item("8");
         specEdDocNum = (SAPbouiCOM.IEditText)edDocNum.Specific;
         SAPbouiCOM.Item     edDocDate;
         SAPbouiCOM.IEditText specEdDocDate;
         edDocDate = SBOApp.Forms.Item(FormUID).Items.Item("10");
         specEdDocDate = (SAPbouiCOM.IEditText)edDocDate.Specific;
         oSheet.Cells[2, "F"] = "¹ " + specEdDocNum.String + " îò " + specEdDocDate.String;
         oXL.Visible = true;
         oXL.UserControl = true;
    BTW, don't forget to add Excel object in ProjectReferences
    For sure, importing  (reading) from Excel is the same
    HTH

  • Error in Exporting HRMS people data to excel using WEB EDI.

    Hi ,
    I am using an existing integrator to export people data to excel using WEB ADI.
    When the excel opens it first shows the it is trying to download data, but later shows an error message saying that an error has occurred in the script on this page
    line 18
    Char 5
    Error Object doesn't support this property or method.
    Can anyone please throw some light as to what can be the cause of the error.
    Regards
    Deepak

    Hi experts,
    When I click the "Upload" button on GL Journal WebADI, The following error message is displayed:
    http://myservername:port/OA_HTML/BneApplicationService?bne:encoding=UTF-8
    I think this error is similar as your previous discussion, and I tried the solution as you mentioned, but not worked. If there is any new solution for the errors of this kind?
    Some Environment parameters are as following:
    Product: EBS 12.1.1
    Browser: IE 7.0 and Firefox 3.5.5
    Hope for your advice.
    Thanks in advance.

  • Cannot refresh data in Excel Services with SQL Azure databases

    I am using Excel Services on a SharePoint Online.
    I get my data from a SQL Azure. When i create my Excel repor with Excel 2013 pro I have no problem. So I upload my file on my Sharepoint and try to refresh data.
    Connexion : Power Query - RPT_Event_ByEventType 
    Erreur : Erreur sur site (OnPremise) : Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI
    admin to register the data source in the Power BI admin center. 
    I do not understad why I get that error because my data source is on Azure why It told me "OnPremise" ?

    hi,
    >> this button of excel gets just address of web and have button for import it
         i test it by rest API project , but doesn't work, do you know how it is work?
    Do you mean that you don't know how to get the table? You may input the site address into the address box, and then click go button nearby, select the table you want to import into the Excel. Then click import button.That also works for  rest API,
    and your rest API should get the data that you want
    By the way, this is the forum for discussions about Excel develop(VBA ,customization), better to go to TechNet forum for Excel for Excel features question, so that you could get more professional help.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with writing continuous data to excel using using Report Generation vi's

    Hey Everyone,
    I am trying to read the data from DAQ and write to excel continuously using Report Generation vi's. 
    But when I run the VI, it writes only one interation of the while loop (gathering data from DAQ continuously) and doesn't append the data into the same file when I run it again after stoping the VI. 
    I have attached the VI i created. Please let me know if you have any idea to solve this issue. 
    Thanks
    Attachments:
    sample 5.vi ‏35 KB

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • Save data to excel using froms_ole builtin

    Hi All,
    can somebody send me an example how to save any data to excel workbook
    using FORMS_OLE builtin package (or OLE2 in later versions) ?
    I'm working with forms 4.5
    Thanks
    Brano

    For merging of cells you can refer following code!
    [Merging of cells.|https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/oleconceptfordownloadingthereportoutputintoexcel]
    Regards,
    Lalit Mohan Gupta.

  • Export data to excel using DOI(desktop Office integration) technique

    Hi Experts,
    I have the requirement to export data to excel file, I have some idea using OLE but no idea of exporting to excel using DOI, Please help me by providing sample code for it.
    My requirement also include merging of cells and coloring of cells.
    Thanks
    Rohit

    For merging of cells you can refer following code!
    [Merging of cells.|https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/oleconceptfordownloadingthereportoutputintoexcel]
    Regards,
    Lalit Mohan Gupta.

  • Export data to Excel + use of xsd

    Hi,
    I'd like to export data from oracle to excel using pl/sql. These files go to subcontractors who will have to make some kind of customization to that data. I want to prevent these subcontractors from writing trash to this excelfile (writing text to a numbercolumn). As far as I know, this can be done using xml schema (supported since excel 2003).
    Is it possible to generate an excelfile using pl/sql and also include an xml-schema according to the columntype defined inside the database?
    Oracle Version is 11GR1
    Thanks

    Thanks for your reply.
    As far as my understanding of xml and xsd is correct: XML is used to transfer data to an excel-sheet. This is the data from a table/query or something like that.
    The XML Schema defines the structure of this data. Lets say you have the following table:
    create table test(
    x number
    ,y varchar2(20)
    Exporting the content of this table might result in the following excel-sheet
    x | y
    |20 | test |
    |30 | test |
    Because this excelfile is sent to a subcontractor, I can't control the data he inserts into x or y. He might insert
    x | y
    |20 | test |
    |30 | test |
    |test | 40 |
    When trying to import this table, there would be errors. Now I'll call the subcontractor telling him that he's not allowed to insert text into x. To avoid this situation, I'd like to use XML Schema. If there is another way to prevent this situation from happening, pls tell me.

  • Some problem of download BSP data into excel using  cl_bsp_utility= download

    Hello Experts,
    I have read the blog of thomas.jung for download bsp data into excel, and it's working correct, and after some try and error, now I can download the excel with multi sheets.It's all cool except one thing.....when I add a button on the standard screen of the supplier qualification of the slc to download the excel file, after the popinp up screen, the standard screen can't do any operation at all......there are no any error message and the downloaded file is all correct .
    Does any one know what can I do?

    any ideas?
    By the way, after some research, maybe the issue was caused by the setup of the button, but I don't know how to fix it...0rz
    the standard code for buttton is
    lv_id = mv_id && '>display'.
    lo_edit_display_button = cl_thtmlb_button=>factory( id       = lv_id
                                                       text     = lv_button_text
                                                   tooltip  = lv_button_text
                                                   enabled  = 'TRUE'
                                                  onclick  = lv_button_action ).
    WHILE io_page_context->element_process( element = lo_edit_display_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.
    so I copy it and modify like this:
    lv_id = mv_id && '>download'.
        lo_download_excel_button = cl_thtmlb_button=>factory( id       = lv_id
                                                            text     = w_text
                                                        tooltip  = w_text
                                                        enabled  = 'TRUE'
        onclick  = /srmsm/if_ql_ext_ui_c=>ZC_ACTION_DOWNLOAD_EXCEL
    WHILE io_page_context->element_process( element = lo_download_excel_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.

  • EXCEL ONLINE - Automaticly refresh data in excel from the online data

    Hi
    Love some help with this one
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    DESRCIPTION
    We use excelonline for about 5 users to access the same 5MB excel file. Now because excelonline does not allow marcos to be run, proper printing and proper copy and paste in html formats (we need to copy and paste sheets into outlook in html format or run
    macros) we need to open the desktopexcel application to use printing and copy functions into outlook.
    All 5 users need to enter the data in excelonline then SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we then click okay. Great we now have the
    latest data. We can then run macros etc....
    We then close down desktopexcel and enter more online data through the day and have to repeat SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we
    then click okay. Great we now have the latest data. We can then run macros etc....
    We have to repeat this many times over the same day... that is 5 people doing like this though out the day. Wasting alot of time.
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    Regards
    Lee

    Thank you.
    If I understand correctly from your advice, that is I should create QaaWs to pull data from SAP BI, which will return data in tabular format. Map the data in the cell range of a hidden tab, re-arrange and format the data into the row?
      Another concern: I need to display data for 4 quarters (Q1, Q2, Q3,Q4) in the dashboard, but QAAWS will only pulls data when the data is available in the database.
       Eg. Only data for 3 quarters are found in the database, QAAWS will return data for Q1, Q2,Q4.
             This will mess up the position fixed in the xcelsius. Do you have any suggestion on this?
       Sorry to bother u for the simple questions.
       Thank you.

  • Import data from excel using caption

    Hi
    I have an access database which I imported to PowerPivot .
    the database contains fields with ugly names, and captions with readable names
    when I get the data into PowerPivot it takes only the ugly fields names and not the captions.
    how can I get PowerPivot to get the captions so the end user will get names that he can use?
    Thank you

    Hello,
    The column description in MS Access is meta data and I don't know any import tool, like Excel / Power Pivot / Power Query, which supports to use "description" instead of the column namen; even because entering a "description" is
    not mandatory in MS Access, while a column name always is.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Help: writing large data to excel using java

    Hi All
    I had a question writing a 6000 rows of data with 20 colums to a excel sheet. I am using Apache POI
    When we are writing some data to a file we store the data in an stringbuffer and then write the data to the file all at once.
    Is the same possible with excel? if so how?
    And what is the best way of wring data to an EXCEL file considering the above data into consideration.
    Please guide me thanks in advance.
    Regards
    Diana

    Text Files and Excel formatted files treat things differently--basically no, you cannot group multiple fields into one string: Excel has the concept of cells that you need to write the data into and will act similar to fields in a DB. On the other hand, you can drop the Excel formatting and write CSV files and Excel will load them just fine. With a CSV file you can write it all to a String, StringBuffer, StringBuilder or what ever String type of object you want and write an entire line at a time.

  • Search and replace data in excel using a text file

    Hi Scripting Guy:
    I was able to write a script based on all the examples in your blogs, but now I'm stuck:
    I have a text file, which has Server Name, IP Address, Comments
    ABCserver1, 1.1.1.1, remote web server
    DEFserver2, 2.2.2.2, remote app server
    XYZserver3, 3.3.3.3, remote api server
    I have a excel file which has Server Name, IP Address, Protocol, Port. Server Name, and IP Addreess can repeat itself more than once in entire spreadsheet at any location: 
    Server1, x.x.x.x, TCP, 80
    Server2, x.x.x.x, TCP, 80
    Server3, x.x.x.x, TCP, 80
    My script search for the excel spreadsheet for a array that I have defined [Server1,Server2,Server3,...], once the first value matches in spreadsheet it replaces all values of Server1 with first value in text file i.e: ABCServer1 so my new excel sheet looks
    this:
    ABCserver1, x.x.x.x, TCP, 80
    DEFserver2, x.x.x.x, TCP, 80
    XYZserver3, x.x.x.x, TCP, 80
    What I also want is, when I replaces the "Server1" value in spreadsheet, it will also replace the IP Address in next column. This is where I'm stuck I can replace the value of Server Name, but I can't replace the IP address for text file. Remember
    "Server1" can be found at any place in spreadsheet but it will always have IP address column next to it.
    So this is what script will do if runs correctly:
    1) Read text file:
    ABCserver1, 1.1.1.1, remote web server
    DEFserver2, 2.2.2.2, remote app server
    XYZserver3, 3.3.3.3, remote api server
    2) Before script run on excel sheet
    Server1, x.x.x.x, TCP, 80
    Server2, x.x.x.x, TCP, 80
    Server3, x.x.x.x, TCP, 80
    3) After script run on excel sheet
    ABCserver1, 1.1.1.1, TCP, 80
    DEFserver2, 2.2.2.2, TCP, 80
    XYZserver3, 3.3.3.3, TCP, 80
    If you will see my script is able to replace "Server Name" in entire spreadsheet, but can't copy or replace the corespondent IP address in next column. 
    script:
    $text = "Server1","Server2","Server3"
    $replace=$replace = get-content C:\script\test.txt | foreach{ ($_.split(","))[0]}
    $File = "C:\script\test.xlsx"
    $now = [datetime]::now.ToString("yyyy-MM-dd")
    #$now = get-date -Format "MM-dd-yyyy_hh:mm:ss"
    copy-Item C:\script\test.xlsx test_$now.xlsx
    # Setup Excel, open $File and set the the first worksheet
    $i=0
    $Excel = New-Object -ComObject Excel.Application
    $Excel.visible = $true
    $Workbook = $Excel.workbooks.open($file)
    $Worksheets = $Workbooks.worksheets
    $Worksheet = $Workbook.Worksheets.Item(1)
    $Range = $Worksheet.UsedRange
    Foreach($SearchString in $text){
    if ($Range.find("$SearchString")) {
        $Range.replace($SearchString,$replace[$i])
    else {$i++}
    $WorkBook.Save()
    $WorkBook.Close()
    [void]$excel.quit()
    Really appreciate your help
    Thanks

    Hey, thanks for helping me out. I checked online and I had to call Cells this way:
    $Workbook.Worksheets.Item(1).Cells.item($cell.Row,$cell.Column+1)=$test[$i].replace
    one problem I'm having is if the $server value repeats itself in excel sheet again it doesn't replace all values for lets see server 1:
    so thats how my excel sheet is:
    server1
    x
    TCP
    80
    server2
    x
    TCP
    80
    server3
    x
    TCP
    80
    server1
    x
    TCP
    80
    when I run the script thats how results looks:
    server1
    x
    TCP
    80
    REM88888SQL301A
    10.1.1.2
    TCP
    80
    REM88888SQL301B
    10.1.1.3
    TCP
    80
    REM88888SQL301
    10.1.1.1
    TCP
    80
    It skipped the line one on excel and changed value in line 4. As I mentioned above this can repeat $server can repeat itself anywhere in spreadsheet in multiple columns.
    What can we do so it will replace all server name and IP address?
    Thanks

  • Export datas to Excel (Using Web Utilities)

    Hi,
    This is the procedure to export the datas from Data Block to the excel sheet. It woks fine in the client-server arch (by replaceing CLIENT_OLE2 with OLE2). But i need to execute in Appication Server Arch. so I prefixed "CLIENT_" , but it is not working. Is there any suggestion to implement it.
    PROCEDURE pr_Forms_to_Excel(p_block_name IN VARCHAR2 DEFAULT NAME_IN('system.current_block')) IS
    -- Declare the OLE objects
    application CLIENT_OLE2.OBJ_TYPE;
    workbooks CLIENT_OLE2.OBJ_TYPE;
    workbook CLIENT_OLE2.OBJ_TYPE;
    worksheets CLIENT_OLE2.OBJ_TYPE;
    worksheet CLIENT_OLE2.OBJ_TYPE;
    cell CLIENT_OLE2.OBJ_TYPE;
    range CLIENT_OLE2.OBJ_TYPE;
    range_col CLIENT_OLE2.OBJ_TYPE;
    -- Declare handles to OLE argument lists
    args CLIENT_OLE2.LIST_TYPE;
    -- Declare form and block items
    form_name VARCHAR2(100);
    f_block VARCHAR2(100);
    l_block VARCHAR2(100);
    f_item VARCHAR2(100);
    l_item VARCHAR2(100);
    cur_block VARCHAR2(100) := NAME_IN('system.current_block');
    cur_item VARCHAR2(100) := NAME_IN('system.current_item');
    cur_record VARCHAR2(100) := NAME_IN('system.cursor_record');
    item_name VARCHAR2(100);
    baslik VARCHAR2(100);
    row_n NUMBER;
    col_n NUMBER;
    filename VARCHAR2(100);
    ExcelFontId CLIENT_OLE2.list_type;
    BEGIN
    -- Start Excel
    application:=CLIENT_OLE2.CREATE_OBJ('Excel.Application');
    CLIENT_OLE2.SET_PROPERTY(application, 'Visible', 'True');
    -- Return object handle to the Workbooks collection
    workbooks:=CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Workbooks');
    -- Add a new Workbook object to the Workbooks collection
    workbook:=CLIENT_OLE2.GET_OBJ_PROPERTY(workbooks,'Add');
    -- Return object handle to the Worksheets collection for the Workbook
    worksheets:=CLIENT_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    -- Get the first Worksheet in the Worksheets collection
    -- worksheet:=CLIENT_OLE2.GET_OBJ_PROPERTY(worksheets,'Add');
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 1);
    worksheet:=CLIENT_OLE2.GET_OBJ_PROPERTY(worksheets,'Item',args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- Return object handle to cell A1 on the new Worksheet
    go_block(p_block_name);
    baslik := get_block_property(p_block_name,FIRST_ITEM);
    f_item := p_block_name||'.'||get_block_property(p_block_name,FIRST_ITEM);
    l_item := p_block_name||'.'||get_block_property(p_block_name,LAST_ITEM);
    first_record;
    LOOP
    item_name := f_item;
    row_n := NAME_IN('SYSTEM.CURSOR_RECORD');
    col_n := 1;
    LOOP
    IF get_item_property(item_name,ITEM_TYPE)<>'BUTTON' AND
    get_item_property(item_name,VISIBLE)='TRUE'
    THEN
    -- Set first row with the item names
    IF row_n=1 THEN
         args := CLIENT_OLE2.create_arglist;
         CLIENT_OLE2.add_arg(args, 1);
         CLIENT_OLE2.add_arg(args, col_n);
         cell := CLIENT_OLE2.get_obj_property(worksheet, 'Cells', args);
         CLIENT_OLE2.destroy_arglist(args);
         --cell_value := CLIENT_OLE2.get_char_property(cell, 'Value');
         ExcelFontId := CLIENT_OLE2.get_obj_property(Cell, 'Font');
         CLIENT_OLE2.set_property(ExcelFontId, 'Bold', 'True');
    baslik:=NVL(get_item_property(item_name,PROMPT_TEXT),baslik);
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, row_n);
    CLIENT_OLE2.ADD_ARG(args, col_n);
    cell:=CLIENT_OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.SET_PROPERTY(cell, 'Value', baslik);
    CLIENT_OLE2.RELEASE_OBJ(cell);
    END IF;
    -- Set other rows with the item values
    args:=CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, row_n+1);
    CLIENT_OLE2.ADD_ARG(args, col_n);
    cell:=CLIENT_OLE2.GET_OBJ_PROPERTY(worksheet, 'Cells', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    IF get_item_property(item_name,DATATYPE)<>'NUMBER' THEN
    CLIENT_OLE2.SET_PROPERTY(cell, 'NumberFormat', '@');
    END IF;
    CLIENT_OLE2.SET_PROPERTY(cell, 'Value', name_in(item_name));
    CLIENT_OLE2.RELEASE_OBJ(cell);
    END IF;
    IF item_name = l_item THEN
    exit;
    END IF;
    baslik := get_item_property(item_name,NEXTITEM);
    item_name := p_block_name||'.'||get_item_property(item_name,NEXTITEM);
    col_n := col_n + 1;
    END LOOP;
    EXIT WHEN NAME_IN('system.last_record') = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    -- Autofit columns
    range := CLIENT_OLE2.GET_OBJ_PROPERTY( worksheet,'UsedRange');
    range_col := CLIENT_OLE2.GET_OBJ_PROPERTY( range,'Columns');
    CLIENT_OLE2.INVOKE( range_col,'AutoFit' );
    CLIENT_OLE2.RELEASE_OBJ( range );
    CLIENT_OLE2.RELEASE_OBJ( range_col );
    -- Get filename and path
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG( args, p_block_name );
    CLIENT_OLE2.ADD_ARG( args,'Excel Workbooks (*.xls, *.xls');
    filename := CLIENT_OLE2.INVOKE_CHAR( application,'GetSaveAsFilename',args );
    CLIENT_OLE2.DESTROY_ARGLIST( args );
    -- Save as worksheet
    IF NVL(filename,'0')<>'0' THEN
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG( args,filename );
    CLIENT_OLE2.INVOKE( worksheet,'SaveAs',args );
    CLIENT_OLE2.DESTROY_ARGLIST( args );
    END IF;
    -- Close workbook
    --CLIENT_OLE2.INVOKE( workbook ,'Close');
    -- Release the OLE objects
    CLIENT_OLE2.RELEASE_OBJ(worksheet);
    CLIENT_OLE2.RELEASE_OBJ(worksheets);
    CLIENT_OLE2.RELEASE_OBJ(workbook);
    CLIENT_OLE2.RELEASE_OBJ(workbooks);
    --CLIENT_OLE2.INVOKE(application, 'Quit');
    CLIENT_OLE2.RELEASE_OBJ(application);
    -- Focus to the original location
    go_block(cur_block);
    go_record(cur_record);
    go_item(cur_block||'.'||cur_item);
    END;
    Thanks in advance.
    Rizly

    Hi Simon,
    It is not giving any error message, but not generaitng the output also. But if i removed all the prefixed CLIENT_ , then I will get the out put in the Application Server machience (Export the datas from the argument DataBlock to the Excel sheet) , but I need the same in the Client Machience, thats why I prefixed the CLIENT_, but i thing even though it wont for every methods, because i read like that in the Webutil Demo Documentation.
    Thank U, Thank U Very much
    Rizly

Maybe you are looking for

  • I have an IPhone 4 that I just activated yesterday with a pre paid plan, but data doesn't work

    I activated the phone yesterday.  The wifi works but the 3g data does not.  I have between 3-5 bars of strength but the phone will not connect to the internet.  I had a virgin mobile pre paid phone that did not give me any trouble.  Please help.  I h

  • Everytime i answer my phone it goes to speaker phone right a way. how do i fix that?

    Evertime I answer my phone it goes to the speaker phone right away is there a way to turn that off? I went to my phone carrier they could not help me and told me to ask APPLE. if you can help that will be great. Thanks Dawn

  • How to write on a new line ("\n") to a file

    I dont know how to write on a new line ... this method writes everything in long line. I tried doing pS.println("\n") before the pS.println(buffer.toString()); Some one please direct me :) public void WriteToFile() {      try {           byte[] recor

  • HP 2520hc Printer - Scanning in JPG?

    Hi I have been using HP2520hc printer and every single time I scan my document, it will turn out to be JPG document. It is very frustrating as I need to change the document from jpg to pdf manually myself via other means. I wish to set it to be pdf d

  • Rosetta emulation gone on iMac 20" (2GHz, 10.5.5)

    A few days ago, I noticed that some apps don't work anymore. They all are PPC. Now I tried to open a universal binary file (iChat, Safari) with Rosetta (used the file information and checked the rosetta option) and the app didn't work either. So it l