Display different header in the first page

I am displaying a table in the header (not an MS word header but header identified as something above <?start:body?> tag) of an rtf template. That table has 3 rows, I need to display one of those rows only in the first page and not in other pages.
I did not find any method on querying for the page number. So, I used a flag in the following manner: (Here, text with red color denotes RTF field). The following is what my RTF file looks like:
Header 1
Header 2
Header 3
init_field
This is the row to be shown on all the pages
if_field
This row should only be shown on the first page.
end_if change_variable
<?start:body?>
other stuff
<?end body?>
Where,
init_field
<?if: (xdoxslt:get_variable($_XDOCTX,'FLAG')!='NONFIRST')?><?xdoxslt:set_variable($_XDOCTX,'FLAG','FIRST')?><?end if?>
if_field
<?if: (xdoxslt:get_variable($_XDOCTX,'FLAG'))='FIRST'?>
end_if
<?end if?>
change_variable
<?xdoxslt:set_variable($_XDOCTX,'FLAG','NONFIRST')?>
BUT, I still see all the rows in all the pages. It seems like the value of variable 'FLAG' is not preserved between different pages. To me, it seems like, header is generated once and same header is used in all the pages

Not sure if this is exactly what you are looking for but why not just place the second line that needs to be on the first page only after the <?start:body?>
Header 1
Header 2
Header 3
init_field
This is the row to be shown on all the pages
<?start:body?>
if_field
This row should only be shown on the first page.
end_if change_variable
other stuff
<?end body?>

