Problem in resetting the Page numbers

Hi,
I am using to print PO report using XML publisher.
The layout that is needed is
Header
---- It cointains page number x of y ,po number,po creation date,and other details.
Body
---- It cointains po lines and po headers data.
end body
After the body ends we need to print Service note in a seperate page.But this service note should not have header and the pages of the service note will not be included in total pages of the PO.
If the PO is 10 pages and service note 2 pages then the total page of PO should be 10.
This is for one PO.We have to print many number of POs in a single request.
Presently the problem is that for resetting the page numbers of service note I am using a section break after the end of body.What it does is it reset the page number.But the problem is first all the POs are displayed then its service note.But I need one PO and then its service note .Then the second PO and its service note.

I have used the following method to call the template based on IF condition as follows:
The way I expected the outcome is:
if the COPY_ORIGINAL variable's value is '(Copy)' then it shoud print once the template with a label '(Copy)' in it.
else
if the COPY_ORIGINAL variable's value is '' (empty) then it should print 4 times the template, with different labels as: 'Original' , 'Accounts Copy', 'FP Store Copy' and 'Gate Copy'
the way I used the xml tags is mentioned below:
<?if: COPY_ORIGINAL='(Copy)'?>
<?call:TC?>
<?end if?>
<?if: COPY_ORIGINAL=''?>
<?call:TC1?>
<?end if?>
<?template:TC1?>
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,4,1)?>
<?if: position()=1?>Original<?end if?>
<?if: position()=2?>Accounts Copy<?end if?>
<?if: position()=3?>FP Store<?end if?>
<?if: position()=4?>Gate Copy<?end if?>
<?for-each:/SFFONT001/LIST_G_HEADER_ID?>
<?call:TC?>
<?end for-each?>
<?end for-each?>
<?end template?>
<?template:TC?>
<?ORDER_NUMBER?>
<?end template?>
In this case, it won't call the template TC1 and reset the page numbers, instead it prints the page numbers continuously.. (no resetting of page numbers)
why the following If statement:
<?if: COPY_ORIGINAL=''?>
<?call:TC1?>
<?end if?>
is not working for the statement:
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,4,1)?>
Please update...
regards..,

