JAVA API to add header and footer in MS Word

Hi,
please help me out, I am hanging with this concept.
The problem is I need to add a headers in ms word file using java. I come to know that the API is support for this task is 1.apache POI 2.jacob
I dont know which class file I need to use to do this, If anyone knows about this please let me know or send the URL's
Thankyou,
Baskaran.k

ya i have used POI but i don know the class file in POI. i just now trying jacob., can u send the API and Class file to add header and footers in ms word.

Similar Messages

  • How to Add Header and Footer in Flat file

    HI All,
    I am using ODI 11g.
    MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
    But i need to add Header and Footer in the Flat file.
    In the below 3 lines
    The 1st line is header ....2nd line is Data ....3rd line is Footer.
    Any ideas how to work on this.
    HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
    CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
    T00000000000000000000
    Thanks,
    Lony

    Hi Drieux,
    i am able to add Header and Footer in this.
    But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
    In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
    I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
    create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
    Any idea why this sysdate part is not showing in Header.

  • Need to add Header  and footer in an alv grid display output.

    How can I add header and footer in an alv grid dispay output.
    For the grid display, I am using the function module "REUSE_ALV_GRID_DISPLAY".

    HI,
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_html_end_of_list = 'END_OF_LIST_HTML'
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    FORM end_of_list_html USING end TYPE REF TO cl_dd_document.
      DATA: ls_text TYPE sdydo_text_element,
            l_grid     TYPE REF TO cl_gui_alv_grid,
            f(14) TYPE c VALUE 'SET_ROW_HEIGHT'.
      ls_text = 'Footer title'.
    adds and icon (red triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IL'.
    adds test (via variable)
      CALL METHOD end->add_text
        EXPORTING
          text         = ls_text
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Bold text'
          sap_emphasis = 'strong'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Nor'.
    adds new line (start new line)
      CALL METHOD end->new_line.
    display text(bold)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Yellow '
          sap_emphasis = 'str'.
    adds and icon (yellow triangle)
      CALL METHOD end->add_icon
        EXPORTING
          sap_icon = 'IC''.
    display text(normal)
      CALL METHOD end->add_text
        EXPORTING
          text         = 'Mor'.
    *set height of this section
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = l_grid.
      CALL METHOD l_grid->parent->parent->(f)
        EXPORTING
          id     = 3
          height = 14.
    ENDFORM. "end_of_list_html.
    This will solve  it. Post if you need more help in this.
    Regards,
    Madhu.

  • How to add header and footer to a file through ODI?

    hi,
    I want to add header and footer to my file..............footer should contain a counter so that page number can be displayed...................
    Can anyone please guide me .................
    Thanks .............
    Ritika

    what is the utility you are using to create file . Interface or OdiSqlUnload ?
    and what do you want to have Header and Footer as and how are you concluding the File as page 1 and page 2 etc ... ?

  • Acrobat Pro 9.4.6 Add Header and Footer - can't save selection -

    The "window" which opens when you select add Header and Footer is too large so no "accept" option is displayed. Can onlt exit by closing window

    The "window" which opens when you select add Header and Footer is too large so no "accept" option is displayed. Can onlt exit by closing window

  • Header and Footer publishing to Word

    I'm using Robohelp 9 and having trouble modifying default header and footer when publishing to Word 2010.
    Here's what i did:
    I created a Robohelp "Master Page" and added a header and footer to it.
    used single source "printed documentation" to publish to Word docx
    The published Word doc still has the robohelp default header and footer.
    Is there something i need to do to specify the master page when i publish? i don't see an option to do it or can't find this step in the help documentation.
    Something else i tried: I created a header and footer in the Word template i use for printed documentation, however, it gets replaced by the robohelp default header and footer. This is actually the solution i would like to use so i can just specify a word template and go.
    Also, it looks like i can create multiple "master pages" for a single robohelp project and then apply them, but i don't see how to apply them.

    Hi there
    Indeed you may use multiple master pages. But these are normally applied to individual topics. And only a single Master Page may be associated with a topic at any given time.
    The problem here is that you are expecting the headers and footers from Master Pages to carry over into the world of dead trees. (Printed Documentation) And that isn't something you may do.
    If you want headers and footers in Printed Docs, you will need to specify them using Word after you create Printed Documentation from RoboHelp.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Add Header and Footer in Live Cycle ES2

    Hi,
    We are quite new to the use of live cycle pdf generation. Can anyone help us with information as to how we can add header and footers to our pdf files using livecycle ES2.
    And further, we would like to know whether header and footer adding is available in the trial version of Livecycle ES2?

    Hi,
    Thanks for the reply.
    We have another newly raised problem in the header and footer adding from Livecycle ES2. According to the PDF that you referred in the previous reply, we can add graphics to the PDF header, but we are unable to find a DDX tag that would enable us to add a image URL.
    Can you please help us again on the above?
    Purnima

  • How to add header and footer image in pdf

    Hi,
    I want to add image in header and footer for the pdf generation.
    how I can add this? Following my xsl
    ?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
                   <fo:block margin-left="1cm">
                        <xsl:for-each select="@question-text">
                        <xsl:value-of select="."/>=
                        </xsl:for-each>
                        <xsl:if test="string-length(normalize-space(text())) > 0">
                        <xsl:value-of select="text()"/>
                        </xsl:if>
                   </fo:block>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: 848231 on Apr 6, 2011 1:42 AM

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

  • Add Header and Footer in PDF-presenation, Photoshop CS3

    Hi
    How is it possible to make at Header and Footer in a PDF-Presentation generatet in Photoshop CS3 without placing it on every image. Is there a setting (I have not found it) where you can predefine this?
    Best regards/Jean

    hi,
    //changing the font of the rows populated
    u can create Font instance like this:
    Font fontName= new Font();
    fontName.setSize(7.5f);
    fontName.setStyle(fResDetails.BOLD);
    fontName.setColor(255, 91, 91);
    // In the following code you are adding a cell with name 'cellName' to the Table.Here table is an instance of the Table class.
    PdfPCell cellName = new PdfPCell(new Phrase("columnHeader", fontName));
    table.addCell(cellName );
    cellName .setHorizontalAlignment(Element.ALIGN_LEFT);
    cellName .setVerticalAlignment(Element.ALIGN_LEFT);

  • How to Add Header and Footer to appear on every page

    Hi,
    I am using Robo Help 7 for generating Help pages. I have to import a wrod document an publish it as online web help html document. I have query as to how added header and footer be configured to reflect on each and every page. I am using Robohelp for first time and tried various options, but am unable to get the above done.
    Thanks,
    Pallavi

    Hi there
    Display your Topic List pod. Press Ctrl+A to select all the topics. Then right-click the selection and choose Properties. From the Properties dialog click the General tab. There you may choose the Template/Master Page. When you click OK all the topics should now be associated with the Template/Master Page.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to disable Header and Footer in MS word with VB code

    Hi Tea,
    We need to disable Header & Footer in MS word (Restrict user to edit Header and Footer). So we are trying to write a VB code.
    What ever code we tried it is not working .
    Can you please provide any solution how to diable H & F in word using VB code.
    Thank you inadvance.

    A relatively simple way to do this without VBA:
    Select the body of the document (Ctrl+A).
    On the Review tab of the ribbon, click Restrict Editing.
    Tick the check box "Allow only this type of editing in the document".
    Leave the dropdown set to the default "No changes (read only)".
    Under Exceptions, tick the check box for Everyone.
    Click "Yes, Start Enforcing Protection".
    If you wish, enter a password (don't forget it - you'll need it if you ever want to unlock the document), then click OK.
    Save, close and reopen the document. The header and footer won't be editable.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to add header and footer in FM12 WebHelp?

    Hi
    I am evaluating TCS 5 with the trial version.
    In FrameMaker 11, while publishing my book to WebHelp, I could associate the masterpage (.htt) file to get its header/footer in the output.
    However, I don't see that option in FM12. I have looked through the Help and it doesn't seem to offer any solution either. (Some part of TCS 5 help actually contains TCS 4 content. Have logged a bug report on that.)
    If not through the master page, what is the other way to get especially the footer in WebHelp output? Footer contains our copyright information. So, there is no way I can ignore it.
    Can somebody please point me to the right direction?
    Thanks in advance.
    Sreekanth

    We had a meeting with Adobe yesterday and one of the product managers (Kapil Verma or Vikram Verma, I am not sure) confirmed that there is no provision for getting the header/footer information from FrameMaker or RoboHelp while publishing WebHelp from FM12.
    So, unfortunately, we have to stick to the old method of importing FM to RH to get this. It is a pity that they got the browse sequence into FM but removed master page, eventually resulting in an unusable feature.
    Sreekanth

  • Header and footer in ALV using CL_SALV_TABLE

    How to add header and footer for an ALV report using CL_SALV_TABLE. I know how to add header lr_table->set_top_of_list_print( lr_header )
    but how do I make it aligned center.
    Also how to add a footer
    I want it to look like Current page of total pages
    What is the system variable for total pages.

    Hi,
    this should be the Method:
    SET_END_OF_LIST_PRINT
    Best Regards

  • Header and Footer  in BEX reporting

    Hai friends,
         could you plz tell me how to add Header and Footer in  Bex report.. that means.. i want  some my company name and  address should print on the  top of the report..
    and also.. in the Footer.  i want to display the Number of records are selected...
    Ex :
       XYZ ORGANIZATION
       #301, ITPL,
       BANGALORE.
    4 Records are selected
      so, plz give me the solution .... how to   design a query with this requirement
    thanks
    with regards
    @jay

    Hi Ajay,
    Refer to web tempaltes 0adhoc_header and 0adhoc_Footer , by changing this you should be able to display header and footer for each query out of BW server.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • How to print Header and footer in same page

    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

Maybe you are looking for

  • Want A query (Its Urgent)

    Hi,I have a table as below.. AFPFTRAN code date type amt 12 10-04-05 T 1 13 11-05-05 F 2 12 10-05-05 T 3 13 05-04-05 F 4 12 12-04-05 T 5 13 15-05-05 F 7 I want details as below: date Apr May --- code T F T F --- 12 6 0 3 0 13 0 4 0 9 I want to get su

  • Connecting to a 2007 vehicle

    My parents just got a new ford truck that has a plug in for mp3 players, i'm just not sure what I need to get to plug it in. It looks like a plug in you use for head phones. Anyone have any ideas?

  • Tasks, Calendar, Messages, Contacts, and Memo Pad don't work after pairing (Error 404)

    Hi all, When I pair my Torch to the PlayBook it all goes as expected. I can browse the files on my phone and also open the internet browser; however, when I try to open Tasks, Calendar, Messages, Contacts, and Memo Pad I get: Error 404 - We can't ope

  • Comment définir la taille des colonnes d'un contrôle edit table ?

    Bonjour J'utilise un controle Edit table pour visualiser des données mais la taille des colonnes par défaut n'est pas assez large. Pour les valeurs 13254 et 13125 on voit 3254 et 3125. Comment définir la largeur des colonne ? J'ai une version CVI 9.0

  • Quizzes in Flash Catalyst?

    Hi, Is it possible to make a quiz in Flash Catalyst? I would like to use it for drag and drop, fill in the blanks, match column A with B etc... I've only started looking at Catalyst and it looks awesome. Thanks.