Write table to excel at specific location

Hi!
I want to write table to the excel file in the position
E23:To J60.
Can anybody please tell me the solution.
Thanks
Kaustubh

The examples function just fine in LV 7
Here are som vi's that may (or may not) help you out.
Joe.
"NOTHING IS EVER EASY"
Attachments:
excel.llb ‏2097 KB

Similar Messages

  • Write Table to Excel

    I have taken the write table to xl.vi example and modified it so that I can use it. Write now I have a vi setup that displays certain columns of data that I am pulling from a txt file in both a graph and a table. Then I am trying to write this table to xl by following the example, however I get the error 97 when running the vi, and a blank excel workbook opens up. I think this has something to do with how the table I have created is used to try and enter this into excel. Any help you can provide would be greatly appreciated. Thanks.
    Attachments:
    Data_Display_2.vi ‏134 KB

    Error 97 is "LabVIEW: Null Refnum was passed in as input."
    You might wanna check whether the Automation Refnum is linked to the correct ActiveX class in the "Open Excel" VI.
    In your diagram, as Dennis pointed out, it has no dataflow. The row header and column header in your table are both empty as well. That results in three for-loops doing nothing. Wire your "Hour" variable directly to the input of the third loop instead. Also at the end of the program, you should close all opened references regardless of the "Completion Task". Put only the invoke node "application quit" in the case structure should do.
    Hope this helps.
    Dan

  • Reading XML file from specific location&Storing xmldata into related tables

    I am new to xml.
    My requirement is,
    1) Get the xml file from specified location (C:\xmlfiles\ xmldata.xml)
    2)Convert xml data in clob data.
    3)store the data into related table.
    and vice-versa.
    What i did,
    a) I got the data from related tables and converted into xmlformat using SQLX
    b)converted this resultset into clob data and stored as xml file in specific location.
    It uses more then ten tables.
    All this help i got from AskTom site , thanks for that.
    Now i have to do vise-versa, i.e. i have to perform 1), 2), 3) steps........
    Please tell me proper steps to acheive it.
    Thanks in advance for giving your precious time to solve my issue.

    Have you read the"XMLDB FAQ" in this Forum?
    You could use stuff like:
    create or replace directory xmldir as C:\xmlfiles'
    declare
    xmldata xmltype;
    begin
    xmldata := xmltype(bfilename('XMLDIR','xmldata.xml'),nls_charset_id('AL32UTF8'));
      -- etc, etc your code --
      -- --> convert to clob by using for instance getclobval() function
      -- --> then insert the data in your relational table with CLOB column
      -- etc, etc your code --
    end;
    /

  • Problem with write a table to excel

    I want to open an existing Excel-file from Labview with ActiveX.
    I have used the Example "write table XL.vi"
    I changed the code that I can open the existing file but I am unable to
    select a different sheet in Excel.There is always the first sheet active
    and I cannot change this.
    Can anybody help me?
    robert
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    wrote in message
    news:8q4e0a$hsa$[email protected]..
    > I want to open an existing Excel-file from Labview with ActiveX.
    > I have used the Example "write table XL.vi"
    > I changed the code that I can open the existing file but I am unable to
    > select a different sheet in Excel.There is always the first sheet active
    > and I cannot change this.
    > Can anybody help me?
    The workbook object has a "Sheets" property that returns a collection of all
    the sheets in the active workbook. Use the "Item" method on this collection
    to select the sheet you want- if necessary by cycling through all the
    elements (use the "Count" property to find how many objects there are) and
    using the "Name" property to get the name of the worksheet for comparison
    with the one
    you're looking for. Remember that everything is case sensitive.

  • Save an excel in specific loaction

    Iam exporting my report from crystal report to excel by using a button and formatting this excel sheet using macro by clicking another button.When i export to excel this opens the excel sheet in the browser.i don't want to be seen in the browser but want to save directly in local directory in a specific location with same file name.Is all this exporting & formatting possible in single step so that it is not complicated for the end user to use it.
    Thanks
    SPRZZ

    this has to do with the browser configuration and how it handles file types
    it might be out of your hands, cuz it's a mime type config issue probabaly
    but you could make the extension different, like instead of .xls you could write it as .xlz or something and then the system would surely prompt the user, but the user would then have to associate the file or rename later
    sorry that's not much help, but don't know what you CAN do here

  • How to export data from a Dynpro table to Excel file?

    Hi
    Here I go again. I read the post <b>Looking for example to export data from a DynPro table to Excel file</b> and put the code lines into a Web Dynpro Project where we need to export a dynpro table to Excel file but exactly at line 23 it doesn't recognize <b>workBook = new HSSFWorkbook();</b>
    1     //Declare this in the end between the Begin others block.
    2     
    3     private FileOutputStream out = null;
    4     private HSSFWorkbook workBook = null;
    5     private HSSFSheet hsSheet = null;
    6     private HSSFRow row = null;
    7     private HSSFCell cell = null;
    8     private HSSFCellStyle cs = null;
    9     private HSSFCellStyle cs1 = null;
    10     private HSSFCellStyle cs2 = null;
    11     private HSSFDataFormat dataFormat = null;
    12     private HSSFFont f = null;
    13     private HSSFFont f1 = null;
    14     
    15     //Code to create the Excel.
    16     
    17     public void onActionExportToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    18     {
    19     //@@begin onActionExportToExcel(ServerEvent)
    20     try
    21     {
    22     out = new FileOutputStream("C:/mydirectory/myfiles/testexcel.xls");
    23     workBook = new HSSFWorkbook();
    24     hsSheet = workBook.createSheet("My Sheet");
    25     cs = workBook.createCellStyle();
    26     cs1 = workBook.createCellStyle();
    27     cs2 = workBook.createCellStyle();
    28     dataFormat = workBook.createDataFormat();
    29     f = workBook.createFont();
    30     f1 = workBook.createFont();
    31     f.setFontHeightInPoints((short) 12);
    32     // make it blue
    33     f.setColor( (short)HSSFFont.COLOR_NORMAL );
    34     // make it bold
    35     // arial is the default font
    36     f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    37     
    38     // set font 2 to 10 point type
    39     f1.setFontHeightInPoints((short) 10);
    40     // make it red
    41     f1.setColor( (short)HSSFFont.COLOR_RED );
    42     // make it bold
    43     f1.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    44     f1.setStrikeout(true);
    45     cs.setFont(f);
    46     cs.setDataFormat(dataFormat.getFormat("#,##0.0"));
    47     
    48     // set a thick border
    49     cs2.setBorderBottom(cs2.BORDER_THICK);
    50     
    51     // fill w fg fill color
    52     cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
    53     cs2.setFillBackgroundColor((short)HSSFCellStyle.SOLID_FOREGROUND);
    54     // set the cell format to text see HSSFDataFormat for a full list
    55     cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
    56     cs2.setFont(f1);
    57     cs2.setLocked(true);
    58     cs2.setWrapText(true);
    59     row = hsSheet.createRow(0);
    60     hsSheet.createFreezePane(0,1,1,1);
    61     for(int i=1; i<10;i++)
    62     {
    63     cell = row.createCell((short)i);
    64     cell.setCellValue("Excel Column "+i);
    65     cell.setCellStyle(cs2);
    66     }
    67     workBook.write(out);
    68     out.close();
    69     
    70     //Read the file that was created.
    71     
    72     FileInputStream fin = new FileInputStream("C:/mydirectory/myfiles/testexcel.xls");
    73     byte b[] = new byte[fin.available()];
    74     fin.read(b,0,b.length);
    75     fin.close();
    76     
    77     wdContext.currentContextElement().setDataContent(b);
    78     }
    79     catch(Exception e)
    80     {
    81     wdComponentAPI.getComponent().getMessageManager().reportException("Exception while reading file "+e,true);
    82     }
    83     //@@end
    84     }
    I don't know why this happen? Any information I will appreciate it.
    Thanks in advance!!!
    Tokio Franco Chang

    After test the code lines appears this error stacktrace:
    [code]
    java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.ExportToExcel.onActionAct1(ExportToExcel.java:232)
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.wdp.InternalExportToExcel.wdInvokeEventHandler(InternalExportToExcel.java:147)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:252)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Thanks in advance!!!
    Tokio Franco Chang
    [/code]

  • Problem While exporting HTML table to Excel(.CSV) in SharePoint 2010

    Hi ,
    I was exporting HTML table to .CSV file. 
    Problem is if any field contains '>' or '<' symbol then after exporting to .CSV, it was showing like '&gt' and '&lt' and the code is  as below.
    //Export HTML table to CSV 
    function toCSV() {
          var data = document.getElementById('reportstable');
          var csvData = [];
          var tmpArr = [];
          var tmpStr = '';
          for (var i = 0; i < data.rows[0].cells.length; i++) 
            tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
          csvData.push(tmpArr.join('\t'));
          for (var i = 1; i < data.rows.length; i++) 
            tmpArr = [];
            for (var j = 0; j < data.rows[0].cells.length; j++) 
            tmpArr.push(data.rows[i].cells[j].innerHTML);
            csvData.push(tmpArr.join('\t'));
          var output = csvData.join('\n');
          SaveContents(output);
    //For saving the file
    function SaveContents(element) {
            if (document.execCommand) {
                var oWin = window.open("about:blank","_blank");
                oWin.document.write(element);
                oWin.document.close();
                var success = oWin.document.execCommand('SaveAs', false, "FilteredReport.xls")
                oWin.close();
    Thanks in Advance

    Hi,
    According to your post, a problem occurred when you exported the HTML table to Excel(.CSV).
    The following code for your reference:
    function toCSV() {
    var data = document.getElementById('reportstable');
    var csvData = [];
    var tmpArr = [];
    var tmpStr = '';
    for (var i = 0; i < data.rows[0].cells.length; i++)
    tmpArr.push((data.rows[0].cells[i].innerText || data.rows[0].cells[i].textContent));
    csvData.push(tmpArr.join('\t'));
    for (var i = 1; i < data.rows.length; i++)
    tmpArr = [];
    for (var j = 0; j < data.rows[0].cells.length; j++)
    tmpArr.push(data.rows[i].cells[j].innerHTML);
    csvData.push(tmpArr.join('\t'));
    var output = csvData.join('\n');
    SaveContents(output.replace(/&lt;/g, '<').replace(/&gt;/g, '>'));
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Downloding from internal table to excel

    Hi All,
    I am using ole concept to download data from internal table to excel because i want to fill few records with colors and few with bold etc.
    But this ole concept is downloading to excel line by line and taking much time.
    How can i improve the performance in this concept or is there any other concept please let me know.
    i am using fallowng logic to download to excel.
    *Generating the Excel report in the foreground
    data: h_excel type ole2_object, " Excel object
    h_mapl type ole2_object, " list of workbooks
    h_map type ole2_object, " workbook
    start Excel
    create object h_excel 'EXCEL.APPLICATION'.
    set property of h_excel 'Visible' = 1.
    get list of workbooks, initially empty
    call method of h_excel 'Workbooks' = h_mapl.
    perform err_hdl.
    add a new workbook
    call method of h_mapl 'Add' = h_map.
    perform err_hdl.
    output column headings to active Excel sheet
    perform fill_cell using 1 1 1 000 'Job Name'(001).
    perform fill_cell using 1 2 1 000 'Variant'(002).
    perform fill_cell using 1 3 1 000 'Description'(003).
    perform fill_cell using 1 4 1 000 'Run Date'(004).
    perform fill_cell using 1 5 1 000 'Run Time'(005).
    perform fill_cell using 1 6 1 000 'Duration'(006).
    perform fill_cell using 1 7 1 000 'Spool'(007).
    perform fill_cell using 1 8 1 000 'Records Upl'(008).
    perform fill_cell using 1 9 1 000 'Error'(009).
    perform fill_cell using 1 10 1 000 'Total'(010).
    perform fill_cell using 1 11 1 000 'Action'(011).
    perform fill_cell using 1 12 1 000 'ReRun'(012).
    loop at t_final.
    copy datato active EXCEL sheet
    h = sy-tabix + 1.
    perform fill_cell using h 1 0 000 t_final-jobname.
    perform fill_cell using h 2 0 000 t_final-variant.
    perform fill_cell using h 3 0 000 t_final-description.
    perform fill_cell using h 4 0 000 t_final-strtdate.
    perform fill_cell using h 5 0 000 t_final-strttime.
    perform fill_cell using h 6 0 000 t_final-duration.
    perform fill_cell using h 7 0 000 t_final-listident.
    perform fill_cell using h 8 0 000 t_final-rec_upl.
    perform fill_cell using h 9 0 000 t_final-rec_err.
    perform fill_cell using h 10 0 000 t_final-rec_tot.
    if t_final-comment eq 'job did not run'.
    perform fill_cell using h 11 0 200 t_final-comment.
    elseif t_final-rec_err eq 0.
    perform fill_cell using h 11 0 000 t_final-comment.
    else.
    perform fill_cell using h 11 0 200 t_final-comment.
    endif.
    perform fill_cell using h 12 0 000 t_final-rerun.
    endloop.
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
    call method of h_excel 'Worksheets' = h_mapl." EXPORTIN G #1 = 2.
    perform err_hdl.
    add a new workbook
    call method of h_mapl 'Add' = h_map exporting #1 = 2.
    perform err_hdl.
    tell user what is going on
    set property of h_map 'NAME' = 'COPY'.
    loop at t_final.
    copy flights to active EXCEL sheet
    h = sy-tabix + 1.
    perform fill_cell using h 1 0 000 t_final-jobname.
    perform fill_cell using h 2 0 000 t_final-variant.
    perform fill_cell using h 3 0 000 t_final-description.
    perform fill_cell using h 4 0 000 t_final-strtdate.
    perform fill_cell using h 5 0 000 t_final-strttime.
    perform fill_cell using h 6 0 000 t_final-duration.
    perform fill_cell using h 7 0 000 t_final-listident.
    perform fill_cell using h 8 0 000 t_final-rec_upl.
    perform fill_cell using h 9 0 000 t_final-rec_err.
    perform fill_cell using h 10 0 000 t_final-rec_tot.
    if t_final-comment eq 'job did not run'.
    perform fill_cell using h 11 0 200 t_final-comment.
    elseif t_final-rec_err eq 0.
    perform fill_cell using h 11 0 000 t_final-comment.
    else.
    perform fill_cell using h 11 0 200 t_final-comment.
    endif.
    perform fill_cell using h 12 0 000 t_final-rerun.
    endloop.
    free object h_excel.
    perform err_hdl.
    *& Form ERR_HDL
    outputs OLE error if any *
    form err_hdl.
    if sy-subrc <> 0.
    write: / 'Batch Job Automation Carried Out Succesfully'.
    stop.
    endif.
    endform. " ERR_HDL .
    FORM FILL_CELL *
    sets cell at coordinates i,j to value val boldtype bold *
    form fill_cell using i j bold col val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    set property of h_f 'Color' = col.
    perform err_hdl.
    endform. "FILL_CELL

    Hi,
    You are populating the Cells one by one from the internal table, and all of them are coloured and font is bold. the method is OK, but when the amount of data is huge - it is going to take a longer time. May be the performance will improve a little if you turn the visibility off.
    I ll suggest you to use ALV_XXL_CALL, it can color the key columns, at the same time you can have colored headings - and the performance is good. It is the same function module called when you do a "Export to Excel" from an ALV grid. But you can compain about the Font characteristics - as this does not change the Font size etc.
    Your code has got a lot of freedom as long as the formatting is concerned - for bigger data - i ll suggest you to use a WS_DOWNLOAD kind of a function module to get the data at once in the presentation server and then call Excel methods and do the formatting.

  • How to send html table to Excel in PSP?

    Hi,
    I am writing a plsql server page program that produces multiple tables. I only want to export only one of the tables to Excel by pressing a button/link if possible. How to do that? Currently, if i right clicked on that table, then choose "Export to Excel" it will prompt me for the username/password to log into my application before exporting to Excel. How can I avoid the username/pw portion and export only that table to Excel.
    If I use the owa_util.mime_header, I can pass the url to it but it will export all the tables in my psp.
    Thanks in advance!
    kwong

    user464216 wrote:
    I am writing a plsql server page program that produces multiple tables. I only want to export only one of the tables to Excel by pressing a button/link if possible. How to do that? Currently, if i right clicked on that table, then choose "Export to Excel" it will prompt me for the username/password to log into my application before exporting to Excel. How can I avoid the username/pw portion and export only that table to Excel.That is a web server authentication issue - not a PL/SQL issue. The web server deems the URL (for the export) as being unauthorised and thus request authentication details from the web browser. This happens before your PL/SQL code is executed. So you cannot deal with this in PL/SQL itself. That base URL is a location definition in the Apache config file - and that is where access to it is configured, together with authentication details.
    Please note that there's also a difference between exporting data in a Microsoft Excel format and exporting data in a CSV (Comma Separated Values) format. CSV is not an Excel format. Never was. It has been around long before Excel existed. So please make sure that you use the correct technical terminology when describing a technical problem. Thanks.

  • Write data in Excel Sheet

    I want to write data from oracle table to Excel sheet in formated way like bold or merge the cell in case of same value.
    Edited by: shiv kumar on Jul 27, 2010 10:18 AM

    Read Suns JDBC Tutorial, then if there is already an Excel spreadsheet set up to use as an ODBC datasource use JDBC and the JDBC/ODBC bridge. If there is not an already setup ODBC Datasource then Google POI HSSF and/or JExcel to do the Excel part.

  • Limit size of tables in excel

    Hi everyone, i'm trying to export a table to excel and I'm having some trouble.
    First, I used "Write To Spreadsheet File.vi" to create a .xls file, and that worked perfectly, but now I need to export another table to a different sheet of the same xls file (whose name we should be able to choose), so I've begun to use the ActiveX controls.
    I can create the new sheet with the name desired, and write the data into it, but the problem is that it doesn't show only my table, but also ALL of the cells (65536 x VI) with the value #N/A.
    I can solve the problem in one of the dimensions, but not in both of them. It's the first time I use the ActiveX functions (I've built this VI with the help of other examples I've found in the forum), so I think I'm missing something important.
    What can I do to show ONLY my table?
    Thanks a lot for your time and knowledge.
    Solved!
    Go to Solution.
    Attachments:
    Tablexcel.7z ‏91 KB

    Thank you very much ben64, now I understand better how the ActiveX works (specially the "Cell1" and "Cell2" properties of "Range"), and the program does exactly what I wanted it to do.
    Now I added a few things just to close and save without showing the Excel window (the "workbook close" and "application quit" nodes, and the FALSE value to the "visible" entry of the "OPEN EXCEL" block ), but what I get by doing what you can see in the attached picture is Excel fastly opening and closing in less than a second... Any idea of how to do it without seeing the Excel window?
    Thanks again
    Arubio10
    Attachments:
    TablexcelDef.PNG ‏36 KB

  • Error -2147417851 for example write table to XL

    Hi, I want to save array data into excel. I try the example    write table to XL.vi 
    but error -2147417851 comes out 
    I have no idea to solve this error.
    Can anybody help?
    Thank you very much!
    Solved!
    Go to Solution.

    Oh, here is the example
    Attachments:
    Write Table To XL.vi ‏88 KB

  • Export tables to excel

    I had the free trial of Acrobat 9 pro and I was able to export tables to Excel without any issues. Bought Acrobat 9 and now I am not able to get the tables exported. Does anybody have any suggestions? Is pro that much better for exporting  tables?

    The trial and full version are identical except for the licensing aspect. General export to Excel was not available until AA XI, so I am not quite sure how you were exporting. In XI, it is simply going to File>Save As>SpreadSheet. In AA 9, the typical process was to select the columns desired with the select tool (use the alt key to allow the selection) and copy the columns to Excel. Adobe has not sold AA 9 for over 4 years as I recall. I did finally get AA 9 to come up on a machine and they did have a save as/export to XML (spreadsheet). However, the use of the alt key with the select also worked. As I recall, there was a way to copy in multiple columns too, but I am too rusty with 9 to remember.
    The problem may be the format of what you are trying to export. You did not indicate what the problem of the export was and so it is hard to judge. What specifically is happening when you try to export a table. A screen shot might help.

  • Access 2010: Using VBA to xport table to Excel, then modify the excel workbook externally?

    I've got some tables in Access which I export to Excel using VBA. Once exported, I'd like to add some pivot tables, special formatting and formulas into the workbook.  Any idea how to do this?  Here are some specific tasks after the export:
    1. Insert a pivot table into a 2nd sheet.  The pivot table will have a filter field.
    2. Format the column widths in that pivot table and add some conditional cell colors
    Anybody know how to code this?   I assume I'll need to export from access then open the excel file and use excel object model from within access?
    ajw

    You can certainly import Access tables into Excel:
    http://www.erlandsendata.no/english/index.php?d=envbadacimportado
    http://www.erlandsendata.no/english/index.php?d=envbadacimportdao
    http://www.erlandsendata.no/english/index.php?d=envbadacrs2ws
    See this too.
    http://www.accessmvp.com/KDSnell/EXCEL_Export.htm#WriteRstFile
    http://www.accessmvp.com/KDSnell/EXCEL_Export.htm#ExpCopyFromRst
    That's just several similar, but slightly different, ways to do the same thing.  Once your data is in Excel, turn on the Macro Recorder and run through the steps you need to do, to get the Pivot Table the way you want it, then turn off the Macro Recorder
    and view the code.
    You will almost certainly need to make some modifications to the recorded code, because everything will be fixed (hard-coded).  Post back with additional questions, or start a new thread, to see how to make the next part(s) work.  Just get comfortable
    with the first part(s) for now.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Export UI5 table to Excel

    Hello Experts,
    I have created a table in UI5 based on Odata Model.
    Now I want to download this table to Excel.
    I checked that this is possible through creating a xsjs file as mentioned here:
    Export to Excel in XS Project
    As seen in the thread, they have written query
    var query = 'SELECT TOP 25000 "PurchaseOrderId", "PartnerId","CompanyName", "CreatedByLoginName","History.CREATEDAT", "GrossAmount" '
    + 'FROM "sap.hana.democontent.epm.data::purchaseOrderHeaderExternal" order by "PurchaseOrderId"';
    Now my problem is that I am using input parameters in my UI to load table.
    So I want to know how to pass the input parameters to my xsjs file.
    And also is there any other way that I can use to export odata table directly to Excel?
    Regards,
    Rohit

    Hi Jacob,
    If you're on Java stack (which you are if you're using Apache POI anyway ), the most simple way is :
    1) Create a REST service which generates the Excel workbook:
        @GET
        @Path("/getexcelfile")
        public void getExcelFile(@Context HttpServletRequest request, @Context HttpServletResponse response) throws InternalServerErrorException {
            try {
                OutputStream out = null;
                try {
                    List yourData = <get your list of data>
                    String filename = "myexcel.xls";
                    response.setContentType("application/vnd.ms-excel");
                    response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
                    WritableWorkbook writableWorkbook = Workbook.createWorkbook(response.getOutputStream());
                    WritableSheet writableSheet = writableWorkbook.createSheet("My Excel Worksheet", 0);
                    createExcelHeaderRow(writableSheet);
                    createExcelSheetContent(yourData, writableSheet);
                    writableWorkbook.write();
                    writableWorkbook.close();
                } catch (Exception exception) {
                } finally {
                    if (out != null) out.close();
            } catch (Exception exception) {
    2) in your UI5 app, simply use a link to download your Excel file:
        var oDownloadExcelButton = new sap.ui.commons.Link( {
            text : "Download Excel File",
            href : "/<your_EAR_context>/<your_REST_context>/getexcelfile"

Maybe you are looking for

  • Exception Handling in OWB Urgent!!!

    Hi, I want to do error handling in OWB Mapping, how to achivw the same as there is no exception handling OPERATOR provided by OWB. Please let me know its URGET... Not: OWB version is 10g R1.

  • E-REC EHP5 - Prerequisites for MSS user for Create Requisition request

    We are implementing E-REC EHP5.  As a MSS user when line manager tries to create requisition request on portal, although it takes on a new page called "Stat Processes" we are getting error "no data available" and hence can not proceed on that page. W

  • Error : Contract does not match customer and item information[OSCI.ManufSN]

    I need to add Service Call from Service Contract through DIAPI. "Mfr. Serial no" is set as  "Unique serial no by" in system general settings. Creating two Customer Equipment Card from the cfl provided on Service Contract in Item Tab and Internal seri

  • Web Services for E-Business Suite 11.5.10.2

    Hello, I am trying to enable Web Services based integration for Oracle E-Business Suite 11.5.10.2. Has anyone done this? Would it be possible to share some experience here? Thanks. Rahul

  • HOW DO I Make White Background of an Image layer transparent?

    i used photoshop to open a photo with a person and background and delete the background so that now it's white with the person still fully intact. I open the file in and lay this image layer on top of another video layer track in fcut express and hop