Excel output from reports

Have used the 'mimetype code to output to excel in the browser using pl/sql
in the before parameter trigger, this trigger is still supposed to fire
but when no parameter form used the output defaults to html and not the required Excel
Does anyone know a way around this?

Hi,
Have you looked at the CGIcmd.dat? you have to make sure that desformat is not being set there. otherwise, whatever you put in your code will be overwritten.

Similar Messages

  • Urgent - Want a excel output from reports

    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    null

    Hi,
    Change the Desforamt as Delimited and give the File name as file.xls and run the report
    you will get the Excel Output but the total will be pronted On RHS for every row.Hope this would help you to print the report in Excel File.
    Thanks,
    Vikki
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by aruna100:
    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    <HR></BLOCKQUOTE>
    null

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • CPU usage while generating text output from reports

    hi
    while we attempt to generate the text (delimited) output from reports and when the query fetches more than 1500 rows, the cpu usage stays around 100% for long time paralysing the operation...
    we faced the problem when we attempted to generate text output for around 10000 records.
    any suggestions?
    ravi kumar chandran

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • How to embed an attachment in rtf(excel output) from oracle reports

    Hi,
    I have a requirement to embed an attachment from oracle reports(fnd_lobs) into rtf template which will generate excel output.
    Can you please provide me suggestions on this.
    Thanks,
    Kavya

    Hi,
    I will judge few records whether to display or not. i am using one variable to handle its display.
    i want to avoid using IF in my templated .
    Please suggest the best way
    Regards,
    Phani Reddy

  • Excel output of report on client machine

    excel output report on client machine
    hello
    i am running report from app server, output is excel file...
    using following URL
    web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&destype=file&desname=c:\batch.xls','_blank');
    ----this stores the excel file at app server under c:\
    now i want to save it on client machine... how can i do that ?
    from one forum, i got help , so i changed URL as below
    web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&mimetype=application/msexcel&destype=FILE&title=batch.xls','_blank');
    when i open report, no window opens for saving file...a new window opens and gets closed itself immediately...
    wht is the problem?... client machine having MS office excel 2003...

    Dear
    Could you, please, tell us what you've done to solve this issue? We're facing the same problem, and until now we couldn't figure out what is exactly happening.
    Thanks in advance for any help.

  • Display Space in Excel output from BIP

    Hi,
    I am working on HR head count report , In column organization , if organization is Primary category it should be indented by 2 spaces and if organization is second category then it should be indented by three spaces.I handled this in code. But when i am seeing the output through internet browser. The spaces are not being showed.But when output is saved as xls and when viewed from local machine.the spaces are visible.Can anyone help me how i can see the added spaces through internet browser view.
    Best regards,
    mahesh
    Edited by: maheshb2b on Feb 12, 2009 3:48 AM

    Hi Tim,
    Thanks for the quick reply.
    The so called 'Excel templates' have been demonstrated to clients in this year's Oracle Open House (San Fransisco) i guess, and it is from there, that the need to develop such complex reports have come. It seems there was a demo that was given out to all the participants on this new technology. It would be great if you can share the demo with me or send me same/its link to my mail id ([email protected]). It would be extremely helpful in mapping the requirements with the upcoming tools from Oracle.
    Expecting the demo on this Excel templates from you. Awaiting the release of the new version soon.
    Thanks,
    Nitin

  • Macros in EXCEL output from XMLP

    Hi all,
    I am using XMLP 5.5.
    I would like to know if in the 'Excel' output we obtain using XML Publisher, can we have macros. If yes then how can one achieve it? A sample would help us in exploring further.
    Thanks,
    Nitin

    Hi Tim,
    Thanks for the quick reply.
    The so called 'Excel templates' have been demonstrated to clients in this year's Oracle Open House (San Fransisco) i guess, and it is from there, that the need to develop such complex reports have come. It seems there was a demo that was given out to all the participants on this new technology. It would be great if you can share the demo with me or send me same/its link to my mail id ([email protected]). It would be extremely helpful in mapping the requirements with the upcoming tools from Oracle.
    Expecting the demo on this Excel templates from you. Awaiting the release of the new version soon.
    Thanks,
    Nitin

  • Excel format from Reports Server

    Hi Guys,
    We are about to deploy reports, which need to produce output in Excel format. I know there are a number of ways to do it, but we decided to go this way:
    1. The report will generate its output in XML format
    2. We will apply an XSL to convert the XML to HTML, which could be opened in Excel
    As this report should be accessed from the web we decided to develop our own servlet, which will run the report, apply the transformation and finally deliver the result in the browser.
    Now the question. How to run the report from the servlet?
    We have though of running RWRUN from the command line specifying all the needed parameters. Is this the best way?
    Thanks in advance!
    Krasen Paskalev

    The simplest way would be to either call the reports runtime with a Runtime.exec() call from the servlet. Alternatively, you could construct a URL and call the Reports Servlet (or CGI if you're a 6i user) to have the reports server generate the XML.
    If you're a 9i user then you could either subclass the Reports Servlet, or better still generate your Excel output through a jsp (see the demo of this at http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html).
    Hope this helps,
    Danny

  • Generating Excel Sheet from Reports ......

    Hi,
    I want to generate reports both in Oracle Reports 6.0, as well
    as in Microsoft Excel. The simplest solution I thought was to
    generate the Oracle Report first and then, give a button on the
    report, which when pressed, can scan the data in the generated
    report and write it into an Excel file. The writing part to
    Excel file, I can do by using the OLE2 automation. I am not able
    to find a way to read the data in the generated report
    programatically. Is this possible and if yes, then can anyone
    suggest me a way to do this. Is there an alternate solution to
    this problem.
    regards,
    Abhilash

    Hi ,
    Modified your code .
    public void generate(IPortalComponentRequest request) throws Exception {
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet();
    HSSFRow row = sheet.createRow(3);
    HSSFCell cell = row.createCell((short)0);
    HSSFCellStyle cs1 = wb.createCellStyle();
    HSSFCellStyle cs2 = wb.createCellStyle();
    HSSFCellStyle cs3 = wb.createCellStyle();
    HSSFDataFormat df = wb.createDataFormat();
    HSSFFont f = wb.createFont();
    HSSFFont f2 = wb.createFont();
    f.setFontHeightInPoints((short) 12);
    f2.setFontHeightInPoints((short) 10);
    cs1.setFont(f);
    cs1.setDataFormat(df.getFormat("#,##0.0"));
    cs2.setFont(f2);
    cell.setCellValue(1);
    row.createCell((short)1).setCellValue(1.2);
    row.createCell((short)2).setCellValue("This is a string");
    row.createCell((short)3).setCellValue(true);
    HttpServletResponse res = request.getServletResponse(true);
    try {
    res.setContentType("application/vnd.ms-excel");
    wb.write(res.getOutputStream());
    }catch(Exception e) {}
    Check this blog for more
    Create an excel file from JAVA using HSSF api

  • Excel sheet from report

    Hi have an urgent issue.
    When i send the output of report which contains japanese data through "send forecast as excel" then an excel sheet is saved on desktop in which im getting junk characters instead of japanes?
    but when i save this list by using (spread sheet - cntrlshiftF7) then it is saving and also japanese characters are coming.
    Could anyone help me out to get these characters when i send thru "forecast as excel"
    Thanks in advance
    Arun

    Thanks , the problem is solved. here is what I did -
    CALL METHOD OF
           workbook
           'SAVE'.
       CALL METHOD OF
           workbook
           'CLOSE'
         EXPORTING
           #1       = 0
           #2       = 0
           #3       = 0.
       FREE OBJECT workbook.
       CALL METHOD OF
           sheets
           'APPCLOSE'.
       CALL METHOD OF
           sheets
           'QUIT'.
       CALL FUNCTION 'FLUSH' .
       FREE OBJECT sheets.
       FREE OBJECT application.

  • Generating delimited output from Reports Runtime R60

    When generating a delimited file using Runtime how can you predict or determine how Oracle will form the output rows from the report layout? Does anyone have any documentation on Runtime that explains the generation process as there is nothing in the Runtime Reference manual.

    The only documentation (such that it is) that I've found on this is in MetaLink, in Note 68245.1 "Delimited Output in Reports" and a tiny bit more in Note 120072.1 "Suppressing header on delimited output".
    - Bill

  • Xcel output from Reports 6.i

    I applied the patchset and I am now able to get my resultset into Excel, however the headings and totals are screwed up and I need this for my users, how do I fix this problem?
    Thanks Kathy

    could you tell me how you convert the report to excel format using reports 6i
    regards
    Aruna
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kathy duret ([email protected]):
    I applied the patchset and I am now able to get my resultset into Excel, however the headings and totals are screwed up and I need this for my users, how do I fix this problem?
    Thanks Kathy<HR></BLOCKQUOTE>
    null

  • Problem with output from  report to excel, calling the report from form 10g

    Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
    Code for version 6i (Works Very well)
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
    cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
         BEGIN
    nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
              BEGIN
              nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
         BEGIN
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';      
              END;
    ELSE
              BEGIN
                        nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');
    END;
    Code for version 10g
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    --byt12122007.sn
    repid REPORT_OBJECT;
         vURL VARCHAR2(500);
         rep_status VARCHAR2(20);
         vJobID VARCHAR2(100);
         v_rep VARCHAR2(100);
    VAR NUMBER;
    w_name_repserv VARCHAR2(30);
    --byt1212007.en
    BEGIN
         --w_name_repserv:=F_OBTIENE_SERVREP;
    w_name_repserv:='repserv';     
    pl_id := Get_Parameter_List('mytmp_params');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('mytmp_params');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
         cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    /*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
    BEGIN
         repid := find_report_object('tdvenrli1577');
    --nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
    BEGIN
         repid := find_report_object('tdvenrli1578');      
              --nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
    BEGIN
         repid := find_report_object('tdvenrli1576');
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              --nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');     
              END;
    ELSE
    BEGIN
         repid := find_report_object('tdvenrli1545');
                        --nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');     
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')     LOOP
              rep_status:= report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
              vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
         END IF;
         WEB.SHOW_DOCUMENT(vURL, '_blank');
         IF NOT form_success THEN
              MESSAGE('Error: PL/SQL held against Button failed to execute');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    /*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');*/
    END;

    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

  • Is it Possible to have multiple sheet Excel output from a single BI report?

    Hi,
    I am using Oracle BI Publisher Desktop veriosn 11.1.1.7
    JDE tool set 811.
    Is it possible to generate multiple excel sheet tabs from single report?

    Creating Excel Templates - 11g Release 1 (11.1.1)
    BI Publisher: Excel Template: 'Fixed' Multi-Sheet Template

Maybe you are looking for

  • BlackBerry Internet Service with Microsoft Outlook Web Access account

    I need to switch my 8820 to a new work account.  They use Outlook Exchange 2003, but do not support BES.  I have access via both regular desktop Outlook and also Outlook Web Access (from a different server).   I read the procedure to use BIS in Knowl

  • How can i get the value of an jcombobox in a japplet into my html/jsp page

    hii i hav a japplet which contains an editable jcombobox which i have embedded into my jsp page .Now i want to get the value of jcombobox in my japplet into a taxt box in my .jsp page which will change as the value of jcombobox changes .Now in doing

  • How to set default duration of photo clips, using ipad

    I Cannot seem to find a way to set a default durarion for my photo clips. i Have to modify them one by one using the pinch...which is extremely clumsy. i Am using the iPad version...not desktop

  • ERS - Taxation on Purchase Order Lines

    Hi, We are on 11.5.10 and I am using the Pay on Receipt Functionality. We also would like to generate the taxes, based on the tax rates assigned with Supplier Site. PO: Supplier Site : Linked with Tax Rate TR1 of 6%. PO Line : Expense Item is for $10

  • I've Lost My Printer

    How can I be sure that all of my data has been destroyed AFTER returning my faulty Officejet 7500A 910e?cc=UK I've recently had to return my unit to the shop, but unfortunately they refused to attempt to fix it. They no longer stock my AIO and have b