Freezing Headers in Excel

I'm dumping the output of a query into an excel file using application/vnd.ms-excel in my code and I need to know if there is a way to freeze the header row so it stays at the top when the user scrolls down the list.

Yes, you would need to create a true spreadsheet. But it is possible with with either CF9 (or earlier using POI)
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS89BB5273-80BA-4c55-9862-4D9D0ADA062B. html
http://poi.apache.org/spreadsheet/quick-guide.html#Splits
-Leigh

Similar Messages

  • Excel R&A Import - Freeze Headers in Financial Reporting Studio don't work

    Our users like financials in Excel and fully formatted to their liking so we create the template in Financial Reporting Studio and then import the template via Excel through Workspace via Independent Provider Connection. If the certain grid template in Financial Reporting Studio was set to several "pages" to produce, all the pages will popup on separate tabs in Excel. My question is, for each "page" which populates info on one tab in Excel, when printed, could be several printed pages long so the column headings don't reprint. I can manually set up Excel to reprint the column headings but since we produce thousands of reports with various templates, we don't want to run too many macros all the time. I know the export in PDF from Workspace will freeze the headers because I froze it on the template in Fin Rptg Studio, so how come the freeze headers don't translate in Excel?

    Actually that's what I thought so that I won't have to run the config utility for a client install. When I did the Typical installation it gave me an option at he end of an install to run the Config utility or not.
    As far as the registery cleaning is concerned, there are probably 100 entries all over the place. Pain the neck but I guess that would be my only option here.
    With the vpd.properties file, I can definitly say that in 9.3.1.3 it is there. I have the same version installed on my machine and I have the vpd.properties file.
    So, I think the bottom line would be to uninstall everything related to Hyperion.
    Clean the registery for all Hyperion entries.
    Reboot and reinstall.
    Thanks for the reply though.

  • How to change the font settings of headers in excel

    how tobold the column headers in excel using RGT?
    kavi

    duplicate post
    RGT means Report Generation Toolkit...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Set Background color for headers in excel

    DECLARE
       v_fh     UTL_FILE.file_type;
       v_dir    VARCHAR2 (30)      := 'my dir';
       v_file   VARCHAR2 (30)      := 'test.xls';
       PROCEDURE run_query (p_sql IN VARCHAR2)
       IS
          v_v_val   VARCHAR2 (4000);
          v_n_val   NUMBER;
          v_d_val   DATE;
          v_ret     NUMBER;
          c         NUMBER;
          d         NUMBER;
          col_cnt   INTEGER;
          f         BOOLEAN;
          rec_tab   DBMS_SQL.desc_tab;
          col_num   NUMBER;
       BEGIN
          c := DBMS_SQL.open_cursor;
          -- parse the SQL statement
          DBMS_SQL.parse (c, p_sql, DBMS_SQL.native);
          -- start execution of the SQL statement
          d := DBMS_SQL.EXECUTE (c);
          -- get a description of the returned columns
          DBMS_SQL.describe_columns (c, col_cnt, rec_tab);
          -- bind variables to columns
          FOR j IN 1 .. col_cnt
          LOOP
             CASE rec_tab (j).col_type
                WHEN 1
                THEN
                   DBMS_SQL.define_column (c, j, v_v_val, 4000);
                WHEN 2
                THEN
                   DBMS_SQL.define_column (c, j, v_n_val);
                WHEN 12
                THEN
                   DBMS_SQL.define_column (c, j, v_d_val);
                ELSE
                   DBMS_SQL.define_column (c, j, v_v_val, 4000);
             END CASE;
          END LOOP;
          -- Output the column headers
          UTL_FILE.put_line (v_fh, '<ss:Row>');
          FOR j IN 1 .. col_cnt
          LOOP
             UTL_FILE.put_line (v_fh, '<ss:Cell>');
             UTL_FILE.put_line (v_fh,
                                   '<ss:Data ss:Type="String">'
                                || rec_tab (j).col_name
                                || '</ss:Data>'
             UTL_FILE.put_line (v_fh, '</ss:Cell>');
          END LOOP;
          UTL_FILE.put_line (v_fh, '</ss:Row>');
          -- Output the data
          LOOP
             v_ret := DBMS_SQL.fetch_rows (c);
             EXIT WHEN v_ret = 0;
             UTL_FILE.put_line (v_fh, '<ss:Row>');
             FOR j IN 1 .. col_cnt
             LOOP
                CASE rec_tab (j).col_type
                   WHEN 1
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_v_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="String">'
                                         || v_v_val
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   WHEN 2
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_n_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="Number">'
                                         || TO_CHAR (v_n_val)
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   WHEN 12
                   THEN
                      DBMS_SQL.COLUMN_VALUE (c, j, v_d_val);
                      UTL_FILE.put_line (v_fh,
                                         '<ss:Cell ss:StyleID="OracleDate">'
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="DateTime">'
                                         || TO_CHAR (v_d_val,
                                                     'YYYY-MM-DD"T"HH24:MI:SS'
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                   ELSE
                      DBMS_SQL.COLUMN_VALUE (c, j, v_v_val);
                      UTL_FILE.put_line (v_fh, '<ss:Cell>');
                      UTL_FILE.put_line (v_fh,
                                            '<ss:Data ss:Type="String">'
                                         || v_v_val
                                         || '</ss:Data>'
                      UTL_FILE.put_line (v_fh, '</ss:Cell>');
                END CASE;
             END LOOP;
             UTL_FILE.put_line (v_fh, '</ss:Row>');
          END LOOP;
          DBMS_SQL.close_cursor (c);
       END;
       PROCEDURE start_workbook
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '<?xml version="1.0"?>');
          UTL_FILE.put_line
             (v_fh,
              '<ss:Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">'
       END;
       PROCEDURE end_workbook
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '</ss:Workbook>');
       END;
       PROCEDURE start_worksheet (p_sheetname IN VARCHAR2)
       IS
       BEGIN
          UTL_FILE.put_line (v_fh,
                             '<ss:Worksheet ss:Name="' || p_sheetname || '">'
          UTL_FILE.put_line (v_fh, '<ss:Table>');
       END;
       PROCEDURE end_worksheet
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '</ss:Table>');
          UTL_FILE.put_line (v_fh, '</ss:Worksheet>');
       END;
       PROCEDURE set_date_style
       IS
       BEGIN
          UTL_FILE.put_line (v_fh, '<ss:Styles>');
          UTL_FILE.put_line (v_fh, '<ss:Style ss:ID="OracleDate">');
          UTL_FILE.put_line
                           (v_fh,
                            '<ss:NumberFormat ss:Format="dd/mm/yyyy\ hh:mm:ss"/>'
          UTL_FILE.put_line (v_fh, '</ss:Style>');
          UTL_FILE.put_line (v_fh, '</ss:Styles>');
       END;
    BEGIN
       v_fh := UTL_FILE.fopen (v_dir, v_file, 'w', 32767);
       start_workbook;
       set_date_style;
       start_worksheet ('OM');
       run_query ('select PARTY_ID,PARTY_NAME from HZ_PARTIES
        where PARTY_ID<1080');
       end_worksheet;
       start_worksheet ('PO');
       run_query ('SELECT AGENT_ID,TYPE_LOOKUP_CODE FROM PO_HEADERS_ALL
            WHERE PO_HEADER_ID<20');
       end_worksheet;
       end_workbook;
       UTL_FILE.fclose (v_fh);
    END;
    Here i will get two outputs in same excel with different spread sheets,
    now i want to set background color for headers i
    ex:PARTY_ID,PARTY_NAME,AGENT_ID,TYPE_LOOKUP_CODE are the headers,in excel output i want background color as blue.
    Please do need full help,its urgent req.

    Hello,
    open the file in Excel and save it, just to ensure that Excel writes all the additional stuff it thinks is necessary.
    Now change the background colour of the header and save the file again but with a different name.
    Open both files in a text editor and look at the differences. That's what you need to change in your code.
    Alternatively you can use packages like xml_spreadsheet or ExcelDocumentType, both write the same file format that you use in your code and you don't have to reinvent the wheel.
    Regards
    Marcus

  • Can pp col headings act like freeze pane in excel

    Hi.  We run 2012 enterprise.  Can co headings on my pivot table scroll as freeze pane does in regular excel?  How?

    Hi, your Situation is as follow?:
    You have a powerpivot model, and a pivot-table based on this PP data, created with Excel 2013
    Now you want the Pivot-table columns to freeze if you scroll down the Excel sheet?
    IMHO you can't do this because Excel has no Feature to freeze Pivot-table column, but can freeze columns of Excel table objects
    You can get PP data into a Excel table object by creating a DAX Query, see:
    http://www.sqlbi.com/articles/linkback-tables-in-powerpivot-for-excel-2013

  • How to Freeze Headers of tabular report and Forms - and Column Alignment

    I have executed the solution listed in the following thread in my tabular form.
    Re: How to freeze Headers of tabuar report and Forms in APEX 4.1
    This works pretty well in my tabular form, but I do have a question and was wondering if the forum users can shed some light.
    The tabular form has some display only fields and some editable fields. For example, columns A - G are display only fields (Display as Text - escape special characters, does not save state) and other fields that come after are editable. When there is data in the display only filed, every thing looks fine - column headers are aligned with the tabular form column data. But when there is no data in, one or more of, these display only fields, the tabular form columns/data shift to the left and now the column header does not align with the column data.
    Following are the specifics
    Full APEX version - 4.0.2.00.07
    Full DB/version/edition/host OS - 11g
    Web server architecture (EPG, OHS or APEX listener/host OS) - HTTP Server OAS
    Browser(s) and version(s) used - IE 8
    Theme - Sand-10
    Template(s) - was using the Standard Report (then created the one found in the thread listed above and substituted with the new one)
    Region/item type(s) - Chart Region
    Links to related posts and threads (using the methods in the FAQ) - Re: How to freeze Headers of tabuar report and Forms in APEX 4.1
    How do I set the column widths so the column header aligns with the column data?
    Thanks,
    DP
    Edited by: DP on Dec 13, 2012 3:09 PM

    Hello DP,
    >
    The tabular form has some display only fields and some editable fields. For example, columns A - G are display only fields (Display as Text - escape special characters, does not save state) and other fields that come after are editable. When there is data in the display only filed, every thing looks fine - column headers are aligned with the tabular form column data. But when there is no data in, one or more of, these display only fields, the tabular form columns/data shift to the left and now the column header does not align with the column data.
    Full APEX version - 4.0.2.00.07
    Browser(s) and version(s) used - IE 8
    How do I set the column widths so the column header aligns with the column data?
    >
    As right now I don't have the APEX and browser versions mentioned, I will set up the environment and look for the issue faced by you.
    Regards,
    Kiran

  • Export JTable Column headers to Excel document

    Hello all!!! I am having a small problem while trying to export some data from a jTable to an excel document.
    I have a jTable and I use a custom TableModel with this:
    private String[] columnNames = {"First", "Second", "Third", "Forth"};as names for each column of the table.
    The thing I am trying to do is to export exactly the same "headers" from the columns of the jTable to the excel spreadsheet using Jakarta POI. Unfortunately I don't know how to do it and I haven't found anything yet on this forum. Can anyone help me with this?
    In simple words I want to know how I can have the same headers from my jTable columns, with the headers from the excel doument I will create.
    Many thanks in advanve!!!
    Kostas

    Thank you for your reply first of all. The problem is how to get the heading text and how to put it to the excel's first row OR to excels "headings" (if it is possible...). [in other words replace A,B,C,D from the excel document with the headers I get from the jTable...] .
    I hope now you can see what I am looking for... If there is no solution to this please tell me what are the alternatives. (B) could be a good example.
    Thanks you very much!!
    Kostas

  • Column Headers in Excel using CLIENT_OLE2

    Hello guys,
    I have muti record block that has 10 columns which I want to display in Excel. I created a procedure RUN_EXCEL and everything works fine when the button is pressed and the procedure is called. However, I want to add the column prompts and when I try to do that using the prompt text I get the column headers but all the rows and colums mess up. Can anyone tell me how to get the column header to work to add in my current procedure. Right now if I run this way it doesn't display the promt headers.
    Thanks
    PROCEDURE RUN_EXCEL IS
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    args Client_OLE2.List_Type;
    cell client_ole2.Obj_Type;
    font client_ole2.obj_type;
    range client_ole2.obj_type;
    range_col client_ole2.obj_type;
    item_prompt VARCHAR2(32767);
    j INTEGER;
    k INTEGER;
    l INTEGER;
    BEGIN
    application := Client_OLE2.create_obj('Excel.Application');
    Client_OLE2.Set_Property ( application , 'visible', 1);
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    workbook := Client_OLE2.Invoke_Obj(workbooks, 'Add');
    worksheets := Client_OLE2.Get_Obj_Property(workbook, 'Worksheets');
    worksheet := Client_OLE2.Invoke_Obj(worksheets, 'Add');
    go_block('DM_T_EXCEPTION_LOG');
    first_record;
    j:=1;
    k:=1;
    while :system.last_record = 'FALSE'
    loop
    for k in 1..10 /* Table has 10 columns */
    loop
    If not name_in(:system.cursor_item) is NULL Then
         item_prompt := get_item_property(:SYSTEM.CURRENT_BLOCK||'.'||:SYSTEM.CURRENT_ITEM, prompt_text);
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    range := client_ole2.get_obj_property (worksheet, 'UsedRange');
    range_col := client_ole2.get_obj_property (range, 'Columns');
    client_ole2.invoke (range_col, 'AutoFit');
    End If;
    next_item;
    end loop;
    j:=j+1;
    next_record;
    end loop;
    /* For the last record */
    for k in 1..10
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    -- imessage('in k again'||' '||:system.cursor_item||' '||item_prompt);
    Client_OLE2.release_obj(cell);
    range := client_ole2.get_obj_property (worksheet, 'UsedRange');
    range_col := client_ole2.get_obj_property (range, 'Columns');
    client_ole2.invoke (range_col, 'AutoFit');
    End If;
    next_item;
    end loop;
    ole2.set_property(application, 'Visible', 'false');
    client_ole2.release_obj (range);
    client_ole2.release_obj (range_col);
    Client_OLE2.Release_Obj(worksheet);
    Client_OLE2.Release_Obj(worksheets);
    END;

    Re:  Problem area in code
    "Match" is a worksheet function and is not used in VBA unless it is identified as a worksheet function, such as...
      X = Application.WorksheetFunction.Match(arg, arg, arg)
    Jim Cone
    Portland, Oregon USA
    free 'Save Selection as Picture' excel add-in
    (a couple of clicks & you have a picture file of the selected cells)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • What's equivalent to "Freeze Panes" in Excel?

    I've used Excel for years at work. Now I've not Numbers at home. I can't figure out how to "freeze panes" so, as I scroll down a page, the header row stays visible. Help?

    While Freeze Panes does not exist, Jason over on www.numberstemplates.com
    came up with this solution:
    http://www.numberstemplates.com/forums/showthread.php?t=20
    His demonstration consists of 3 tables. The third table is where the full spreadsheet exists. The second table is a "window" onto the third table. The first table is just two slider bars. As you slide the sliders, the second table adjusts what it is showing in the second table from the data in the third. This makes more sense once you try his example.
    If you are just looking at data, his solution works very well. If you need the freeze panes so that you know what column to input the data into, well, keep hitting that "Provide Numbers Feedback" button. until it appears.

  • Disk Utility Freezes & MS Word & Excel Won't Launch

    Yesterday, my Disk Utility froze when it started performing a Verify Disk and I had to force quit. This morning I was using both MS Excel and MS Word, closed them and when I tried to open them 30 minutes later, neither will launch and I get an error message saying that they "closed unexpectedly during launch." I tried to Verify Disk & Disk Utility froze again. Then I repaired permissions using Disk Utility but it didn't help with the Excel and Word issues. I have never had a problem with any of these before. I just used Disk Warrior to "Check All Files and Folders" and "Repair Disk Permissions" and Test the Hardware. I am still not able to open Word or Excel. Any thoughts??

    Hard drive has 30.58 GB available. I didn't run disk utility from the OSX install disk -- am in the process of moving and not sure where it is. Might actually be in my home in another country!!!

  • Always show a part of a form - like freeze panes in Excel

    In Excel you can lock cells so that they always appear no matter where you scroll.
    Has anyone done anything similar with livecycle?  I'm designing a wide form with a table and I'd like to keep some values visible on the left as the user scrolls to the right. 
    Any advice, ideas or inspiration greatly recieved!

    Hi,
    Just a thought.
    I think it would be possible to build a table with buttons nearby (styled to be similar to scrool bars buttons) that would hide a bottom row and reveal a top row with each click--and the opposit with the other button. You wouldn't have a place indicator, though. Also, with another set of buttons, you could hide and reveal 10 rows--thereby paging, sort of.
    A script would require all the rows to be named the same, at least for simplicity.
    .Good luck!
    Stephen

  • Not able to export report headers to Excel

    This is requirement from a client. They want to export the reports only to Excel and they want the report header to be displayed in excel worksheet.
    I tried in two ways. 1) Save to My computer as Excel in WebI and 2) Create a view in Excel connecting to WebI using Live Office.
    But in both attempt I am not able to get the report header. My interest to get report header is because i have some UserResponse functions used in report header. I can create a header in Excel and update the data using live office. But I cant get the UserResponse function in Excel header if i create without help of WebI.
    So any solutions for this problem.
    Thanks
    Raghu

    I realized that I can put a block in WebI and then I can pull that in excel alongside of static header, after putting the question.
    My interest to know whether it is by design in XI 3.0 or it is an issue. But by the replies it seems to me like it is by design.
    @Anis: I can't go for header as part of Body. Because this report is viewed in Web by many other users. I can't have separate report for Live office, it is a restriction for me. If I use the header in body, it wont look good I guess.

  • Numbers 08, 1.0.3, freezing headers

    Is this not available in Numbers 08?
    Any other way round the problem, please? With a large chart I have to keep scrolling and using tab key to find my way from the left hand column and still see the headers at the top of the chart too.

    Often described workaround :
    activate the mode "Show Preview"
    Yvan KOENIG (VALLAURIS, France) samedi 7 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2

  • Numbers Export to Excel adds 1 Row and 1 Column to the Freeze Header/Columns.

    Exporting a Numbers file to Excel, that has 1 Freeze Column and 5 Freeze Headers, somehow adds an additional Row & Column when opened in Excel.
    Thoughts?

    I found the answer to this question with help from SAP Support.
    In the Cross-Tab Expert, Customize Style tab, click "_Column Totals on Top_".
    Then, the Excel Data Only report will show the row titles Top-aligned for the row group.

  • Freeze Table headers in OBIEE

    Can we freeze headers in OBIee, like we do in excel? I want my user to see table headers whenever the report scrolls down.
    Thanks
    Priyanka

    It isn't possible out of the box. Read this: http://blog.trivadis.com/blogs/andreasnobbmann/archive/2009/06/24/fix-report-headings-and-variable-body.aspx
    Regards,
    Stijn

Maybe you are looking for