Very slow Header and Footer load

Hi all,I have a problem using the Content Server.We I try to brand my portal with header and footer created by CS all the pages are loaded slowly.Looking at the PTSpy I see the following lines:
InetHostBase::ReleaseSock() <10.223.164.108:8080> Closing socket 13335InetHostBase::CreateInitNewSock() Successfully created and initialized a new socket 13335InetHostBase::GetAndLockSock() Successfully initiated "connect" for a new socket 13335PTCache<StoredType, KeySize>::GC() Starting new TTL run!PTCache<StoredType, KeySize>::GC() Ending TTL run with 0 item(s) freed!
These 5 lines are repeated more time consecutively for about 10-15 seconds before my page is processed.I think it's a problem of configuration.I am using Content Server 5.0.4 and Portal Server 5.0.2 with Tomcat.
Have you any ideas of how to solve this problem?
Thank you very much,
Alberto Marchiaro

Hello,
It seems to be an issue with the Font that you have used.
You have used Bubble-one font and if you check this font in Google Chrome it is cut off and if you check in Firefox, it comes up fine.
Please have a look at this link in Google Chrome and Firefox and you will see the difference : http://www.google.com/fonts/specimen/Bubbler+One
I would suggest you to use some other font in order to fix it.
Regards,
Sachin