Similar Messages

  • Not show the header on the first page of a section

    I am writing a manual that has about 7 chapters. Each chapter is its own section. I have been able to go in and create a header for each of these sections very easily. However, it's not quite clear how to NOT show the header on the first page of the section. For example, one of my sections is called "Personal Finances", so I have that in bold a the top of the page using Header 1. Because I have that, I don't also need "Personal Finances" showing in the top right corner in the header.
    How can I make it so that it won't show on the first page of each section?
    Thanks!

    How can I make it so that it won't show on the first page of each section?
    In the "Layout Inspector" under the "Section" tab, check the "First page is different" option while one of that section's pages is active/selected/displayed. Then add or delete the header as may be needed so that first page of section does not display the header and all other pages in the section do display. (I.e., what you specifically have to do here depends on whether or not you are already on the first page of the section when you make the change to the display "switch" and whether you are starting with a blank or non-blank header.)

  • In Pages '09, how do I remove the header from the first page of the document in a page layout document?

    Working Pages '09, I am trying to set up a multi-page document using page layout  (not a word processing document, because I'll be using lots of graphics and text boxes), with headers and footers, but no header on the first page, as this will be the title page. The layout>section pane has the 'First page is different' option  greyed out (because it's a word processor only option). Help tells me that each page is it's own section in page layout, but there is no way to have one page without a header and all the others with, as far as I can tell. Am I completely missing something or is there a way around this?
    Also, I want to do this again for additional chapters in the document (or else, I believe, be forced to manually start page numbering for each chapter in a new document).
    Cheers.

    Hi, Barry. I don't know why this solution didn't work for me :-\ Does it matter that my page numbers are in the footer and not the header? When I follow your direction, the pages do get numbered differently. My problem occurs with the last step.
    1. Open the Inspector. (Check!)
    2. Click the Layout button (second from left). (Check!)
    3. Click Section. (Check!)
    4. Make the two settings shown: (Check!)
    5. Go to Page 1 and delete the contents of the Header. (When I do this, the content for all footers is deleted...)
    I really appreciate your insight.

  • Can I have a header on the first page only in pages?

    I only want to have a header on the first page in Pages, not the other pages my work spills over onto. I have tried checking and unchecking the 'node on first page section' which sort of worked when I selected the headers on the pages i did not want but I have now lost the header on the first page.

    I have just solved it!
    When you have entered the header information on the first page you then click on the header on the second page and select 'start new header/footer here' which you can then delete the information and leave blank thus leaving every subsequent page blank.
    Thanks for your help picas and PeterBreis0807

  • How do I display text only in the first page inXML Publisher

    Hi everybody,
    I've been reading so much, on the last two days, on this issue at this forum but I didn't get an answer. My problem is: In an invoices report some text and fields from the invoice header, (such as payment terms, bank details etc.), should be printed only in the first page of the invoice, (If the invoice has more than one page). These elements are not in the document header/footer but in the document body. That's why I think the different fist page of MS Word will not work. I tried also <? start@first-page:body ?>, with no success. Any idea, someone?
    Thanks,
    Shimon

    Hi,
    Did you find solution to your problem? I am facing same issue and I want to know how you solved it? It would be great help.
    Thank you.
    Regards,
    Rahul

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

  • How do I hide the header on the first page?

    Dumb question, I know. But I can't find it addressed in the online help. It should be obvious.

    If I understand your question - you would like the second page and following to have a different header? -correct Robert?
    Go to the Inspector/Layout (second icon from left) and click the Section tab. Then check off the First Page is Different configuration option.
    -Alan

  • I only want the header on the first page . How do I remove it from the other pages but leave it on the first page only.

     

    Uncheck the Headers  (and Footers) settings in the Document Inspector.
    Enter the 'header information' directly on the first page, or put it into a text box. There's no need to use Headers if you want the information on only one page.
    Regards,
    Barry

  • How can i set the page margin to be a different width on the first page than the rest in Pages?

    I am creating an ebook where I want the first page to be the cover, but don't want to have a margin round the edge. However the remaining pages I want a margin so the text looks good (as I am also exporting this as a PDF) Is there any way to do this in pages?

    Your question was asked and answered in the late two days by Fruhulda and PeterBreis !
    Define the smaller margins thru Inspector > Document
    Insert a layout break where you want supplementary  margins
    Define supplementary margins thru  Inspector > Layout
    Yvan KOENIG (VALLAURIS, France) dimanche 21 août 2011 23:32:32
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • RDL report(2008).Want to display different number of rows from second page onwards than the first page.

    I have used pagination to display the report data.I have used page break.I want to display 10 records on first page and from second page onwards I want to display 25 records on all remaining pages.
    I followed this link to show 25 records for all page. "http://www.sqlchick.com/entries/2010/9/11/displaying-fixed-number-of-rows-per-ssrs-report-page.html". Now suggest me how display 10 records only on first page having 25 from second page onwards.

    Hi mukesh_harkhani,
    According to your description, you want to insert page break for different number of rows, display 10 rows on the first page and 25 rows on the following pages. After testing the issue in my SQL Server Reporting Services 2008 environment, we can use the
    method below to achieve your requirement:
    In your scenario, right-click the group which contains the expression: =CEILING(RowNumber(Nothing)/25) to open the Group Properties dialog box.
    Modify the original expression to the following in the Group on textbox:
    =Floor((RowNumber(Nothing)+14)/25)
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • On iCloud pages how can you put a header on only the first page and not the second page?

    I'm trying the do a visual report and every time I put a header on the first page it goes to the next page and if I try to delete it on the second page it deletes on the first page too.

    bump

  • How to print a table only on the first page BI Publisher report

    Hi,
    I have a requirement to only print part of what is in the header on the first page only. It is a table. How can I do this in BI Publisher?
    Thanks.

    Hi,
    better to ask a question about BI Publisher in BI Publisher Forum than here in Reports Forum.
    You can create a template in your rtf wich you reference in your header. With BI Desktop in Winword you can use a different header for first page than the others.
    Regards
    Rainer

  • My company recently loaded foxfire and I cannot have two applications open in foxfire, the second page overlays the first and I cannot go back to the previous page or reduce the first page to view the first.

    My pages in Foxfore are overlaying one another which is normal but you cannot get back to the previous page. An example is if I have a page opened in a program and open something totally different it replaces the first page and I cannot reduce the size to see the first page I was viewing nor go back to it. I did open a page with audio and opened another application in foxfire and the replacing went on as usual but the audio continued to play so the page is stinn there. Also the tool bar page showing icon is replaced with the newly opened page not an additional page opened being shown as a tab. It's like the newest page or site I open in Foxfire replaces the one that is currently opened.
    == This happened ==
    Every time Firefox opened
    == I first had sites opening with Foxfire

    This might be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
    *https://support.mozilla.org/kb/keep-flash-up-to-date-and-troubleshoot-problems
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Websites+look+wrong

  • New page for group headers - the first page is blank

    In the Section Expert, if you set the Group Header #1 to "New Page Before", and there is a Page Header section, the first page will show the Page Header with no further data. The rest of the report does the page breaks correct, that is, a new page every time the grouping changes.
    How do you stop this blank page at the beginning?
    If you assign New Page After in the Group Footer, there is a blank page at the end of the report, which is also annoying. What am I missing?
    Robert

    If you are using "New Page Before" then use the condition by clicking on X+2 corresponds to it and write
    Not OnFirstRecord
    For "New Page After" write
    Not OnLastRecord
    Regards,
    Raghavendra.G

  • MG5350 prints only top of the first page (ink is full)

    It started a few prints ago that the printer MG 5350 is only printing the head of the first page the rest stays blank, on a document of 3 pages it also throughs out another completly blank page.
    All ink toner are full and I am printing via wifi. before this problem it was printing without any problems. 
    I am printing word 2013 documents.
    Any idea what I could do?

    This print quality document may offer further help:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02208875&tmp_task=solveCategory&cc=us&dlc=en&la...
    There is also a document about cleaning the printhead contacts:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01615896&cc=us&dlc=en&lc=en&product=4083969&tmp...
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

Maybe you are looking for

  • Gamecenter says I have a friend request but I don't

    Hello - Gamecenter in my iPhone 5, iOS 7.0.3 shows a badge indicating that I have a pending request.  When I load Gamecenter, it also says 1 pending friend request.  However, when I load the "friends" section, there are no pending requests.  This is

  • What technologies are to be used for Web2.0 application

    Hi All!! I am developing a Web 2.0 website in JAVA. But I am little confused in deciding upon the technologies to be used. I would like to use the following technologies in my application but not sure whether its a good choice or not. Presentation Ti

  • Printing problems after 10.6.5 update

    Any news on a possible problem with the latest system update? After doing this the other day I can't seem to print correctly out of photoshop CS5. The print box seems to preview correctly but does not come out the way I want. The same file opened up

  • 9i merge statement

    Is anyone aware of how to "add a contraint" to the update section of the merge statement to constrain which records are updated? The "on" statement is basically a join, but in typical update statements, you can add a "where" to constrain which record

  • Cant lookup created queue

    I have a problem looking up queues that I'm creating with: com.sun.messaging.Queue myDQueue = new com.sun.messaging.Queue(); as per the documentation. I can see the nwly created queues in my message queue Admin Console but can find them again with :