Please see this post : Export to more than one excel sheet.

Hello Marvel team,
I have already post this question, but no answer :
I am looking to do something related to the export of data to an excel file and I am asking if one of you has do something like the following :
I need, on a click on a button export some data to more than one sheet in the same excel file.
I looked to what askTom propose, with the sylk format:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:728625409049
and this can resolve my problem in part, with sylk I can have what I want but only in one sheet and for me it's very important that I can export to more than one sheet in the same excel file.
Thanks for any help!
Jina.

XML may be what you need.
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>8580</WindowHeight>
<WindowWidth>15180</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>45</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
</Styles>
<Worksheet ss:Name="sheet1">
<Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="3" x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">This is on sheet 1</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">sheet1</Data></Cell>
<Cell><Data ss:Type="String">col 2</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">row3</Data></Cell>
<Cell><Data ss:Type="String">3,2</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>19</ActiveRow>
<ActiveCol>8</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet2">
<Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="3" x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">This is on sheet 2</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">sheet2</Data></Cell>
<Cell><Data ss:Type="String">row2</Data></Cell>
</Row>
<Row>
<Cell><Data ss:Type="String">col1</Data></Cell>
<Cell><Data ss:Type="String">col2row3</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>3</ActiveRow>
<ActiveCol>1</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>

Similar Messages

  • Export to mora than one excel sheet.

    Hello Marvel team,
    I am looking to do something related to the export of data to an excel file and I am asking if one of you has do something like the following :
    I need, on a click on a button export some data to more than one sheet in the same excel file.
    I looked to what askTom propose, with the sylk format:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:728625409049
    and this can resolve my problem in part, with sylk I can have what I want but only in one sheet and for me it's very important that I can export to more than one sheet in the same excel file.
    Thanks for any help!
    Jina.

    Using POI, you can create a native Excel Workbook with more than one Worksheet.
    For a first step using POI follow the steps posted under:
    "Export to Microsoft Excel from PLSQL Procedure"
    Re: Export to Microsoft Excel from PLSQL Procedure
    The following examples creates an excel with more than one sheet (and does a little bit of formating).
    Load this as described above to your 10g Database and build a pl/sql wrapper function around it:
    -- bof --
    import java.io.*;
    import org.apache.poi.hssf.usermodel.*;
    import org.apache.poi.hssf.util.*;
    public class HelloExcel {
    public static void main(String[] args) {
    HelloExcel d = new HelloExcel();
    d.write(null);
    public static String write(String text) {
    String result = "successful";
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet1 = wb.createSheet("first sheet");
    HSSFSheet sheet2 = wb.createSheet("second sheet");
    // style
    HSSFCellStyle style = wb.createCellStyle();
    style.setFillForegroundColor(HSSFColor.LIME.index);
    style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
    HSSFFont font = wb.createFont();
    font.setColor(HSSFColor.RED.index);
    style.setFont(font);
    HSSFRow row = null;
    HSSFCell cell = null;
    // Create a row and put some cells in it. Rows are 0 based.
    row = sheet1.createRow((short)0);
    // Create a cell and put a value in it.
    cell = row.createCell((short)0);
    cell.setCellValue(1);
    cell.setCellStyle(style);
    // Or do it on one line.
    row.createCell((short)1).setCellValue(1.1);
    row.createCell((short)2).setCellValue("This is a string 1");
    row.createCell((short)3).setCellValue(true);
    // Create a row and put some cells in it. Rows are 0 based.
    row = sheet2.createRow((short)0);
    // Create a cell and put a value in it.
    cell = row.createCell((short)0);
    cell.setCellValue(1);
    // Or do it on one line.
    row.createCell((short)1).setCellValue(1.2);
    row.createCell((short)2).setCellValue("This is a string 2");
    row.createCell((short)3).setCellValue(false);
    // Write the output to a file
    try {
    FileOutputStream fileOut = new FileOutputStream("c:\\temp\\HelloExcel.xls");
    wb.write(fileOut);
    fileOut.close();
    } catch(Exception ex) {
    result = ex.getMessage();
    return result;
    -- eof --
    hope that helps,
    Willi

  • Can this be used on more than one computer?

    Can this be used on more than one computer?  (Multiple-users?)

    Hi Jessica,
    ExportPDF is for one user per account. Please refer to our terms... this should help with your questions!
    Let me know if this helps.
    Regards, Stacy

  • Can I export (burn) more than one slide show to the same DVD

    Can I export (burn) more than one slide show I created in iPhoto to the same DVD, and if yes, how?

    Yes.  If you're using iDVD export the slideshow out of iPhoto at 480p size and drag it into an open iDVD menu window, being careful to avoid any drop zones.  iDVD can handle up to 120 minutes of playing time (movies plus menus) on a single layer DVD disk.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • HT204411 i am trying to purchase many songs at one time. i have added all songs to wish list , now to purchase it will only let me  do one at a time  please advise how i can purchase more than one at a time

    i am trying to purchase many songs at one time. i have added all songs to wish list , now to purchase it will only let me  do one at a time  please advise how i can purchase more than one at a time

    There used to be a 'buy all' button on the wish list screen but for some reason that has been removed from the current version of iTunes so you will need to buy each item individually. You can try leaving feedback for Apple and maybe it'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html

  • Posting topic to more than one thread and in different categories...

    Is there anything in the TOU we can "refer" to when users post the same topic in more than one thread and to add to that, more then one category? Case in point: http://discussions.apple.com/thread.jspa?messageID=8806009#8806009 (This is just one example)
    Limnos had a valid point. If we had a section in the TOU we could copy/paste from, I think it would help if we could refer to authority, ie., TOU.
    Thanks!
    Carolyn

    I wouldn't get into too much of a flury about that with end users. Notify as needed and let the moderators decide if it needs to be deleted. A good rule of thumb is you want the discussions to have:
    Everyone should feel comfortable reading Submissions and participating in discussions.
    That's from Terms of Use.
    And then there is:
    You agree to not interfere with or disrupt the Site.
    I'm seeing that logically one can conclude directing users not to crosspost may be considering interference with the site. I may suggest someone post in another forum if a solution is not transparent in the forum they are using, but that's as far as I'm comfortable bending the rules.
    I'm trying hard to keep my thumbs away from the keyboard when I see duplicate posts.

  • Change this code to retrieve more than one row in the drop out menu

    How I can change this code, it only works when the cursor retrieves one row
    like this
    201410
    Fall 2013
    If it returns 2 rows, I only get the fir one in the drop out menu 
    201410
    Fall 2013
    201420
    Spring 2014
    I try to put a loop but it does not work..
    I need to be able to display any term that is retrieve by the cursor  (can be more than one)
    Term Fall 2013
    Spring 2014
    PROCEDURE p_enter_term
    IS
    v_code  stvterm.stvterm_code%TYPE;
    v_desc   stvterm.stvterm_desc%TYPE;
    CURSOR select_term_c IS
    SELECT
    stvterm_code,
    stvterm_desc
    from
    stvterm,
    sobterm
    where
    sobterm_dynamic_sched_term_ind = 'Y'
    and sobterm_term_code = stvterm_code;
    select_term_rec  select_term_c%rowtype;
    BEGIN
    --check for open cursor
    if select_term_c%isopen
    then
    close   select_term_c;
    end if;
    open    select_term_c;
    fetch select_term_c into v_code,v_desc; 
    HTP.p ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
       HTP.p ('<FORM ACTION="/test/btsewl.p_sel_crse" METHOD="POST" onSubmit="return checkSubmit()">');
       HTP.p ('<TABLE  CLASS="dataentrytable" summary="This layout table is used for term selection."width="50%"><CAPTION class="captiontext">Search by Term: </CAPTION>');
       HTP.p ('<TR>');
       HTP.p ('<TD class="dedefault"><LABEL for=term_input_id><SPAN class="fieldlabeltextinvisible">Term</SPAN></LABEL>');
       HTP.p ('<SELECT NAME="p_term" SIZE="1" ID="term_input_id">');
       HTP.p ('<OPTION VALUE="'||v_code||'">');
       HTP.p (v_desc);
        HTP.p ('</OPTION>');
       HTP.p ('</SELECT>');
       HTP.p ('</TD>');
       HTP.p ('</TR>');
       HTP.p ('</TABLE>');
       HTP.p ('<BR>');
       HTP.p ('<BR>');
       HTP.p ('<INPUT TYPE="submit" VALUE="Submit">');
       HTP.p ('<INPUT TYPE="reset" VALUE="Reset">');
       HTP.p ('</FORM>');
    END;

    You are using the Eclipse Dali plugin to generate tables from your entities, not the EclipseLink JPA provider at runtime, so the settings in your persistence.xml are ignored.  The documentation for the Dali table Wizards state it will drop and create tables.  If you want to use the EclipseLink persistence settings to just create tables, access your persistence unit in a test case or deployment. 

  • Thumbnail pics won't open up when clicked on in Firefox. This is happening on more than one website.

    When you click on a small picture on a website (i.e. Facebook) a new page opens up with the comments showing but the picture does not show. This has also happened on some other websites I have been on too. This problem has been happening for months to me and I downloaded Google Chrome to get around the problem.

    You may have accidentally clicked the 'Block Images' item in the right click context menu while trying to save an image.
    Check the image exceptions: Tools > Options > Content >Load Images >Exceptions
    * See: [http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel Options window - Content panel]
    A way to see which images are blocked is to click the Site Identification icon (favicon/image on the left end of the location bar) and click the "More Information" button.
    *The Security tab of the Page Info window (also accessible via Tools > Page Info).
    *Go to the Media tab of that Page Info window.
    *Select the first image and scroll down though the list with the Down arrow.
    *If an image in the list is grayed and there is a check mark in the box "Block Images from..." then remove the check mark to unblock the images from that domain.
    Also see:<br />
    * [[Images or animations do not show]]
    * [http://kb.mozillazine.org/Images_or_animations_do_not_load Images or animations do not load (Mozillazine KB article)]
    <br />
    Other issues you should attend to. You have plugins with know security risks. You should update your plugins.
    * Adobe Shockwave for Director Netscape plug-in, version 11.0
    * Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    * Java Plug-in 1.6.0_01 for Netscape Navigator (DLL Helper)
    **This is a very old version of Java
    **For a clean start, you should probably uninstall the old version before installing the current version, unless you have a use for the old version.
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions: http://www.java.com/en/download/faq/remove_olderversions.xml
    #* After the installation, start Firefox and check your version again.

  • Why a page posting the request more than one time?

    Hi,
    I'm sending some data from a normal html document's input fields to a server side code(serlvet). Normal POST method only.
    In this case, some times the servlet is invoked only once. and some times it is invoked twice. Why it is behaving like this?
    I'm very much sure that I'm clicking the submit button only once in all cases, but still it posts the data twice some times.
    Thanks in advance
    Kannan.T

    Summary columns is related to the Data wizard not to the report wizard,
    So, if we use Ref Cursor query to create the Data Model we should create summary columns mannualy.

  • How to save more than one Contact Person in CRM

    Hi experts,
                     How to save more than one contact persons in CRM opportunity Application?
    I am using following Function Module...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_partner        = lt_partner_com
        CHANGING
          ct_input_fields   = lt_input_fields
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.
    I am giving the input field name as 'PARTNER_FCT', 'PARTNER_NO', 'DISPLAY_TYPE', 'NO_TYPE', 'MAIN_PARTNER' and 'RELATION_PARTNER'.
    The problem is it is saving only one contact person, not more than one.
    Please help me how to save more than one contact persons.

    In SPRO partner processing this needs to be configured.

  • Handling the failures of more than one step..

    OK,
    So I have a package it has several steps, all of which run independtly. They are concerned with the generation of text files.
    The steps work, but I want to include good error handling.
    This is one of four Groups I have created, each with similar tasks inside.
    Lets take an example, of one group, I have attached a picture of the kind of failure I am trying to Trap.
    It seems it goes at the end of this post.
    Anyway, what I would like in the below example is, an email is sent to support stating:
     - The TaskName(s) that failed.
     - The ErrorDescription(s).
    For instance, in my example I deliberately set the overwrite to false, but I know there is a file there, so it would always fail.
    I tried some OnError logging for the job but it doesn't work.
    I also tried OnTask failure logging for the job but it doesn't work.
    The best I ever managed is an email with ONE of the failures on it, but I want one email with both failures on, (or all failures on, or 1 failure on, depedendent upon what fails).
    If that is 100% not possible, then I guess it might be OK (but it isn't really what I want) to get individual emails for each component. What is the best way to meet this requirement? fyi, if scripting is involved I use Visual Basic.

    Hi,
    I am creating a job that handles errors, using Event Handlers - On Error (see below).
    The point is that the dataflow task basically outputs the error message into a Variable (with Type Object).
    Then later, I include this on an email, saying the job has failed and this was the error we got.
    That all works fine, but as you can see I want to point more than one step into the error email.
    We can do so with an Or for OnError's.
    This is OK, but what I've noticed is that results are variable when more than one step fails:
     - For instance, I've set the job up on purpose so that two steps fail > the result is that you
    might get 1 email, but you might get more than one email. It's unpredictable; I wondered if there is a way round this!

  • Customer Master: Communicatio method more than One mail ID

    Hi All,
    I have a requirement here:
    In the customer master - General data - address - communication method
    My user want to maintain more than one e-mail id, i see system allows to insert more than one id.
    Requirement: User want system to send ex: order confirmation to all the IDs that are maintained in the customer master.
    Issue: I see in the customer master after I insert the mail ID there is a radio button which restricts to only one ID where the communication to be sent.  
    Help: Any one got some idea how I can fulfil this requirement please?
    Yash

    hi
    this is to inform you that
    create a Z table woth maintaince view with authorized personall only.
    where you can have/maintain n number of mail ids of the users.
    and
    two function modules are available for the same one is old and anothre is new function modules provided by SAP.
    when ever you want to trigger a email you have to call the z table.
    then it triggers automatically.
    regards
    balajia

  • Costed Multilvel BOM for more than one material

    CK86 report shows costed multilvel BOM for one material.Is there any report whereby I can see costed mulitilevel BOM for more than one material
    Regards
    Paresh

    Dear Paresh,
    I dont think there is some standard report to meet this requirement,also please check whether this link can help you,
    Re: Product cost report
    Re: Report for Cost of Multiple products with Multilevel BOM explosion
    Regards
    Mangalraj.S

  • Can not import excel spreadsheet with more than one spreadsheet from an email

    i get excel files sent to me all the time by email and have been able to open most of them.  Went to a apple store and was told i needed to install numbers app on my iphone 4 to open them up because their was more than likely two or more work sheets in that file. i am on the road and can't get to my imac.  I bought numbers did all the updates on the iphone and sync to itunes.  it still cant open the spreadsheets if they have more than one work sheet. it does ask do you want to open in numbers i answer the question it starts the import then get error message spreadsheet couldn't be imported.  the file format is invalid.
    this is frustrating to by an app that was suggested by apple for the solution and it doesn't work.
    by the way i have excel on the macbook pro and imac so that is not an issue need to be able to see on the phone while traveling.
    by the way it says microsoft excel 97-2004 worksheet 16 kb open in "numbers"
    Any suggestions

    Hi Caroline
    you should be able to apply the exact same principles to your multi query report. The XML will have a main root node and then the results of the queries underneath.
    So if you had 3 queries you'd get something like
    <REPORTNAME>
    <G_FIRST_QUERY>
    </G_FIRST_QUERY>
    <G_SECOND_QUERY>
    <G_SECOND_QUERY>
    <G_THIRD_QUERY>
    <G_THIRD_QUERY>
    </REPORTNAME>
    In the template you will be able to map on to the separate sections of the XML very easily.
    regards, Tim

  • Can I have more than one ipod with more than  music library on one computer

    I was just wondering if i could have 2 different ipods (one a 5th generation and the other ipod touch) with 2 different music libraries on the same computer and itunes? because right now im using my parents computer and my fiance is using my laptop and we're moving so we'll only have one computer in the next few weeks. So if anyone could try to give me an answer or have a solution that would be fantastic lol!

    See these articles about using more than one iPod on one computer, and with either one or more iTunes libraries.
    Multiple iPod installations.
    How to use multiple iPods with one computer.
    If you have the latest iTunes, an easy way to create a new library is to hold down the 'alt' key whilst opening iTunes (for Macs), or hold down the 'shift' key (for Windows).
    This will give you the option of either using the current iTunes library or creating a new one.
    There are various methods of transferring different songs to different iPods with a single iTunes library.
    One is to manage the songs manually.
    With this setting, you can drag and drop songs/playlists etc onto the iPod from iTunes, and also delete and/or edit songs which are currently on the iPod without affecting the iTunes library.
    If you wish to keep the convenience of automatic sync, then you could set the iPods to sync with "selected playlists". This setting can be found in the iPod summary screen under the 'music' tab. With this setting, different playlists can be transferred and later deleted from each iPod without affecting any playlists stored in iTunes or the playlists on the other iPods.
    Also, on the 'summary' main page you will see the option to "only sync checked items". With this setting selected, if you remove the check marks from any songs in iTunes, they will not be transferred to the iPod. You can restore the check mark if you want to put the songs back on the iPod at a later date.
    Be aware that when playing songs in iTunes, any songs that do not have a check mark against them will be skipped over and will not be played.

Maybe you are looking for

  • Date column in OBIEE-SQL Server

    Hi expert, I have created date (datetime)column in sql server cube. Now I wat it inmy OBIEE as date. how to do that. When we import,there are only three option->Double,Varchar,Unknown.

  • Font Colors?

    In Mail Preferences, I know I can set a default font. Is there a way to set a default font color? I cannot seem to figure out how to do it. Thanks.

  • TCP/IP Connecting with Real Time Controller

    I have a host running Labview on a windows XP and a realtime embedded controller on a pxi chassis that acts as the server.  When the realtime is started it automatically goes into listen mode and listens for a connection from the host.  The host open

  • Why can't I see the Finder thumbnails for .mov files with alpha channels?

    Ever since I upgraded to Mavericks I haven't been able to see the thumbnail for or preview using spacebar any .MOV clips that contain alpha channels in Finder. PSDs and PNGs with alpha channels are fine, and I can still see their thumbnails and previ

  • Unable to copy text values in CLipboard in Ubuntu 8.1

    Hi all , Im using the following code to copy the text: import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java      .awt      .datatransfer      .StringSelection; import java      .awt      .datatransfer      .Transferable; publi