Similar Messages

  • How to set a page header and footer of an excel file i'm creating

    Hello !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and footer in Excel sheet with ABAP  ole
    DATA : BEGIN OF enter,
    x(1) TYPE x VALUE '0D',
    END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
    CALL METHOD OF excel 'ActiveSheet' = sheet.
    CALL METHOD OF sheet 'PageSetup' = pagesetup.
    SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
    SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
    CLEAR format.
    ERROR
    CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
    SET PROPERTY OF pagesetup 'RightHeader' = format.
    CLEAR format.
    CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
    SET PROPERTY OF pagesetup 'RightFooter' = format.
    FREE OBJECT pagesetup.
    ENDFORM. " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

    Try to define ENTER this way & try
    class cl_abap_char_utilities definition load.
    DATA : BEGIN OF enter,
    x type c value cl_abap_char_utilities=>cr_lf,
    END OF enter.
    PS : I am not 100% sure about this.

  • 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.

  • Header and Footer in Table

    Hi,
    Invoice Smartforms:
    I create main window with an table with header and footer.
    In this table they are a loop to the different billing item.
    When they are lot of billing item, the table continue in the next page.
    The Header of the table is displaying very well. But the Footer don't want display in each next page. He display the Footer just in the last page or i need have footer in each next page (for the total price of Billing item in each page ).$
    I have test each evens option and condition in footer but i don't found why he don't want display in each page.
    I have insert a logic program (breakpoint) to view if he pass, and yes he pass in each page in the footer.
    Thanks.

    Hi,
    Create a folder within the main window as footer .
    So only after the details of main window body area is displayed it will show the footer making it appear only in the last page
    Regards,
    Nisrin.

  • Header and Footer in flash

    Ok. This was supposed to be a question about a header and footer in Flash. I intended to attach my fla to make it possible to understand what I was saying. As it turns out I can't figure out how to attach files. Is it even possible? That's my first question.
    Here's the actual question, although it will be very vague now: I have a basic header and footer in Flash that stretch to fill the screen horizontally. It works when I test the file inside Flash (Control>Test movie). But it does not work when I go "Publish Preview" and use the browser. Why is that and how can I sort it out? Any ideas?

    I'm convinced there are better ways to do navigation, but this close to the end I was hoping to just grind my way forward. Somehow I managed to get the second scene working (centered that is). But when I resize the window in debug mode an error is pointed out in the first scene. "Error #1009: Cannot access a property or method of a null object reference". The snippet goes like this:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, resizeStage);
    var header:MovieClip;
    resizeStage(null);
    function resizeStage(e:Event):void
        var sw:Number = stage.stageWidth;
        header.width = sw;
    And it's the last line here that's supposed to cause the error. Do you see anything apparently wrong? I tried  "var header:MovieClip; = new MovieClip();" but that didn't work at all.

  • Strange gaps in Header and Footer

    Im getting gaps in the header and footer on some of my pages.  Sometimes the gaps are filled with the background color of the colomn and other times they are the body color which is even weirder.  An example link would be http://www.mojogar.com/pcRepair.aspx .  In IE8 I get a gap on top but not  the bottom.  In Firefox3 the gap is on the bottom and not the top.  ???
    here is the markup page;  (followed by the CSS)
    <%@ Page Language="VB" ContentType="text/html" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/masterOne.dwt.aspx" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    <link href="thrColHybHdr.css" rel="stylesheet" type="text/css" /><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColHybHdr #sidebar1, .thrColHybHdr #sidebar2 { padding-top: 30px; }
    .thrColHybHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="thrColHybHdr">
    <div id="container">
      <div id="header">
        <!-- end #header -->
        <div class="fltlft"><img src="images/mojoLogoSmall.png" alt="Mojogar digital design &amp; PC repair" width="172" height="41" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="2,2,172,39" href="default.html" target="_self" alt="Mojogar Home" />
          </map>
        </div>
    <div class="fltrt"><!-- InstanceBeginEditable name="HeadRight" -->HeadRight<!-- InstanceEndEditable -->
      </div>
      <div class="MenuVertDiv">
        <ul id="MenuBar2" class="MenuBarHorizontal">
          <li><a class="MenuBarItemSubmenu" href="#">Design</a>
            <ul>
              <li><a href="webDesign.aspx">Website Design</a></li>
              <li><a href="webDev.aspx">Website Development</a></li>
    <li><a href="logo.aspx">Logo Design</a></li>
            </ul>
          </li>
          <li><a href="#" class="MenuBarItemSubmenu">Animation</a>
            <ul>
              <li><a href="webDev.aspx">Flash Animation</a></li>
    </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Support</a>
            <ul>
              <li><a href="pcRepair.aspx">PC Repair</a>            </li>
              <li><a href="virus.aspx">Virus</a></li>
              <li><a href="email.aspx">Email</a></li>
              <li><a href="backup.aspx">Data Backup</a></li>
              <li><a href="wireless.aspx">Wireless</a></li>
              <li><a href="software.aspx">Software</a></li>
              <li><a href="hardwareInstall.aspx">Hardware</a></li>
    <li><a href="server.aspx">Server Repair</a></li>
    <li><a href="busConsult.aspx">Consulting</a></li>
            </ul>
          </li>
          <li><a href="contact.aspx">Contact</a></li>
        </ul>
      </div>
    <!-- end header --></div>
      <div class="masterBackground">
      <div id="sidebar2">
        <!-- InstanceBeginEditable name="rightSidebar" -->
      <div id="sidebar2">
        <h4>When your computer is having troubles, have a Professional look over your system to update or repair your operating system, audit the installed programs, and check for viruses and other malware.</h4>
        <!-- end #sidebar2 -->
      </div>
      <!-- InstanceEndEditable -->
        <!-- end #sidebar2 -->
      </div>
      <div id="mainContent">
        <!-- InstanceBeginEditable name="main" -->
      <div id="mainContent">
        <div class="MarginTopZero">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="580" height="300" title="Computer Support">
          <param name="movie" value="images/flash/PCCollage.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <embed src="images/flash/PCCollage.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="580" height="300"></embed>
        </object></div>
        <h2>Don't feel alone when your computer breaks.  Computer problems can leave you in the dark about what is wrong.  Help is a call away.</h2>
        <h4>Our tune-up and repair service consists of the following;</h4>
    <li>Operating system updates</li>
        <h5>Operating system updates help the security of the computer and can add features that the manufacturer has been working on to make the life of the end user easier.  Updates come out as frequently as every couple weeks on some operating systems.</h5>
        <li>Programs audit</li>
        <h5>Many <a href="software.aspx" title="Go to our software page" target="_self">applications</a> get added over time and can slow down the performance of any PC by taking up processor and memory resources, not to mention hard drive space.</h5>
        <li>Security overlook</li>
        <h5><a href="virus.aspx" target="_self">Anti-virus</a> definitions need to be kept up-to-date.  New viruses, spyware, trojans, and malware are always being introduced into the wild (the internet is a jungle).  Anti-virus applications need to be kept updated as well.  Subscriptions to paid providers can lapse and updates can be left behind for months if not years (I've seen it happen).</h5>
        <li>Anti-virus fine tuning</li>
        <h5>Many anti-virus programs are bloated applications and won't stop annoying the user with pop-ups and information.  Many users also never know when and how often their anti-virus is scanning.</h5>
        <li>Browser configuration</li>
        <h5>There are literally hundreds of options in your browsers settings for security and optimization.  Fine stunning these can in some cases increase surfing speed.</h5>  
        <li>Start-up & shut down optimizing</li>
        <h5>If your like most people, your PC never starts up fast enough.  Get a thorough audit of what programs and services are starting with your computer and optimize them to increase speed.</h5>
    <!-- end #mainContent -->
      </div>
      <!-- InstanceEndEditable -->
        <!-- end #mainContent -->
      </div>
      <!-- end masterBackground --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
    <%-- <br class="clearfloat" />
    --%>
       <div id="footer">
        <p>Copyright Mojogar 2010</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    CSS:
    @charset "utf-8";
    body  {
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #9FEE00;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 100%;
    background-color: #333;
    h1 {
    font-size: xx-large;
    color: #000;
    h2 {
    font-size: x-large;
    h3 {
    font-size: large;
    h4 {
    font-size: medium;
    h5 {
    font-size: small;
    h6 {
    font-size: x-small;
    p {
    font-size: xx-small;
    h1, h2 {
    padding-top: 20px;
    padding-right: 10px;
    padding-bottom: 4px;
    padding-left: 10px;
    h3, h4, h5, h6, p {
    padding-top: 3px;
    padding-right: 5px;
    padding-bottom: 3px;
    padding-left: 5px;
    li {
    font-weight: bold;
    ul {
    list-style-type: decimal;
    ol {
    font-weight: bold;
    a {
    a:link {
    color: #FFF;
    a:hover {
    color: #333;
    background-color: #6C8CD5;
    a:active {
    color: #F00;
    a:visited {
    color: #FF4848;
    /* Tips for this Hybrid layout
    1. Since the side columns em-based sizing is based on the user's default font size, you will want to be sure that background graphics in the columns take that into account. Built correctly, this is more accessible for those that need larger font sizes, since the width of the columns remains proportionate. If this is undesirable with your design, simply change the width to a pixel size and be sure to change the margins on the #mainContent div accordingly.
    2. Since the sizing of side columns in this layout are based on the 100% font size in the body element, if you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the column widths will downsize proportionately. You may want to increase their widths, and the size of the #mainContent div's side margins, to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    4. The #container div is not necessary for this layout at the 100% width. You may want to use it to create faux columns or limit the width of the layout.
    5. It is not neccessary to have the 100% width on the #container div since, by nature, a div takes up 100% of the available space. It is here so that if you want to decrease the size of the overall container - perhaps leaving a bit of margin on each side - this will already be available for adjustment.
    .thrColHybHdr #container {
    width: 780px;
    /*margin: 0 auto;  the auto margins (in conjunction with a width) center the page if needed */
    text-align: left;
    padding: 0px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    .thrColHybHdr #header {
    background-color: #C9F76F;
    height: 100%;
    width: 780px;
    margin: 0px;
    padding: 0px;
    .thrColHybHdr #header h1 {
    margin: 0;
    padding: 0px;
    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColHybHdr #sidebar1 p" rule.
    .thrColHybHdr #sidebar1 {
    width: 13em;
    border-top-width: thick;
    border-top-style: solid;
    border-top-color: #C06;
    float: left;
    height: auto;
    .thrColHybHdr #sidebar2 {
    width: 200px;
    text-align: center;
    margin: 0px;
    padding: 0px;
    float: right;
    /*.thrColHybHdr #sidebar1 h3, .thrColHybHdr #sidebar1 p, .thrColHybHdr #sidebar2 p, .thrColHybHdr #sidebar2 h3 {
    margin-left: 0px;*/ /* the left and right margin should be given to every element that will be placed in the side columns */
    /* margin-right: 0px;
    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    .thrColHybHdr #mainContent {
    text-align: center;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    width: 580px;
    background-color: #2A4480;
    color: #C9F76F;
    padding: 0px;
    .MarginTopZero {
    margin: 0px;
    padding: 0px;
    .busConslt {
    height: 600px;
    width: 800px;
    .idea {
    height: auto;
    width: 100%;
    .thrColHybHdr #footer {
    padding: 0;
    background-color: #C9F76F;
    margin: 0px;
    .thrColHybHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    color: #000;
    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 0px;
    padding-left: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    #defMainLft {
    width: 49%;
    float: left;
    text-align: center;
    #defMainRt {
    width: 49%;
    float: right;
    text-align: center;
    .absolRgt {
    position: absolute;
    top: 0px;
    right: 0px;
    .relRgt {
    position: relative;
    top: 0px;
    right: 0px;
    .defFull {
    position: relative;
    height: 263px;
    width: 100%;
    border-bottom-width: medium;
    border-bottom-style: solid;
    border-bottom-color: #ff4900;
    .absolLft {
    position: absolute;
    top: 0px;
    left: 0px;
    .defFullTop {
    position: relative;
    width: 600px;
    border-top-width: thick;
    border-top-style: solid;
    border-top-color: #000;
    margin: 0px;
    .tuneUpTop {
    background-color: #000;
    color: #FFF;
    margin: 0px;
    padding: 0px;
    .contactForm {
    width: 470px;
    height: auto;
    left: auto;
    right: auto;
    .borderRight {
    border: medium solid #A62F00;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    .MenuVertDiv {
    margin-bottom: 0px;
    clear: both;
    height: 38px;
    background-color: #A62F00;
    width: 100%;
    .masterBackground {
    background-color: #BF5930;
    margin: 0px;
    padding: 0px;

    Your HTML code contains conditional comments for IE.  Try reducing or removing the extra padding and see if that helps.
    /* place css fixes for all versions of IE in this conditional comment */
    .thrColHybHdr  #sidebar1, .thrColHybHdr #sidebar2 { padding-top: 30px; }
    .thrColHybHdr  #mainContent { zoom: 1; padding-top: 15px; }
    /* the above  proprietary zoom property gives IE the hasLayout it needs to avoid  several bugs */
    </style>
    <![endif]-->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to remove Header and Footer from Flat File

    Hi,
    In a scenario , we are going to recieve a flat file which will contains header , footer and data. We have to have to load data in Oracle tables and remove header and footer.
    once the data load is complete , we have to delete flat file from source directory.
    Please help me in solving this issue.
    Thanks,
    Kamlesh

    You have a header parameter in the file datastore. You can provide any number to skip rows from top of the file. For footer you can create a filter in staging area.
    Filter coould be something like this.
    where source_alias.source_column not like '%FOOTER_OR_ANY_VALUE_AS_PER_YOUR_REQ'

  • How to change the header and footer in the Section Breaks Next Page using OpenXML?

    I have a word document file in which I added a Section Break of Next Page, now I want to change the header and footer of that page.
    Scenario of example, I have a doc file which has four pages with headers and footers and added fifth page in the section break next page, I want to change the header and footer of the fifth page only. This is achievable manually by deselecting the Link to Previous
    button in the Word Application but I don't know how to change it using XML?
    My code that adds the new page in the section breaks is:
    class Program
    static void Main(string[] args)
    string path = @"C:\Riyaz\sample.docx";
    string strtxt = "Hello This is done by programmatically";
    OpenAndAddTextToWordDocument(path,strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    using (DocX document = DocX.Load(@"C:\Riyaz\sample.docx"))
    document.InsertSectionPageBreak();
    Paragraph p1 = document.InsertParagraph();
    p1.Append("This is new section");
    document.Save();
    Please help.

    Here is the sample for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using DocumentFormat.OpenXml;
    using DocumentFormat.OpenXml.Packaging;
    using DocumentFormat.OpenXml.Wordprocessing;
    namespace WordAddNewFooterHeader
    class Program
    static void Main(string[] args)
    string path = @"E:\Document\TestHeaderandfooter-Copy.docx";
    string strtxt = "OpenXML SDK";
    OpenAndAddTextToWordDocument(path, strtxt);
    public static void OpenAndAddTextToWordDocument(string filepath, string txt)
    // Open a WordprocessingDocument for editing using the filepath.
    WordprocessingDocument wordprocessingDocument = WordprocessingDocument.Open(filepath, true);
    MainDocumentPart part = wordprocessingDocument.MainDocumentPart;
    Body body = part.Document.Body;
    //create a new footer Id=rIdf2
    FooterPart footerPart2 = part.AddNewPart<FooterPart>("rIdf2");
    GenerateFooterPartContent(footerPart2);
    //create a new header Id=rIdh2
    HeaderPart headerPart2 = part.AddNewPart<HeaderPart>("rIdh2");
    GenerateHeaderPartContent(headerPart2);
    //replace the attribute of SectionProperties to add new footer and header
    SectionProperties lxml = body.GetFirstChild<SectionProperties>();
    lxml.GetFirstChild<HeaderReference>().Remove();
    lxml.GetFirstChild<FooterReference>().Remove();
    HeaderReference headerReference1 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = "rIdh2" };
    FooterReference footerReference1 = new FooterReference() { Type = HeaderFooterValues.Default, Id = "rIdf2" };
    lxml.Append(headerReference1);
    lxml.Append(footerReference1);
    //add the correlation of last Paragraph
    OpenXmlElement oxl = body.ChildElements.GetItem(body.ChildElements.Count - 2);
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    SectionProperties sectionProperties1 = new SectionProperties() { RsidR = oxl.GetAttribute("rsidR", oxl.NamespaceUri).Value };
    HeaderReference headerReference2 = new HeaderReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.HeaderParts.FirstOrDefault()) };
    FooterReference footerReference2 = new FooterReference() { Type = HeaderFooterValues.Default, Id = part.GetIdOfPart(part.FooterParts.FirstOrDefault()) };
    PageSize pageSize1 = new PageSize() { Width = (UInt32Value)12240U, Height = (UInt32Value)15840U };
    PageMargin pageMargin1 = new PageMargin() { Top = 1440, Right = (UInt32Value)1440U, Bottom = 1440, Left = (UInt32Value)1440U, Header = (UInt32Value)720U, Footer = (UInt32Value)720U, Gutter = (UInt32Value)0U };
    Columns columns1 = new Columns() { Space = "720" };
    DocGrid docGrid1 = new DocGrid() { LinePitch = 360 };
    sectionProperties1.Append(headerReference2);
    sectionProperties1.Append(footerReference2);
    sectionProperties1.Append(pageSize1);
    sectionProperties1.Append(pageMargin1);
    sectionProperties1.Append(columns1);
    sectionProperties1.Append(docGrid1);
    paragraphProperties1.Append(sectionProperties1);
    oxl.InsertAt<ParagraphProperties>(paragraphProperties1, 0);
    body.InsertBefore<Paragraph>(GenerateParagraph(txt, oxl.GetAttribute("rsidRDefault", oxl.NamespaceUri).Value), body.GetFirstChild<SectionProperties>());
    part.Document.Save();
    wordprocessingDocument.Close();
    //Generate new Paragraph
    public static Paragraph GenerateParagraph(string text, string rsidR)
    Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = rsidR };
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    Tabs tabs1 = new Tabs();
    TabStop tabStop1 = new TabStop() { Val = TabStopValues.Left, Position = 5583 };
    tabs1.Append(tabStop1);
    paragraphProperties1.Append(tabs1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = text;
    run1.Append(text1);
    Run run2 = new Run();
    TabChar tabChar1 = new TabChar();
    run2.Append(tabChar1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    paragraph1.Append(run2);
    return paragraph1;
    static void GenerateHeaderPartContent(HeaderPart hpart)
    Header header1 = new Header();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Header" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    header1.Append(paragraph1);
    hpart.Header = header1;
    static void GenerateFooterPartContent(FooterPart fpart)
    Footer footer1 = new Footer();
    Paragraph paragraph1 = new Paragraph();
    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
    ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Footer" };
    paragraphProperties1.Append(paragraphStyleId1);
    Run run1 = new Run();
    Text text1 = new Text();
    text1.Text = "";
    run1.Append(text1);
    paragraph1.Append(paragraphProperties1);
    paragraph1.Append(run1);
    footer1.Append(paragraph1);
    fpart.Footer = footer1;
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change header and footer indents?

    I would like to change the header and footer printing indents to match the indents for the page when I print it, for example 1/2 inch (12 mm) from the left edge and the right edge. While it's possible to set the page indent, it doesn't seem possible to adjust the header/footer indents.
    Why would I like to make this change? The reason is that my laser printer seems to accumulate toner in this space, creating vertical streaks at the left and right edge of the paper.
    This seems to be true of versions of Firefox 3.x to 5.x on Windows 2000, XP and Ubuntu Linux (10.1)
    Other document programs that keep all text at least 1/4-inch (6 mm) from the left and right edges do not create this problem. Is there a work-around or hand-coding I can enter into the "custom" field of the header or footer?
    Thanks

    Thanks very much. This fixed the problem, although it was the "'''...print_edge_..'''" that fixed it in the config file. Now I'm not printing off the edge any longer. (I'm running PostScript.) I will make the adjustment in my Ubuntu Linux and XP systems as well. Would you consider adding this adjustment in the page setup dialog box along with the margins?
    Again. Thanks very much!
    Wayne

  • How to Suppress Header and footer.

    Hi,
    I have master-Detail report. Report prints One master and all detail records on a page. If detail records are more than to fit on one page, report prints master gaian on next page followed by detail records. For a master record If there are no detail records, I supress the master record also using format trigger.
    My problem is how to suppress the Header & Footer information that has to be printed on each page otherwise. When I suppress printing of master, All I get is Page header and footer. This happens only to the master records that fall in between. The pages related to last master records are not printed.
    How can I suppress printing of header and footer on blank pages.
    Thanks

    Thanks Santa & Rohit,
    As santa has suggested, I am already suppressing the printing of master record and its column headings based on the count of number of deatil records. If count of detail records = 0, I am suppressing master record.
    The problem is with Report header (TITLE etc.) and footer. I have to print TITLE and FOOTER on each an very page. So I have put these into Margins. The Count of master records at the report level, can be used to suppress the master records column headings and also TITLE and FOOTER. So if there is no master records, report does not print anything and that is fine.
    Problem comes when there are some master records with "No" detail records. Something like:
    -M1
    ----D1
    ----D2
    ----Dn
    -M2
    ----D1
    ----D2
    ----Dn
    M3
    M4
    M5
    ----D1
    ----D2
    ----Dn
    M6
    M7
    M8
    My report now produces pages for M1, M2 and blank data area (with Title and Footer) for M3, M4 and the M5. It suppresses pages for M6, M7, M8 etc. So if a master record has no detail records, but happens to be the last records that suppresses the TITLE and footer also.
    Any Ideas how to suppress TITLE/FOOTER for M3 & M4.
    Thanks

  • How to create Header and Footer  template

    Hi,
    I am wondering if this is possible, if yes , can some help me please?
    At present we have preprinted stationary for invoices and now the plan is to get rid of preprinted stationary and print header and footer via oracle reports directly. The address on header has to be dynamic because our organization has multiple offices across various countries. I am wondering if its possible to create a separate report only with a header and footer and reference it in other reports so that when printed both are merged and presented as single invoice. My reports knowledge is around basic level but i am good at plsql , if someone hear can please guide me HOW TO implement this logic I will be very grateful.
    We are using Oracle reports 6
    Thanks
    Aali
    Edited by: aali on 05-Jul-2010 05:44
    Edited by: aali on 05-Jul-2010 06:09

    Hello,
    You can set the header and footer dynamically.
    In the report layout section. There is one option called Edit Margin beside the Help iconic button.
    When you will press that button Edit Margin it will open for the new look your report fields and frames inside the black dense lined frame. So at the top of that main frame you can set the Header and same at the bottom you can set the Footer.
    And in your case if you want to set dynamic. Then while running the report. Send the dynamic values into the parameters and when you will create field in layout section Header/Footer then set the source as parameter which you passed. So, it will change dynamically.
    -Ammad

  • Unsupported version Error while generating header and footer for the PDF

    hi
    I want to genrate header and footer for the PDF file however on the call of the EndPage class i got a Unsupported Version Error Unsupported major minor Version Error and Class loader Define class
    What has gone wrong ?.

    Can you provide more information about what you were trying to do? In particular, what does your code like like?
    Also, can you include the stack trace, and the complete error message?

  • Header and Footer Questions

    Hello.
    Can anyone explain what exactly the purpose of the header and footer sections are in iWeb?
    I would understand if content placed in the header or footer showed up on all pages of a site. That would be very useful, but it doesn't seem to be the case.
    Also, if I start a new page using the Black template then set the header to 0px, and then copy and paste in an item that was in the header of a different page, it will create a header on the new page and place the item in it. You can see the header in layout view, but the layout tab in the Inspector still says 0px.
    I have an image and home-made nav at the top of my site, but I'm not sure if I should put this in a header for some reason, or just get rid of the header and put the image and nav at the top of the body. Same goes for the footer.
    Any explanation or suggestions would be greatly appreciated.
    Thanks,
    Andy

    The footer is where the iWeb "buttons" go.
    I never use then of course and I set the footer height to 50 px to act as bottom padding so that my © notice sites up a bit from the bottom of the page.
    I usually drop a text box onto the page with the © notice and drag it down to quickly lengthen the page.
    Its useful to use the header section if you are having a uniform header throughout your site.
    I think the page I did here might help. This site is still under construction and is aimed at musicians but this particular section is kind of general...
    http://www.iwebformusicians.com/WebMusic/Layout.html

  • Header and Footer

    I do not understand the use of Header and Footer area, other than as a page margin. I can't put anything in them. Am I missing some additional function these area can provide?
    Thanks in advance. Tom

    hey tmskw!
    so your question got me thinking... i know what the header is for (so i replied with the answer to you), but hey! i never use it at all!
    so here you go:
    http://web.mac.com/huy_huy
    i updated my site with headers... and all inspired by you! if you really want to make your iweb site look professional i'd suggest you make a standard header that is the same for all your pages.
    a footer can be used the same way and can lead to a very nice looking site also. if you do go for a footer graphic though i'd suggest you make your content area a fixed height (maybe about 500?) so that the footer graphic will be visible without scrolling.

  • Header and Footer Items in Adobe Muse? Also Menu text being cut off half way.

    How can I make the header and footer items load faster in Adobe Muse? I am hosting with Business Catalyst. Everything else loads almost immediatly on my web page, but my Header and Footer graphic- wood grain picture- take almost 10 seconds to load, and almost a minute to load on mobile devices.
    As well, my menu's are not loading correctly on other peoples devices. On my lap top everything looks fine, but on other peoples devices the text in my menus is only loading half way? -only shows half the text.
    Still working on my site, but to see what I am talking about you can visit the web page I am in the middle of building at www.bkskin.com
    Please give me some advice if any of you have some, thank you.
    Megan Burnett

    Hello,
    It seems to be an issue with the Font that you have used.
    You have used Bubble-one font and if you check this font in Google Chrome it is cut off and if you check in Firefox, it comes up fine.
    Please have a look at this link in Google Chrome and Firefox and you will see the difference : http://www.google.com/fonts/specimen/Bubbler+One
    I would suggest you to use some other font in order to fix it.
    Regards,
    Sachin

Maybe you are looking for