Similar Messages

  • Outside in Viewer resets the page number to 1 always, even though the Word document has page numbering starting from different value.

    Hi All,
    I've a Word Document with page header having page number inserted.However the page numbers have been formatted to start from a value other than 1.
    E.g. For a given word document, navigate to "File -> Insert -> Page number-> format page number -> start at " and set the value to say "300". Now insert page numbers, so that the page numbering of the 1st page starts from 300.
    When this document is viewed using Outside-in Viewer, the page number of the 1st page always shows 1 instead of showing 300 (though this is not being reset/changed within the actual document)
    I'm using Outside in 8.1.9 SDK for the same. Is there an API to set the page number correct (exactly what has been set within the original document) while viewing...
    Alternatively confirm if this is a limitation within the Outside-in Viewer.
    Thanks,
    Badri

    You're going to need to open an SR to Outside In Support, Product ID 2276.
    Make sure you attach an example Word doc to the SR.

  • What about setting the page numbering on a bunch of files that are used in multiple Bookfiles?

    I have an FM 10 bookfile called  BookfileA with 20 chapters. In chapter 1, I set the chapter numbering to start at 1 and the page numbering to start at 1. In chapters 2 through 20, I set the chapter numbering and the page numbering to increment from the previous chapter. So far, so good, but here's the problem. .....
    In BookfileB, chapter 1 is a different file, and the original chapter 1 is moved to chapter 2. But BookfileB's chapter 2 is still self-resetting its chapter and page numbering to 1.
    Because of the unusual fact that BookfileB has an extra chapter, do I have to monkey with the chapter numbering every time I want to generate one variant or the other? Is there something about numbering that I don't realize?

    > You're still using the Book settings to specify how the file is to behave with that option ...
    True enough.
    [*]RFF is likely the optimal setting for most users, who either don't have multiple Book files, or do, but use a consistent numbering scheme for all (our case).
    If RFF is not selected, and the Book and component file Document Numbering settings don't match, FM complains, vaguely. It's a pain to chase down why. And in our experience, if RFF is not set, the Book and component file numbering can get desynchronized by FM crashes, so what was working all of a sudden does not.

  • I am using CC adobe Acrobat to combine multiple pdfs and add page numbers. Mac users can no longer read the page numbers but pc users can.

    I am using CC adobe Acrobat to combine multiple pdfs and add page numbers. As of about 2 weeks ago the mac users can no longer read the page numbers they get a font error message and see only -- where the page information should be. The pc users do not have this same problem. When I replace our regular font (URW Grotesk) with a system font (Verdana) everyone is able to read the page numbers. This is a new issues, I have been creating these documents in the same way for years without a problem. I have been on hold and on and off calls for the last two hours, I keep getting hung up on once I find someone in adobe support to talk to!

    Hi KnoopL,
    Are the Mac users using Preview to view the pdfs or Adobe Reader?
    Regards,
    Rave

  • How do I update only the page numbers of a table of contents in Indesign CS6?

    Hi there!
    Please help! I'm making a medical book with more then 1300 pages and about 40 different table of contents.
    I want to update only the page numbers on all the table of contents. But I only see the option to update the complete table of contents.
    I saw on other forums that this is a familiar and very old problem. Did Adobe already fixed this?

    hahaha thanks no I won't Using cross-references in the future! but sending the request anyway; nothing ventured, nothing gained!
    Thanks again!

  • How to get the page numbers of a word/mpp/execl doc using Java?

    Hi,
    I meet a problem in Java programming. I want to get the page numbers of a Word/MPP/EXECL/PDF document. For exmaple, if a PDF docment have 10 pages, I need get the 10 . How to get it using Java?
    Please advise me as soon as possible if you have any good suggestions! Thanks!
    Yin

    There are several good tools that allow you to access COM objects from Java. Here are two of the better ones:
    Bridge2Java
    http://www.alphaworks.ibm.com/tech/bridge2java
    J-Integra
    http://www.linar.com/
    Both of these tools will allow you to access MS Office products (including Word and Excel) via COM interfaces.

  • How do I get my HP Photosmart 7960 to print the page numbers on a multi-page project?

    How do I get my HP Photosmart 7960 to print the page numbers when printing a multi-page project?

    Hi,
    This has most likely nothing to do with the printer but with the program you are using to print. For example Word has a setting for this, so let me know which program and I might be able to check for you.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Is there a way to have the page numbering always on top?

    I have a master page that has the page numbering on it, but have run into a problem. Some of the pages have PDF images that fill the page and when they're placed on the page, the page numbers are covered. On the Master Page, or the page itself, is there a way to set the page numbering to always be on top and not hidden?
    Thanks,
    Sean

    Open the layer panel and make a new layer.
    Go to the master page containing the auto page number. Select it. Drag the little icon in the layers panel to the top layer.
    Lock the layer so you can’t accidentally place anything else there.
    The numbers will always be above anything else in the document.
    Bob

  • Not able to reset the page number in XML Publisher based on each PO

    Not able to reset the page number in XML Publisher based on PO
    Hi,
    I have created a custom purchase report and rtf template. In the rtf template, I have added the page number feature (i.e. Page 1 of 5) from Word in the template. When I run the report for a range of POs, I expect the results as follows:
    I have given 3 POs on single request. (PO#1 has 3 pages, PO#2 has 2 pages and PO#3 has 4 pages), the page number on each PO should look like as follows:
    PO#1 page 1 of 3, page 2 of 3, page 3 of 3
    PO#2 page 1 of 2 page 2 of 2
    PO#3 page 1 of 4, page 2 of 4, page 3 of 4 and page 4 of 4
    But the page number displays on each PO as follows:
    PO#1 page 1 of 9, page 2 of 9, page 3 of 9
    PO#2 page 4 of 9 page 5 of 9
    PO#3 page 6 of 9, page 7 of 9, page 8 of 9 and page 9 of 9
    Here I have to reset the page number based on each PO. If anyone done this already, can you please share with me.
    Thanks,
    Ram.

    Hi
    One clarification please.
    Are you putting Page # of ## in the for-loop section? I mean it should be within For-each@section block.
    Even if this doesn;t work, then try using Insert->Page Break after every PO.
    Regards
    Varun

  • When i want to return to my home page I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want how can I stop this as i have too many tabs open.

    When I want to return to my home page after looking at a website I click on the home icon and it resets the page to my home page but also open a blak tab which i don't want.How can I stop this as I have too many tabs open and have to close all of them.

    You may have an unwanted extension that is modifying sites (or the toolbar area). Try this:
    Disable ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that flush the tab?
    Please report back on anything suspicious you find so others can learn about its bad behavior.

  • How do I add page numbers to my document without the page numbers automatically changing. I do not want the page numbers the software automatically places into my document.

    How do I add page numbers to my document without the page numbers automatically changing? The title page is blank, I can type in 1 on the 1st typed page, but the #1 automatically goes into the next page and will not change.

    Click at bottom of the first page:
    Menu > Insert > Section break
    Click somewhere in the 2nd page (not the header/footer)
    Inspector > Layout > Section > Page Numbers > Start at 1 > Configuration > uncheck use previous headers and footers
    Click into the header or footer of the second page:
    Menu > Insert > Auto Page Numbers…
    If there is anything in the header or footer on the first page that you don't want just select it and delete it.
    If you really wanted to manual place page numbers on each page you will have to use a section break between each and every page. I can't imagine that would be useful.
    Peter

  • In pages(not the New version) footer is over to the left, so when i put the page numbers in they don't sit right. How do i move the footer

    In pages(not the New version) footer is over to the left, so when i put the page numbers in they don't sit right. How do i move the footer

    The footer is not only to the left. To get the page number to the right you can use Format > Align right. That will make all page numbers move to the right. Is that what you want?

  • Creating PDFs using Adobe Acrobat 9 Pro and can only see the first 10 pages in PDF even when the page numbers on bottom state 10 of 13 (or any number greater than 10).

    PDFs create great, unless they should be over 10 pages and then it appears the data was converted to PDF by viewing the page numbers at the bottom of the PDF but you can only view the first 10 pages in the pdf file.

    Hi stephaniec0103,
    Could you please let me know what exact dot version of Acrobat 9 and OS you are using.
    Have you tried repairing Acrobat from the Help menu?
    Acrobat 9 is an older version and incompatible with new OS versions, so I would suggest you to try using Acrobat XI (latest version) and check for the same.
    You may download a 30-day free trial version of Acrobat from the below mentioned link:
    Download Adobe Acrobat free trial | Acrobat XI Professional
    Let me know how it goes.
    Regards,
    Anubha

  • I can't get the page numbers in my table of contents to update when I update the book.

    I'm using Framemaker 11 and I have two TOCs in my book: one in English and one in French. Each TOC links to different documents in the same book. The reference page for each TOC is set and correctly displays the heading 1 and 2 I've told it to display, but the numbers do not update when the content in my document files changes to a different page. I've checked the conditional text settings in my document files; they are correct. When I update the book, I choose to update Numbering, All Cross-References, All Text Insets, OLE Links, Generate Table of Contents, Lists, and Indexes. What am I doing wrong? Thanks.

    I just tested this out and saw the same result as Rick - a book with child books ignores all generated files within the child books. This applies to adding content from them (e.g. their titles) to actually including them in the output. This applies to all versions of FM since v.9!
    However, there is a workaround for this. You need to use the hierarchical book structure in the parent book and create Folders for each book that you want to add. Then manually add the generated files (TOC, IX, List of..., etc.) and book to the respective folder. This is what it looks like for two child books in a parent book:
    Note that the child book generated files (TOC, IOR) show as just regular files at this point in the parent book. To get the page numbering to be continuous throughout the parent book, you will need to make a couple of passes. First set folder, files and books to have the Numbering continue from the previous (if you want all sequential page numbers). This will set the page numbers correctly except for what they were in the respective book TOCs. You will need to use the starting page number of the child TOC files in each folder (it shows in the Book status bar when click on the TOC file in the master/parent book).
    To set the individual book TOCs to be correct in the parent book, open the child book and set the TOC Numbering to start at the page stated in the parent book (status bar). Now update the child book to set the correct (parent book) page numbers in the child TOC. [This is a necessary manual step, as the page number assigned in the parent book is ignored when th child book is individually updated and FM uses 1 to start off the sequence in the child book.]  Repeat for each child book in the master/parent book.
    The final step is to Update the parent book and create the PDF. You should now have all of the files included in the PDF and the child TOCs should show the correct page numbers of the master book.
    This whole process of books within books seems a bit borked and one shouldn't have to be jumping through hoops to include child generated files. Please report this as a bug via: https://bugbase.adobe.com/index.cfm

  • Why won't my printer print page numbers? The page numbers show up when I preview the document by don't print on the page.

    Why won't my printer print page numbers in a document? The page numbers show in print preview, but will not print on document.

    Perhaps you have set the margins so tight to the edge of the paper that you have gotten into the non-printing area for your printer. Most printers have a dead zone.
    What are your margin settings?
    Jerry

Maybe you are looking for

  • While doing SO, im getting run time error - reg;

    Hi, While doing sales order and whenever im doing save its  getting runtime error. Runtime Errors         MESSAGE_TYPE_X Date and Time          14.12.2011 10:55:26 Short dump has not been completely stored (too big) Short text     The current applica

  • How Do I Import My G4 Files Into G5???

    So, I have a G4 with Tiger, and have just upgraded to a G5 with Leopard. Using Target Mode, I have moved over most of my documents and applications with no problem. HOWEVER, I can't figure out how to get my old Address Book, Inbox, and Sent Mail to c

  • Diff. bet. xsl template and rtf template!

    Hi, I need to know the difference between xsl template and rtf template. Thank you, Regards, Vishnu

  • How can attach a header logo to the Oracle apps Report

    Hello all, I created a customized report in Oracle apps and a logo on the top as 1. i used the file link from the toolbox and gave the path of the image on the source file name property. The images comes when i run the report from the report builder.

  • Reminders app doesn't show up in Settings in iOS5

    And it doesn't sync with iCal and MobileMe. Anyone?