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.

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.

  • How to create an Excel file from XML in the Receiver File Adapter Comm Ch

    How do I create an Excel file from XML in the Receiver File Adapter Communication Channel? I have my mapping done and I am outputting the file as a comma delimited csv file. However, the target can only process an Excel file (.xls). How can I generate an Excel in XI?
    I saw this blog, but I don't know how to create a XSLT transformation.
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    Any help would be appreciated. Thanks.

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • Crystal report from JSP using the JRC

    Hi, I am trying to call crystal report from JSP using the JRC.
    But i am getting the Error as 'Logon Failed'. my web.xml entry is
    <env-entry>
    <env-entry-name>jdbc/Test</env-entry-name>
    <env-entry-value>!oracle.jdbc.driver.OracleDriver!jdbc:oracle:thin:{userid}/{password}@//10.0.0.1:1521/TestDB</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    i am setting the userid and password in the code. Please see the below code for your reference. Please help me to solve the issue.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSource" %>
    <html>
    <head>
    <title>Crystal Report with Database Logon information</title> </head>
    <body bgcolor="#ffffff">
    <%
    try
    String report = "/TEMPLATE.rpt";
    IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
    JPEReportSource reportSource = (JPEReportSource) rptSrcFactory.createReportSource(report, request.getLocale());
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setReportSource(reportSource);
    viewer.setHasRefreshButton(true);
    IConnectionInfo newConnInfo = new ConnectionInfo();
    newConnInfo.setUserName("TEST");
    newConnInfo.setPassword("TEST");
    ConnectionInfos newConnInfos = new ConnectionInfos();
    newConnInfos.add(newConnInfo);
    viewer.setDatabaseLogonInfos(newConnInfos);
    viewer.setEnableLogonPrompt(false);
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    out.println("Connection Information: "+viewer.getDatabaseLogonInfos().getConnectionInfo(0).getAttributes().toString());
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    viewer.dispose();
    catch(Exception e)
    throw new JspException( e);
    %>
    </body>
    </html>

    I never really had much luck with this approach.
    Mind you I was using Crystal Reports 10, and as far as I recall it didn't allow setting/changing of database at this level.
    Things to check
    - can you create a database connection on your page with this URL/username/password?
    - what server are you using? Tomcat? WebLogic?
    I found this in your other post:
    Connection Information: {Server Name=ee6rpt, Connection String=DSN=s(ee6rpt);User ID=s(ee62test);Password=;UseDSNProperties=b(false), Database Name=, Database DLL=crdb_odbc.dll}That would indicate it is using odbc to connect to the database (crdb_odbc.dll). ODBC is a bad idea with java.
    The way I have got it to work for me (after much trial and error) was to in Crystal Reports to connect using the Oracle Driver, and specifying a tnsname - eg define REPORT_DS in tnsnames.ora.
    When running through the JRC, it looked for a JNDI datasource under that same name "REPORT_DS".
    Don't know if that will help you or not.
    Good luck,
    evnafets

  • Does anyone know why- when I iport a one minute video project into Final Cut X from I Movie the resolution that looked alright in IMovie full screen becomes worst in final cut, full screen...but clear when it is in still position?

    Does anyone know why- when I import a one minute video project into Final Cut X from I Movie the resolution that looked alright full screen in I Movie instantly becomes worst on full screen in Final Cut X...but clear again when I stop it to still position?

    I'm new to video editing but I think I recall seeing an option in FCPX which lets you choose the video quality for the preview window. I think the window reduces the quality when playing back for performance reasons and so perhaps that is why it seems to have less quality when moved over to FCPX? Just a possibility, I'm sure one of the more experienced users can confirm or deny this theory.

  • HT203167 I had to reinstall my whole computer because of a virus, but how do i get all my old  purchased songs back into my ituns? (i still use the same account)

    I had to reinstall my whole computer because of a virus, but how do i get all my old  purchased songs back into my ituns? (i still use the same account).
    Thank you for helping.

    Welcome to the Apple Community.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.

  • Everytime I open Safari it downloads a series of blank.aspx files into my downloads folder. Anyone having the same problem?

    Everytime I open Safari it downloads a series of blank.aspx files into my downloads folder. Anyone having the same problem?

    Has there been a fix for this yet?  I am downloading close to 150 blank aspx files every 15 minutes.  I have tried the fix from Carolyn Samit and the AdBlock seems to be working thus far, but when it is not working it launches Adobe Dreamweaver.  Which is going berzerker.
    Any help would be much appreciated.
    Thanks to all on this community.

  • HT203167 I downloaded two movies from itunes at the same time (both free digital copies from a dvd) and when they finished downloading... they disappeared. I've not been able to re-download them or find them.. anywhere. Any suggestions for tracking them d

    I downloaded two movies from itunes at the same time (both free digital copies from a dvd) and when they finished downloading... they disappeared. I've not been able to re-download them or find them.. anywhere. Any suggestions for tracking them down?

    If you downloaded them on your computer's iTunes then they should have gone into the Movies part of your iTunes library, if on a device (iPad, iPhone or iPod Touch) then into the Videos app - they haven't appeared there ?
    If you downloaded on your PC and they don't show in the Movies section then you could try searching for them by name (or part of their name) via windows explorer and see if that finds them. Or if you downloaded them on a device and they aren't in the Videos app then have you got a film age rating set in Settings > General > Restrictions that is hiding them, and if not can you find them via the device's spotlight search screen (swipe your first homescreen to the right) ?

  • Hi, since installing mountain lion on my macbook, it wont download pdf files from internet sites, the same problem does not exist on my mac mini, i am using firefox on both macs, please help!

    Hi, since installing mountain lion on my macbook, it wont download pdf files from internet sites, the same problem does not exist on my mac mini, i am using firefox on both macs, please help!

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Unable to delete Role from User ID in SAP SOLMAN production system but able to from DEV with the same authorization, pls suggest

    unable to delete Role from User ID in SAP SOLMAN production system but able to from DEV with the same authorization, pls suggest

    Hi,
    For SU01 role removal, you do not need S_USER_AGR with 02, and as you mentioned both authorizations available in production, if so trace should not show you the S_USER_AGR with 02 with RC=04.
    I would recommend to do role comparison for the user performing the activity. and then check if you have the S_USER_AGR with 02 in user buffer SU56.
    But ideally it should not ask you S_USER_AGR for 02 through SU01, so please take help of abaper to debug it.
    Also put trace in non-prd to see if S_USER_AGR is getting checked with 02 for removal through SU01.
    BR,
    Mangesh

