Excel Report from Graph

Hi Gurus,
My requirement is . can we open detail report in excel from graph? i mean
I have Graph to display sales amount by month. if user click on any month then detail report ( all low level details for that month) should display in excel .
if it is possible after user click on month one message box should pop up to ask "do you want open detail report in excel? " if user click on OK button then excel report should display.
Can i achieve this one in OBIEE ( 10.1.3.4). if yes then how?
I really appreciated you support and time

Hi Scott,
i don't know if there is a function in the report generation toolkit, but this link shows an example of what you need.
http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=391177#M391177  
Hope it helps.
Mike

Similar Messages

  • Generating Excel Report from Outlook 2013 for the meetings attended/ accepted

    Hello Team,
    Could you please advise how do I Generate Excel Report from Outlook 2013 for the meetings I attended/ accepted. Also I do I check or figure out the time I spent attending meeting.
    Please help to answer me ASAP.
    Thank you
    Preet

    Hi Preet,
    As far as I know, no features in Office client can generate Excel workbook from Outlook. But we can implement this requirement by macros. If you want to receive more information, I suggest you post this issue on MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share
    their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Excel report from java

    I'm generating the Excel report from java .In that i create a row,but i don't know how to increase the size of the cell.if any one have idea.kindly suggest it

    I had a similar porblem and finally i guess somebody can help me with this issue
    I got some help from...http://www.javaworld.com/javaworld/jw-10-2006/jw-1019-xmlexcel.html?page=1...
    This is my code in servlet...
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet spreadSheet = wb.createSheet("Users");
    spreadSheet.setColumnWidth((short) 0, (short) (256 * 25));
    spreadSheet.setColumnWidth((short) 1, (short) (256 * 25));
    // Creating Rows
    HSSFRow row = spreadSheet.createRow(0);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("Year 2005");
    cell = row.createCell((short) 2);
    cell.setCellValue("Year 2004");
    HSSFRow row1 = spreadSheet.createRow(1);
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setBorderRight(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderTop(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderLeft(HSSFCellStyle.BORDER_MEDIUM);
    cellStyle.setBorderBottom(HSSFCellStyle.BORDER_MEDIUM);
    cell = row1.createCell((short) 0);
    cell.setCellValue("Revenue ($)");
    cell = row1.createCell((short) 1);
    cell.setCellValue("25656");
    cell = row1.createCell((short) 2);
    cell.setCellValue("15457");
    FileOutputStream output = new FileOutputStream(new File("/tmp/Users.xls"));
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment;filename=Users.xls");
    ServletOutputStream out = response.getOutputStream();
    wb.write(output);
    output.flush();
    output.close();
    forward = null;
    In firefox i get the download dialog box but not able to open in from there,i need to save it and then open. In IE i dont get the dialog box instead the excell open inside the browser......Please help me to open a excel sheet onclick on a link "Export to excel" in jsp......Bottom line is onclick of a link in jsp it should open up a ezcell report....
    Please please please help me....
    Thanks in advance...

  • Generating Excel report from java

    I'm generating Excel report from java .I want align a text in top ie)align top.i searched for that ,but i didn't get that.Is it possible to perform align top,if so how?

    the Progrma I' m executing is as follows :
    import java.io.*;
    import java.util.*;
    import jxl.*;
    import jxl.write.*;
    import jxl.write.Number;
    public class excel
    private String filename;
    private WritableWorkbook workbook;
    public excel(String fn)
    filename=fn;
    public void write() throws IOException, WriteException
    WorkbookSettings ws = new WorkbookSettings();
    ws.setLocale(new Locale("en", "EN"));
    workbook=Workbook.createWorkbook(new File(filename),ws);
    WritableSheet sheet=workbook.createSheet("First Sheet",0);
    Label label=new Label(0,2,"A label record");
    sheet.addCell(label);
    Number number=new Number(3,4,3.142);
    sheet.addCell(number);
    workbook.write();
    workbook.close();
    public static void main(String args[]){
         try{
                   excel ecl = new excel("D:\\TestXSL.xls");
                   ecl.write();
              }catch(Exception e){
              e.printStackTrace();
    }

  • Webutil Error when trying to run excel report from Oracle form

    I am trying to run an excel report from a oracle from but it throws me following error:
    Oracle.forms.webutil.fileTransfer.FileTransfer bean not found. WEBUTIL_FILE_TRANSFER.getmaxtransfer will not work
    Can you tell what is this error due to and how to eradicate this.

    hi
    Did you generate .plx?
    please check if you did not generate plx and if u did not create db packages please create the webutil user and create db packages.
    here is the webutil configurations.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
      and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
      [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
         cd [JacobStage]
         copy jacob.jar [OraHome]\forms\java\.
         copy jacob.dll [OraHome]\forms\webutil\.
      The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
      Open a DOS command prompt.
      Add [OraHome]\jdk\bin to the PATH:
         set PATH=[OraHome]\jdk\bin;%PATH%
      Sign the files, and check the output for success:
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
         [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
      you may skip this step. Otherwise,
      Create a schema to hold the WebUtil stored code, and privileges needed to
      connect and create a stored package. Schema name "WEBUTIL" is recommended
      for no reason other than consistency over the user base.
      Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
      out the EXIT statement, to be able to see whether the objects were created witout
      errors.
      Start SQL*Plus as SYSTEM, and issue:
         CREATE USER webutil IDENTIFIED BY [password]
         DEFAULT TABLESPACE users
         TEMPORARY TABLESPACE temp;
         GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
         CONNECT webutil/[password]@[connectstring]
         @[OraHome]\forms\create_webutil_db.sql
         -- Inspect SQL*Plus output for errors, and then
         CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
      Reconnect as SYSTEM, and issue:
         grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
      to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
      Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
      It is important to generate the PLX, to avoid the FRM-40039 discussed in
      Note 303682.1
      If the PLX is not generated, the Webutil.pll library would have to be attached with
      full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
      Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
      There is no need to Subclass the WebutilConfig object.
      Attach the Webutil.pll Library, and remove the path.
      Add an ON-LOGON trigger with the code
             NULL;
      to avoid having to connect to an RDBMS (optional).
      Create a new button on a new canvas, with the code
             show_webutil_information (TRUE);
      in a WHEN-BUTTON-PRESSED trigger.
      Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
      the "Application Server URL" is empty.
      Then append "?config=webutil" at the end, so you end up with a URL of the form
          http://server:port/forms/frmservlet?config=webutil
    10) Run your form.hope this helps u.
    sarah

  • Running JSP Excel report from Forms 10g

    Perhaps this had been discussed before, though I didn't find an exact solution.
    We have a JSP report that displays data in MS Excel. Works fine if called from the url.
    The report shall be called from the form passing a parameter list with PARAMFORM=NO.
    Problem: reports runs as designed but opens up an empty Excel spreadsheet. No errors, no data..
    We are using RUN_REPORT_OBJECT with desformat=spreadsheet and paramform=no.
    We can't use just web.show_document alone since quite a few parameters need to be passed.
    I've read in one of the posts that a paper layout need to be created (in addition to web layout) to run RUN_REPORT_OBJECT. We've done that, but now it does not open EXCEL, and displays paper layout in a browser.
    So, how to call JSP (Excel) report from Forms passing parameter list without displaying the parameter form?
    Thank you

    What is the complete Application Server version you are using? Be sure you are using 10.1.2.2
    What platform and version is it installed?
    What version of Excel is installed on the client?
    Does it work if you use an RDF report?
    Try this:
    o Change DESFORMAT to DELIMITED
    o Append the following to the end of the URL created in the WEB.SHOW call:
    &mimetype=application/vnd.ms-excel
    The result should be the same as using SPREADSHEET.

  • Best Practice for creating Excel report from SSIS.

    I have a requirement to create an Excel report on a daily basis which pulls data from SQL. I have attempted to resolve this by creating a stored procedure to save the results in SQL, a template in Excel to hold the graphs & pivot tables and an SSIS package
    to copy the data to the template.
    Problem 1: When the data turns up in Excel it is saved as text rather than numbers.
    Problem 2: When the data turns up in Excel it appends the data rather than overwriting it.
    I resolved problem 1 by having another sheet which converts the text to numbers (=int(sheet1!A1))
    I resolved problem 2 by adding some VB script to my SSIS package which clears the existing cells before copying the data
    The job runs fine, however when I schedule the job to run overnight it complains "System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID". A little googling tells me that running the client side commands in
    my vb script (workSheet1.Range("A2:F9999").Clear(), workBook.Save(), workBook.Close() etc) from a server side task is bad practice.
    So, I am left wondering how people usually get around this problem; copy a SQL table into an existing Excel file and overwrite the data, without having the numbers turn up as text. My requirements are that the report must display pivot charts with selectable
    options and be automatically updated overnight.
    Help appreciated,
    Bish.
    Office 2013 on my PC, Office 2010 on the server, Windows Server 2008R2 Enterprise, SQL Server 2008R2.

    I think that the best practice in case like this is to Link an excel file to a view or directly to a table. So you don't have to struggle with changing template, with overnight packages, etc. If the data are too much complex and the desiderate too excessive
    then I tend to create a Cube and that's it...dashboard, graph and everyone is happy. In your case if the request is not too much try to don't use SSIS but directly build a view and point directly on SQL.
    SSIS is really strong for the ETL, to run some stored procedure too heavy, to use a cut time scheduled, etcetera , etcetera, etcetera...I love it. But sometimes we need to find the easier solutions...
    I hope this post helped you

  • Writing into an excel report from Forms10g in the same worksheet

    Dear all, I need your help pleae,
    I have eveloped a procedure in Forms 10g to write a report into an excel file, Please find below the code
    The problem is that the report is displayed in multiple sheets according to the rows fetched . How can all the data be written in the same sheet
    Actual case:
    IN SHEET 1 IN THE EXCEL FILE ->
    BANK NAME ACCOUNT
    11 XXX 124567890
    IN SHEET 2 IN THE EXCEL FILE ->
    BANK NAME ACCOUNT
    12 XXX 124567891
    etc...........................
    Wanted case:
    In the same sheet 1:
    BANK NAME ACCOUNT
    11 XXX 124567890
    12 XXX 124567891
    etc...................
    DECLARE
         V_BRCH NUMBER(3);
         V_ACC_NUM NUMBER(16);
    V_BANK NUMBER(3);
    V_NAME VARCHAR2(75);
         v_file_name          varchar2(100);
         APP                    CLIENT_OLE2.OBJ_TYPE;
         ARGS                CLIENT_OLE2.LIST_TYPE;
         CELL               CLIENT_OLE2.OBJ_TYPE;
         WS                    CLIENT_OLE2.OBJ_TYPE;
         WB                    CLIENT_OLE2.OBJ_TYPE;
         WSS                    CLIENT_OLE2.OBJ_TYPE;
         WBS                    CLIENT_OLE2.OBJ_TYPE;
         M_ROW               NUMBER:=1; --ROW
         M_COL               NUMBER:=1; --COLUMN
         v_first               NUMBER := 0;
         V_SYSDATE          DATE:=SYSDATE;
         CURSOR     C_CACC     IS
              SELECT     DISTINCT ACC_NUM, BRCH_CODE,BANK,NAME
              FROM     ACCNTS
              ORDER BY BRCH_CODE, ACC_NUM;
    BEGIN
         v_file_name := :N_EXCEL_PATH;     
              --INITIALISE EXCEL
         APP := CLIENT_OLE2.CREATE_OBJ('Excel.Application');
         CLIENT_OLE2.SET_PROPERTY(APP,'Visible', 'FALSE');
         WBS := CLIENT_OLE2.GET_OBJ_PROPERTY(APP, 'Workbooks');
         WB     := CLIENT_OLE2.INVOKE_OBJ(WBS,'Add');
         WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
         CLIENT_OLE2.SET_PROPERTY(app, 'DisplayAlerts', 0);
            WHILE CLIENT_OLE2.GET_NUM_PROPERTY(wss , 'Count') > 1
            LOOP
          --- Get a handle to the 2nd worksheet and delete it
          args := CLIENT_OLE2.CREATE_ARGLIST;
          CLIENT_OLE2.ADD_ARG(args, 2);
          ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args);  
          CLIENT_OLE2.DESTROY_ARGLIST(args);
          CLIENT_OLE2.INVOKE(ws, 'Delete');
          CLIENT_OLE2.RELEASE_OBJ(ws);
            END LOOP;
            CLIENT_OLE2.SET_PROPERTY(app, 'DisplayAlerts', TRUE);
         CLIENT_OLE2.RELEASE_OBJ(wss);
                   OPEN     C_CACC;
                   LOOP
                        FETCH     C_CACC     INTO     V_BRCH     ,     V_ACC_NUM, V_BANK,V_NAME;
                        EXIT     WHEN     C_CACC%NOTFOUND;
                        M_ROW:=1; --ROW
                        M_COL:=1; --COLUMN
                        M_SEQ:=0;
                        WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
                        if v_first = 1
                        then
                             WS     := CLIENT_OLE2.INVOKE_OBJ(WSS,'Add');
                        else
                             args := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(args, 1);
                             ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args); 
                             CLIENT_OLE2.DESTROY_ARGLIST(args);
                             CLIENT_OLE2.INVOKE(ws, 'Select');
                             v_first := 1;
                        end if;
                        CLIENT_OLE2.set_property(WS,'Name',V_SYSDATE);
                        FOR     M_COL     IN     1..3     
                        LOOP
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                             CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','BANK');
                             ELSIF     M_COL = 2
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','NAME');
                             ELSIF     M_COL = 3
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','ACCOUNT');
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
                        M_ROW := M_ROW + 1;
                        FOR     M_COL     IN     1..3     
                        LOOP
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                             CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             ELSIF     M_COL = 2
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             ELSIF     M_COL = 3
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
                             M_SEQ     :=     M_SEQ + 1;
                             IF M_SEQ = 1
                             THEN
                                  M_ROW     :=     M_ROW + 1;
                                  FOR     M_COL     IN     1..3
                                  LOOP
                                       --DETAIL ROWS
                                       ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                                       CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                                       CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                                       IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                                       END IF;
                                  END LOOP;
                                  CLIENT_OLE2.RELEASE_OBJ(CELL);
                             ELSE
                                  M_ROW     :=     M_ROW + 1;
                                  FOR     M_COL     IN     1..3
                                  LOOP
                                       --DETAIL ROWS
                                       ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                                       CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                                       CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                                       IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                                       END IF;
                                  END LOOP;
                                  CLIENT_OLE2.RELEASE_OBJ(CELL);
                             END IF;
                        CLIENT_OLE2.RELEASE_OBJ(WS);
                        CLIENT_OLE2.RELEASE_OBJ(WSS);
                   END LOOP;
                   CLOSE     C_CACC;
                   COMMIT;
                   M_ROW:=1; --ROW
                   M_COL:=1; --COLUMN
                   M_SEQ:=0;
                   WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
                   if v_first = 1
                   then
                        WS     := CLIENT_OLE2.INVOKE_OBJ(WSS,'Add');
                   else
                        args := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(args, 1);
                        ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args); 
                        CLIENT_OLE2.DESTROY_ARGLIST(args);
                        CLIENT_OLE2.INVOKE(ws, 'Select');
                        v_first := 1;
                   end if;
                   CLIENT_OLE2.set_property(WS,'Name',V_SYSDATE);
                   FOR     M_COL     IN     1..3     
                   LOOP
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                        CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                        IF          M_COL = 1
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','BANK');
                        ELSIF     M_COL = 2
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','NAME');
                        ELSIF     M_COL = 3
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','ACCOUNT');
                        END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                   M_ROW := M_ROW + 1;
                   FOR     M_COL     IN     1..3     
                   LOOP
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                        CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                        IF          M_COL = 1
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        ELSIF     M_COL = 2
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        ELSIF     M_COL = 3
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                   M_ROW     :=     M_ROW + 1;
                   FOR     M_COL     IN     1..3
                   LOOP
                        --DETAIL ROWS
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                        CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                             END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                        M_ROW     :=     M_ROW + 1;
                        FOR     M_COL     IN     1..3
                        LOOP
                             --DETAIL ROWS
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                             CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1 AND V_BANK IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                             ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                             ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
              CLIENT_OLE2.RELEASE_OBJ(WS);
              CLIENT_OLE2.RELEASE_OBJ(WSS);
              EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
              NEXT_RECORD;
         --SAVE AS THE EXCEL FILE
         ARGS := CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(ARGS, v_file_name);
         CLIENT_OLE2.INVOKE(WB, 'SAVEAS',args);
         CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
         --CLOSING CODE
         CLIENT_OLE2.INVOKE(WBS,'CLOSE');
         CLIENT_OLE2.RELEASE_OBJ(WBS);
         CLIENT_OLE2.invoke(app,'Quit');
         CLIENT_OLE2.RELEASE_OBJ(APP);
         CLIENT_OLE2.INVOKE(WB,'CLOSE');
         CLIENT_OLE2.RELEASE_OBJ(WB);
    EXCEPTION WHEN OTHERS THEN
         MESSAGE(SQLERRM);     
    END;

    Maybe you should set the value for v_first to a value greater than 1 after invoking the 'Add'-method.

  • Background color in POI (Excel report from java)

    I'm generating report in Excel from Java.how can background color is set for single cell.

    i write code like
    style.setFillBackgroundColor(HSSFCellStyle.RED);
    it shows error that can not resolve symbol variable RED.why?give me solution

  • Generating Excel report from java by using POI

    Hi
    Im trying to generate the report in Excel using POI. Im retrieving the data from the table. As per my query its having millions of records.
    For example, Im giving the sheet name as below given
    HSSFSheet sheet      = wb.createSheet("SampleReport_01");
    In a single sheet, 65000 records can be displayed. Im checking this condition also. It exceeds 65000 records, the records will be dislayed in the next sheet "SampleReport_02","SampleReport_03" and so on. Im incrementing this count 01, 02 , 03 and so on.
    While generating the report, its giving out of memory exception.
    Can anyone suggest, this is because of huge volume of data? If so, how to handle this one.
    Thanks in Advance
    Dhilip

    your workbook object is in the jvm memory. putting so much data in it while working with it will take memory allocated to jvm.
    better solution is to make a .csv file. Add the data in it with through append (check this [http://www.javacoffeebreak.com/faq/faq0086.html|http://www.javacoffeebreak.com/faq/faq0086.html] ) .
    latter import the .csv file into excel sheet manually.

  • Creating a Simple Excel Report from Final Cut Server

    1. Modify the following Metadata Group (ASSETLISTVIEW) to contain the field you want to output in your report
    2. Create Ruby file. In this example I named mine searchallassets.rb
    Be sure to make the file executable, using the following command at the terminal sudo chmod 755 [file]
    Copy and Paste this block of code into the searchallassets.rb
    --Code Starts Here
    #!/usr/bin/env ruby
    # Created by Nicholas Stokes
    # Copyright (c) 2009 XPlatform Consulting LLC
    # All rights reserved
    time_file = Time.now.strftime "%Y%m%d%I:%M%P"
    FCSVRCLIENTCMD = "/Library/Application\\ Support/Final\\ Cut\\ Server/Final\\ Cut\\ Server.bundle/Contents/MacOS/fcsvr_client"
    # What this will do:
    # This will create a .csv file that contains all asset records from Final Cut Server database
    # If you wish to modify the report further below is the command line syntax for searching the Final Cut Server database
    # fcsvr_client search [ --verbose --noheader --mdonly --tabdelim --xml --limit <n> --depth <n> --xmlcrit --crit <str> --ctxaddr <addr> --dirs --linkparentaddr <address> --linkparentrecursive ] <address>
    # Note, I am using the --tabdelim option to output the file as a tab delimited file. This will allow for easy importing into Excel or another database management system.
    searchfor_allassets = "#{FCSVRCLIENTCMD} search --tabdelim /asset >"
    output_file = "/Users/nicholasstokes/Desktop/DickClarkFCSvr_AllAssetsReport_#{timefile}.csv"
    runsearch_for_all_export_ascsv = `#{searchfor_allassets} #{output_file}`
    --Code Ends Here
    Finally. Edit the searchallassets.rb to include the path that you wish to save the output file.
    In FCSvr, setup a Script Response to call this.
    Then either trigger the Script Response via a Subscription or Schedule.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting

    http://www.roxio.com/enu/products/toast/default.html?gclid=CIyG7Zqclp4CFdpb2godL HXnkw

  • Excel report from  oracle resultset

    I have a web application built with jsps and servlets. I have a page showing reports with the resultset from oracle. How can I generate reports in excel and show html reports for the user?
    I referred to one of the previous posts with the same question; found this and tried it
    res.setHeader("Content-Type", "text/x-csv");
    res.addHeader("Content-Disposition", "attachment;filename=report.csv");
    I got the download dialog on giving the servlet URL. On trying to open it, it said IE could not open because the site is unavailable.
    On trying to save it, I got 0 bytes saved. What happens behind? Please explain

    Don't know if anyone has responded to you by e-mail yet. I just started working with the Jakarta POI myself, and I came up with this:
    public void CreateExcelFile(String filepath) throws Exception {
              FileOutputStream fos = new FileOutputStream(new File(filepath), true);
              HSSFWorkbook wb = new HSSFWorkbook();
              HSSFSheet sheet = wb.createSheet();
              int rowCount = 0;
              //create the table headings as the first row
              //also create style to make this row distinguishable from the others
              String[] columnNames = new String[numcols];
              HSSFRow dataRow = sheet.createRow(rowCount);
              HSSFCellStyle style = wb.createCellStyle();
              //sets the color of the meta data row
              style.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index);
             style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
             //gives the metadata row a border
             style.setBorderBottom(HSSFCellStyle.BORDER_THIN);
             style.setBottomBorderColor(HSSFColor.BLACK.index);
             style.setBorderLeft(HSSFCellStyle.BORDER_THIN);
             style.setLeftBorderColor(HSSFColor.BLACK.index);
             style.setBorderRight(HSSFCellStyle.BORDER_THIN);
             style.setRightBorderColor(HSSFColor.BLACK.index);
             style.setBorderTop(HSSFCellStyle.BORDER_THIN);
             style.setTopBorderColor(HSSFColor.BLACK.index);
         //generate the column header as the first row in spreadsheet        
              for (int i = 1; i < numcols + 1; i++) {
                   columnNames[i - 1] = rsmd.getColumnName(i).trim();
                   HSSFCell cell = dataRow.createCell((short) (i - 1));
                   cell.setCellValue(columnNames[i - 1]);
                   cell.setCellStyle(style);
              //Generate the remainder of the spreadsheet from the result set
              while (rs.next()) {
                   rowCount++;
                   dataRow = sheet.createRow(rowCount);
                   for (int i = 1; i < numcols + 1; i++) {
                        String columnValue = rs.getString(i);
                        dataRow.createCell((short) (i - 1)).setCellValue(columnValue);
              wb.write(fos);
              fos.close();
         }The variable rs is a ResultSet, and rsmd is ResultSetMetaData, both are initialized in the constructor.
    It works. There is one issue where numbers in excel, although they appear as numbers, its as if excel cannot decide whether or not they are numerical values or string values. However they still appear correct.
    Does anyone know a way around this? If you run the code you'll see what I am referring to. I've tried playing with HSSFDataFormat, and the setCellType() functions with no luck. It's a fairly simple fix from within excel but I imagine there must be a way to do it using the POI itself.
    Thanks. Hope this helps Prem.

  • Excel Report from Forms

    My users have to create some simple reports invloving simple select with some group by clauses.
    They are not willing to learn report builder for that. What I have to give is a form where the user will make some selections of fields and criterias. Based on user input the report will be generated and sent to Excel.
    I need your suggestions for the approach to achieve this functionality. One thing that comes to my mind is dynamic sql. Not sure how lengthy coding will be.
    Any other ideas please?
    Thanks
    Sanjay

    try using
    destype=file+desformat=spreadsheet+desname=C:\temp\my.xls
    may work not sure
    Regards
    Rajesh

  • R12 generate excel report?

    Dear all,
    I was using 11.5.10 and which supports to generate report in excel file format by using owa.get_page utilities on database 9.2.0.3.
    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.
    Anyone generates excel report from R12?
    Thanks.

    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.Please post the complete error message.
    Anyone generates excel report from R12?Please see old threads -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Excel+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Generating excel reports

    hi,
    can anyone tell me , how to generate a excel report from java. i'm getting data from database using jdbc, with that data i need to create excel report.

    Hartmut,
    Using 1.2.2 Programmatically i want to create a DSN for output excel file.
    You gave me this solution in your previous forums.
    con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};" +"DBQ=c:/temp/test2.xls;DriverID=22;READONLY=false","","");
    But, This works fine with build 1.3.1_02-b02.
    But gives java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too
    long error with build jdk-1.2.2_008.
    Any solution would be appreciated.
    [email protected]

Maybe you are looking for

  • Please help.  I do not know how to delete the app draw something from my iPad 2. Can you help?

    I know this may be a silly question... Please don't judge... Could someone please explain to my how to go about deleting an app. Draw something.  From my ipad2?  It is completely frozen and won't open after updating it.  Many thanks for any help.

  • How can I retrieve the password hint of an external drive encrypted with FileVault 2?

    Hi, I'm running on 10.7.3, I have an external HDD that is fully encrypted with FileVault 2.  When encrypting an external drive, FileVault 2 doesn't provide a recovery key, but it gives you the opportunity to give a hint at the time you enter the pass

  • How To Setup My ITunes Library

    Hi, I have ripped and stored some songs from my CD collections. But my iMac brock down and I still haven't  finished ripping the CDs. So aftering sending my iMac to repare, "how do I set up my (NEW) ITunes Library. So that I can continue rippng the s

  • Why is ADF Bindings node not displayed in Expression Builder window?

    Hello, I'm using Oracle JDeveloper Studio Edition Version 11.1.1.1.0, and I've created a Fusion Web Application and I've configured ADF Authentication and Security for my web project, using the provided wizard. On a certain page, I've placed a Go Lin

  • Premiere Pro CC keeps CRASHING - Mac

    Premiere Pro has been crashing for over a year. Even before I upgraded to CC. Sometimes it will crash more than 5 times in 10 minutes. Longest it has run is just under an hour without crashing. Everytime it crashes it says "Sorry, a serious error has