Re: How to Set Standard Header Section In Export To excel

Hi Experts,
I am using Jdeveloper 11.1.2.3.0 ,
I am taken a Employee and Department  tables For that one i am taking a 2 command buttons and set action ExportToExcel Component to those buttons . Then One button for Employee Date and Second Button for Department But I need Same Template For both the Excels Like Header Section is maintain the Logo And Footer Date Followed For both Pages.
Can Any Give a solution for this One.
With Regards,
satish

Use POI Apache POI - the Java API for Microsoft Documents to export your data. You write native excel wookbooks and have total control on the export (what is exported, headers footers...) Sample http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html
Timo

Similar Messages

  • How to set the header of the file to excel type when writing it?

    Hello,
    I am using POI API to read an excel file that I have previously written using Java, but not using POI (I've written the file using Microsoft office xml and then writing it using FileOutputStream with an xls extension).
    The problem is that when I read back the file I am getting this error:
    The system was unable to upload the file: Invalid header signature; read 7311066695147732796, expected -2226271756974174256.
    which means that the header of the file is not excel typed.
    If I manually open the file and save it as excel POI is able to read it but I don't want to do this as this entire process of writing/reading the file should be automated. I don't want to use POI for writing the file because POI cannot provide me everything that I need when Microsoft office xml can.
    So, my question is simple: Is there a way, using java, to set the header of a file to excel so that POI will recognize it as such?

    hi roy,
    @see: http://poi.apache.org/hssf/index.html
    "HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. It does not support the new Excel 2007 .xlsx OOXML file format, which is not OLE2 based."
    maybe jexcelapi supports you in writing your xls:
    http://jexcelapi.sourceforge.net/
    hth, jens

  • How to set different header for different Standard report page

    How to set different header for different Standard report page

    Hi,
    A easy answer would be use the 'set report header text.vi' but maybe you are talking about something else ?

  • How to set the header variables in weblogic

    Hi,
    We have a following set up in our environment.
    We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
    My Issue:
    How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
    We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
    Thanks
    Ramesh P.

    maybe you are looking for the routing options
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348

  • How to set TabbedPane header height?

    How to set TabbedPane header height?

    So you got help in this posting that shows one way to add a component to the tabbed pane.
    [http://forums.sun.com/thread.jspa?threadID=5337065]
    But you didn't acknowledge the help you received.
    So now you want more help? Well since you didn't reply to that posting I won't reply to this posting.

  • How do I get PDF forms to export to excel in the desired order?

    How do I get PDF forms to export to excel in the desired order?
    Here is what I have done:
    As taken from another post:
    Choose Forms > Manage Form Data > Merge Data Files Into Spreadsheet.
    In the Export Data From Multiple Forms dialog box, click Add Files.
    In the Select file Containing Form Data dialog box, select a file format option in File Of Type option (Acrobat Form Data Files or All Files). Then locate the form files that you want to merge into the spreadsheet, select them, and click Select.
    Repeat the previous step to add form data files that are in other locations, as needed.
    Click Export. Then select a folder and filename for the spreadsheet, and click Save.
    In the Export Progress dialog box, click either View File Now to open the spreadsheet file or Close Dialog to return to Acrobat."
         The problem now is that Adobe populates Excel in ABC order of the form, based off of the name of each box in the form. For example, if my form has three text boxes, named A, B, and C, then Adobe will export to Excel as such:
    Row 1 =         A                              B                              C
    Row 2 =         data entered             data entered              data entered
    where 'data entered' is whatever the user typed into the form boxes. But what if I want a different order for exporting, and I don't want to rename my text boxes? What if I want:
    Row 1 =         C                              B                              A
    Row 2 =         data entered             data entered              data entered   ?
    Is there a way to do this in acrobat x or xi?
    Thanks

    I don't have time to test right now, but there was a change with Acrobat 10 where it exports according to the tab order, which you may have to set manually, so give that a shot. Otherwise, you'll have to process the file after it's exported if you need the fields in a particular order. This wouldn't be too difficult to do with something like a VBS or JS script in Windows.

  • How to set ApplIndentityData header field in JMS adapter

    Hi Guys ,
        I have one requirement for update the field in SAP JMS header. I am using transport protocol for IBM Websphere MQ in JMS adapter.
    While sending data to IBM Websphere MQ Queue via JMS Adapter, need to set the field called ApplIndentityData with the appropriate value which is populate to a MQHRF2 header of a message.
    So, regarding that where will do it? Means JMS receiver adapter or IBM MQ level. If JMS receiver adapter, I think using ASMA, So please guide me how to set this filed value in JMS adapter or share any document you have.
    Thanks & regards
    Vijaykumar S

    Hi RejaSekar,
           I reffered your blog and did the below settings in JMS module and ASMA settings. 
    1) Changed the mode for u201CJMS-Complaintu201D instead of u201CWebsphere MQ(non JMS)u201D
    2) Additional JMS message properties tab created below property name and java type.
           LocalName    --> String
           Partname      -->  String
    3) In module parameter tab added the below module name and key
        AF_Modules/DynamicConfigurationBean   -->  LocalEnterpriseBean  -->  RFH2HEADER
    4) Under parameter Tab
         RFH2HEADER       -->   key.0      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER       -->   key.1      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER      -->  value.0    -->    LocalName
         RFH2HEADER      -->  value.1    -->    PartnerName
    Kindly check the above settings whether this is correct or wrong. If anything wrong please let me know what we need to change JMS receiver adapter.
    Actually my requirement is need to set these parameters and set the value to that parameters and pass in to /usr folder of a WebsphereMQ message.
    Kindly check and help me out.
    Thanks & regards
    Vijayakumar S

  • How to set the header for second page

    Hello all,
    I'm trying to set different header for first page and page number should starts from second page.
    Below is the sample code to set the header for each and every page.
    DECLARE
    hApplication OLE2.OBJ_TYPE;
    hWindow OLE2.OBJ_TYPE;
    hPane OLE2.OBJ_TYPE;
    hView OLE2.OBJ_TYPE;
    hDocuments OLE2.OBJ_TYPE;
    hDocument OLE2.OBJ_TYPE;
    hSelection OLE2.OBJ_TYPE;
    hParagraphFormat OLE2.OBJ_TYPE;
    hRange OLE2.OBJ_TYPE;
    hFields OLE2.OBJ_TYPE;
    hFont OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    wdAlignParagraphLeft CONSTANT number(3) := 0;
    wdAlignParagraphCenter CONSTANT number(3) := 1;
    wdAlignParagraphRight CONSTANT number(3) := 2;
    wdSeekCurrentPageHeader CONSTANT number(3) := 9;
    wdSeekCurrentPageFooter CONSTANT number(3) := 10;
    wdSeekMainDocument CONSTANT number(3) := 0;
    wdFieldPage CONSTANT number(3) := 33;
    wdFieldNumPages CONSTANT number(3) := 26;
    wdPageBreak CONSTANT number(3) := 7;
    wdStory CONSTANT number(3) := 6;
    myTab CONSTANT varchar2(1) := chr(9);
    myBlue CONSTANT number(8) := 16711680; --FF0000
    myGreen CONSTANT number(8) := 65280; --00FF00
    myRed CONSTANT number(8) := 255; --0000FF
    myDkGreen CONSTANT number(8) := 32768; --008000
    myBlack CONSTANT number(8) := 0; --000000
    myText varchar2(2000);
    BEGIN
    hApplication:=OLE2.CREATE_OBJ('Word.Application');
    OLE2.SET_PROPERTY(hApplication, 'Visible', 1);
    hDocuments := OLE2.GET_OBJ_PROPERTY(hApplication, 'Documents');
    hDocument := OLE2.INVOKE_OBJ(hDocuments, 'Add');
    -------- Create Header and Footer --------
    hWindow := OLE2.GET_OBJ_PROPERTY(hApplication, 'ActiveWindow');
    hPane := OLE2.GET_OBJ_PROPERTY(hWindow, 'ActivePane' );
    hView := OLE2.GET_OBJ_PROPERTY(hPane, 'View' );
    ---- Header Section ---
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageHeader);
    hSelection := OLE2.GET_OBJ_PROPERTY(hApplication, 'Selection');
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Times New Roman');
    OLE2.SET_PROPERTY(hFont, 'Size', 10);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyBlue );
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'This is a');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    OLE2.SET_PROPERTY(hFont, 'Size', 16);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyDkGreen );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Test Header');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- Footer Section ----
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageFooter);
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    hFields := OLE2.GET_OBJ_PROPERTY(hSelection, 'Fields');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Page ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldPage);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, ' of ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldNumPages);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hRange);
    OLE2.RELEASE_OBJ(hFields);
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekMainDocument);
    OLE2.RELEASE_OBJ(hView);
    OLE2.RELEASE_OBJ(hPane);
    OLE2.RELEASE_OBJ(hWindow);
    -------- Insert Text --------
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Arial');
    OLE2.SET_PROPERTY(hFont, 'Size', 12);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE );
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText);
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myRed);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'first ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdPageBreak);
    OLE2.INVOKE(hSelection, 'InsertBreak', args);
    OLE2.DESTROY_ARGLIST(args);
    ----page 2
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText );
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlue);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'second ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- go to the top of the first page
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdStory);
    OLE2.INVOKE(hSelection, 'HomeKey', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hFont);
    OLE2.RELEASE_OBJ(hSelection);
    OLE2.RELEASE_OBJ(hDocument);
    OLE2.RELEASE_OBJ(hDocuments);
    OLE2.RELEASE_OBJ(hApplication);
    END;
    Please help me out
    Thanks,
    Bhavana

    Click on --
    Edit link for Page> Click "Edit Default" link on Banner >
    Under the "Banner Links"
    provide value something like this:
    Label = Help
    URL = /pls/portal30/docs/myhelp.html
    Icon = U can upload any icon here.
    For Application Components = See the Second Last tab on "Edit Component".
    Thanx,
    Chetan.

  • How do I make head section an editable region?

    I have a main template with header, spry menu, main content(editable region) and footer.
    I create new page from template, but it will not let me edit the head section to add a spry accordian. I need to paste the external link to css for the accordian in the head section, but DW wont let me touch the head section. I tryed to make the "head" an editable region, but that did not work.
    Thanks for any insight...
    Kevin

    If you are using a recent version of Dreamweaver, there should be an editable section in the head of the document just before the closing head tag. It looks like this:
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    Insert the keywords, description, links to external files between the Template comments.
    If you're using an older version of Dreamweaver that hasn't created an editable region inside the head, copy and paste the template comments into the master template just before the closing head tag, as shown above.

  • Is there an article on how to set up color profiles.problem exporting

    I organize and store photos in iPhoto. However I do editing in Photoshop Elements 6. When I take my photos back into iPhoto everything looks fine. So everything between iPhoto and Elements is fine. Some of my problems are:
    1. When I use PSE6 to resize a photo for the web or I have it resized to attach to an email the coloring is dulled for what the corrected version that I had just prior to the resizing.
    2. When I take a photo from iPhoto and drag it to the desktop to burn a disc for even non-Apple users the photo becomes dull.
    3. I use two Epson printers. Sometimes the coloring looks good and sometimes it doesn't.
    I have used Sypder to calibrate my computer however I'm thinking I like the ColorSync better.
    Are there articles that will tell me step-by-step how to set up?

    Hi IsACharlee,
    If Home Sharing does not appear to be working after turning it on for both computers, see the additional troubleshooting steps in this article:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/TS2972
    Have a good one!
    - Ari

  • How to set video size default for exporting?

    Hi,
    I use quicktime conversion to export video out of FCP. My question is how to set a default video size. Under the options I can change the video size to NTSC 720:480 4:3 (and other choices). How do I set that as the default? Everytime I close out of FCP, the setting revert back to compressor native, which is what I dont want.
    If anyone knows, please email me at [email protected]
    Thanks
    Greg

    You can't. Use Compressor and build a droplet to the exact specification you want, especially if you're going to be doing that format often.

  • How to set the Border of a cell in excel sheet

    dear all,
    using OLE2 i want to set the cell's border in an excel sheet
    so whats the property for that?
    ole2.set_property(WorkCell,???, ???);
    thanks and best regards,
    very urgent plz
    thanks in advance

    Could you, please, definitly remove the "urgent" word from your vocabulary when you post on this forum. We are all volonteers and not paid at all to answer the qestions. I repeat one more time that there is no post more urgent than another.
    If you are so in a hury, as said Gerd, contact the Oracle support.
    Francois

  • How to set default filepath for alv export?

    when i use the standard function of alv export, list-export-local file-spreadsheet
    the default filepath is "C:\Users\Administrator\Documents\SAP\SAP GUI\"
    may i change the default filepath to another direction?

    Anyone Help? Thanks~

  • Set Field as text before exporting to excel

    HELLO GURUS,
    i have a program which exports material numbers and other relevant data from sap tables to excel sheet.
    certain material numbers contain text 'E' in between the material number (Eg. 17700E0056). When such data is exported to excel, Excel treats these as exponential numbers and converts them to scientific notation (1.77E+60).
    How do I export the data as it is?
    Is there a way that i can convert it to text format before exporting it to excel..?

    Hi,
    try moving the values to a CHAR field before download to Excel
    or
    when building your field catalog , specify the field length same as of that fields data element.
    eg. your material number is of char 10.
    so set yout outputlen eq 10.
    g_flcat-outputlen = '10'.
    this works.
    Thanks & regards.
    Edited by: anusha25 on Nov 8, 2011 5:02 PM

  • How to set property of Section and SubReport in C#

    Hi Sir,
    I use CR2008 editor to vew an report file.
    There are a lot of properties can be set in  report, such as: Section and SubReport.
    You can refer the screenshot below to know the properties I mention: (RED block)
    http://smem.no-ip.com/pic/section_expert_1.png
    http://smem.no-ip.com/pic/section_expert_2.png
    http://smem.no-ip.com/pic/subreport_format.png
    If I would like to change the properties dynamically in program (C#),  how can I do ?
    I check the member/method of SubreportClientDocument, SubreportController.., but I can't find any way that I can change the properties.
    We need your help.
    Thank you

    Thanks for support.
    I found the location of properties:
    ReportDocument.ReportDefinition.Areas[n].Sections[n].ReportObjects[n].ObjectFormat.EnableCloseAtPageBreak

Maybe you are looking for

  • Court filing requires use of firefox 3.6--how do I get rid of 5 and load 3.6 on a MAC

    I'm a lawyer and Mac user. When unsuccessfully trying to use the electronic filing system for federal court, I was provided this pop up after recently upgrading my firefox: "Important News Regarding Firefox 4/5 and CM/ECF The current version of CM/EC

  • Phone number format edit

    Hello everyone, i have a problem with my iPhone 4S. I'm from Romania so it's not a verizon problem only... When a person in my contact list is calling me it only shows the numer of the caller not the ID, but after i hang-up and go to call history it

  • Service Order Maintenance (IW32 Transaction)

    Hi, I don't know whether it is possible. Please shed your expert thoughts. In IW32 transaction, once we release the service order, we won't be able to amend the cost field in the header tab. But I have a requirement to update this field even after re

  • Content rules issue - request directed to the wrong content

    Hi, We have the following setup; Requests to www.oursite.com goes to the content rule LB_FD_87. Request to www.oursite.com/water/* goes to the more specific content rule FD/WATER_LB_87. Sometimes, for unexplicable reasons, requests for www.oursite.co

  • Dropped Frames instantly after beginning to capture

    I've been uploading video and had no problem, then randomly at one point I got the 'dropped frames' message, and now I get it instantly after clicking capture... I feel like it's something with the computer, since the video plays back fine until I cl