Maybe you are looking for

  • EA2 - BUG: Export produces invalid SQL for BINARY_DOUBLE columns

    Description: When a table contains a BINARY_DOUBLE column, INSERTs for that column in SQL exported with Export Wizard are invalid. Steps to reproduce: - open SQL Developer, connect to DB - make a table containing a BINARY_DOUBLE column, e.g.: CREATE

  • [SOLVED] badblocks ext4

    Overview of issue. On boot when a filesystem is being fsck, errors appear: [ 21.638174] sd 2:0:0:0: [sdc] Unhandled sense code [ 21.638180] sd 2:0:0:0: [sdc] Result: hostbyte=0x10 driverbyte=0x08 [ 21.638186] sd 2:0:0:0: [sdc] Sense Key : 0x3 [curren

  • Sales order item data

    Hi Experts, Let me know the table in which the  APPR column data of sales order item is updating. Thanks in advance. Thanks, K.Rajesh.

  • Mysterious recurring calendar appointment - argh!

    I'm using iPhone 4 and have several calendars synced to it.  For the past almost 3 years, 3 times a week, I get a reminder to take my kids to the childminder... which they haven't been to for 3 years and who now lives in Belize.  I *think* this is a

  • Project Tuning Questions

    I would like create a new project and set the tuning in the project to a tuning that I heard about recently that I would like to experiment with and try and create compositions using the frequencies. - I'm just a piddler and I am not trying to break