Template not to be printed on Last Page

Hi all,
I have one query here. I am here making a smartforms in which I want one template which should get printed on all the pages except the last page.
E.g. I have three page in smartform then the template should be printed only on first and second page and not on third page.
I have tried to use the condition SFSY-PAGE ne SFSY-FORMPAGES but it is giving me error as both have the same values always on all the pages of smartforms.
Kindly help me soon.
Thanks,
Rohan

Hi Rohan,
if you want to use SFSY-FORMPAGES in a condition, you must use a window of type 'Final window'. The reason for the  Final Window, is that the value of SFSY-FORMPAGES is only known by the smartforms composer after all the pages are processed.
Best regards,
Hedvig

Similar Messages

  • Print range does not print the last page in the range.

    Adobe Reader for New IPAD - The print range function does not print the last page in the range. For example, if you enter a print range of 2-18, pages 2-17 print and page 18 does not print.  Also, if you enter a print range of 9-9, page 8 prints and page 9 does not print.

    I have the Epson 4540 printer. I don't know for sure if it connects via AirPrint.  I didn't do any thing to set up Air Print.  The printer is attached directly to my network router and it shows up IPad apps.  I have not printed docs from other apps, but I will give it try and let you know.
    Christopher J. Bilcz
    [email protected]

  • HP LaserJet P2055dn Printer won't print the last page of documents & envelope problem

    My HP LaserJet P2055dn Printer won't print the last page of documents until i send another document, then it will print the last page of the previous document, but omit the last page of the current document.  I need to keep printing a blank page or any other page to get my previous documents completely printed.  Also, the envelopes print with large rectangular boxes on them and no address (I don't know if this is a result of the previous stated problem or not - it started happening at the same time) I use the envelope feature in Microsoft Word 2010.  I never used to have either of these problems - didn't make any changes to the system or add any software to the computer, so I know it's not that.  Any help would be greatly appreciated!!

    This seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
    You can find the Commercial Laserjet board here:
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Can I print the last page of a PDF document using command line?

    Hi
    I am in a situation in which I constantly have to deal with multiple PDF documents and I need to print the last page in each of these, and ONLY the last page. The total number of pages will vary for each file, so the page number for the last page will also vary.
    I would really prefer to not do this manually, by opening up each file in the visible Adobe Reader window and then print.
    Question:
    Is there a way with Adobe Reader (maybe with the help of some other Adobe product) to print only the last page of a PDF document using some kind of command line without opening up the PDF file in the visible Adobe Reader window?
    I'm using Windows.
    Thanks in advance,
    Regards,
    Emil

    Thank you for taking the time to reply.
    I tried both ways and neither works.  It gives me a prompt box that I have to click "next" for every page but after going thru all pages, nothing is sent to the printer.
    Also, all directions I've read indicate it will print to the default printer.  If my default printer is on a network, will that cause problems....
    and...
    should I be getting a prompt box on every page?  I thought all this would happen behind the scenes and not force me to interact with every page.
    dc

  • When I print, a last page is printed with a summary of document printed - file name, directory, ...

    When I print, a last page is printed with a summary of document printed - file name, directory, ... Just got Windows 8. Is this something I can stop? Waste of paper and ink!!

    Hi RebeccaQ,
    Generally speaking, a summary page, document summary or document properties page is often generated based on a setting in the software application being used as opposed to the printer driver or menu setting.  For example, in MS Word you can select to print this page with each printed document.  In this case, depending on your version of Word, you can enable/disable the feature often in "Word Options", "Display", "Printing Options", "Print Document Properties".
    Does this help?  If not, which printer model and software application is being used when the summary is printed? 
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Photosmart C6380 only prints the last page in documents

    My printer only prints the last page of multi page documents. To choose more than one page in a page interval in the print menu does not help, but it is possible to print all pages in a document if I only print one page at a time which takes forever for longer documents. I use Windows 7 64 bits and it used to work until the end of 2011. If I uninstall drivers and reinstall, it sometimes work for a short while and then the problem comes back. All my drivers are updated and I run the printer on wifi.

    Just to add some information: I do not get any error messages, blinking lamps or anything like that. I've got the same problem independent of file-format as it seems. I have tried word-files, pdf-files and to print from the web browser Explorer.

  • Adobe PDF printer and "Start printing after last page is spooled"

    Hi,
    After calling the Belgian Support for Adobe Product, I'm trying to have some information here.
    Hope to get some help.
    We use acrobat pro XI on windows 7 client and when we print a test page with the "adobe pdf" print queue on network share, we get a printing error when the "start printing after last page is spooled" is selected in the advanced tab of the printer queue. (document is not generated, and stay in the spooler with an error).
    This problem is not present if printed localy or when we use the "start printing immediately" or "print directly to the printer".
    The support agent from adobe Belgium told me that the reason is generating adobe pdf on network share is not a supported operation. We have to save the document localy all the time.
    Is it really an answer from Adobe ?
    Do you have an other explanation ?
    Thanks for your help,

    Thanks for your very good explanation Dov.
    We use Adobe livecycle for this kind of purpose.
    The situation described is diffrent, but you completely repond and I will be able to have some element to find a solution.
    In fact, I'm implementing a softwate called DeviceLock, used to control connected devices (usb, network, drive). But this software, once installed, change the local printer parameters from "print directly to the printer" to ""start printing after last page is spooled".
    As we use redirected folder in our environment and users cannot use local drive (for user's data backup) you will understand the problem.
    Of course, we should be able to force the correct settings back, But Devicelock seem to change this settings after policy refresh.
    I have contact with Devicelock about this problem of course as their software modify the settings, but was looking for a reason why we were not able to use the "start printing after last page is spooled" parameters with adobe Printer.
    Thanks for your explanation,
    PS:The driver's dialog won't prevent you from setting “Start printing after last page is spooled” or “Print directly to the printer” but setting either of those options will cause the operations to fail as you note.
    note that only "Start printing after last page is spooled" cause an error and this, only for network share location. The "print directly to the printer" or the "start printing immediately" work fine either on a local drive and a network share

  • I don't want to print the last page of a smartform when there is no content

    I don't want to print the last page of a smartform when there is no content. Kindly help

    If the last page is printed, there are two possibilities
    -1- The MAIN WINDOW is only in this page
    -2- The page is explicitly printed from another page (new-page)
    -3- There is date but its only space or skip line.
    So in your form
    -1- Redefine the logic of your form
    -2- Check that, there are some data to be printed before calling the NEW-PAGE
    -3- Do skip or write space lines before printing an actual line and not after
    Regards

  • Footer should be print on last page in multiple page format

    Hi expert,
    I designed form for invoice print ,in that for multiple pages footer should be print on last page only and hight of the main window should be increase (means if footer will display on last page then space of footer should be used for main window in multiple
    page format) 
    for eg .if i have 12 item so 5 items displyed on each page but i want to print 10 item on first page and remaing on second and after that i want to print footer.
    Regards,
    Jyotsna

    Hi,
    Has you tried to create a "new page" copy of FIRST, and make it the LAST_PAGE... On it you are going to create the desired footer.
    The Page Secuence will be something like this:
    If you are trying to print 12 items, then PAGE 1 (10 items) -> LAST_PAGE (2 remaining items).
    Hope it helps you...
    Alexis Sanchez N.
    SAP ABAP Development Consultant
    Molen Services and Consulting, C.A.

  • LaserJet P2055dn is not printing the last page

    Hello! Our LaserJet P2055dn prints all pages in a multipage document but not the last one. When a new document is sent to the printer, it first prints the final page of the previous document, then the new document (again without the last page). If a one page document is printed, it works without a problem.
    Anyone know how to solve this?

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.
    Make sure you provide the URL for the problematic page, so they can see the problem for themselves.

  • Page number not printing on last page

    Hi all,
    I am ablt to print the total no of pages  in all pages ecept the last page.
    whats wromg in my code ?
    REPORT  ZDEMO_EOF NO STANDARD PAGE HEADING LINE-SIZE 100 line-count 27(2).
    types: BEGIN OF t_mara,
            matnr TYPE mara-matnr,
            ernam type mara-ernam,
           end of t_mara.
    data: itab TYPE TABLE OF t_mara,
          wa TYPE t_mara.
    select matnr ernam FROM mara INTO TABLE itab
      WHERE matnr BETWEEN '000000000000000001' and '000000000000000777'.
      sort itab by matnr.
      delete itab WHERE matnr is INITIAL.
      LOOP AT itab INTO wa .
        WRITE:/ sy-tabix,'!', wa-matnr, wa-ernam.
      ENDLOOP.
      data: v TYPE n.
      v = sy-linct - sy-linno.
      skip v.
    end-OF-PAGE.
      data: zline type i,
            temp TYPE f,
            zpages TYPE i,
            temp1 TYPE i.
      CLEAR: zline,temp,zpages,temp1.
    DESCRIBE TABLE itab LINES zline.
    temp = zline / sy-srows.
    zpages = TRUNC( temp ).
    temp1 = FRAC( temp ).
    if temp1 > 0.
    zpages = zpages + 1.
    endif.
    write: /'Page ',sy-pagno, ' of ', zpages RIGHT-JUSTIFIED.
    Thanks in advance
    krupali

    hi ,
    TYPES: BEGIN OF t_mara,
    matnr TYPE mara-matnr,
    ernam TYPE mara-ernam,
    END OF t_mara.
    DATA: itab TYPE TABLE OF t_mara,
    wa TYPE t_mara.
    SELECT matnr ernam FROM mara INTO TABLE itab
    WHERE matnr BETWEEN '000000000000000001' AND '000000000000000777'.
    SORT itab BY matnr.
    DELETE itab WHERE matnr IS INITIAL.
    DATA: v TYPE i.
    v = sy-linct - sy-linno.
    LOOP AT itab INTO wa .
      WRITE:/ sy-tabix,'!', wa-matnr, wa-ernam.
    ENDLOOP.
    RESERVE v LINES.  "-----> reserve lines
    *SKIP v.
    END-OF-PAGE.
      DATA: zline TYPE i,
      temp TYPE f,
      zpages TYPE i,
      temp1 TYPE i.
      CLEAR: zline,temp,zpages,temp1.
      DESCRIBE TABLE itab LINES zline.
      temp = zline / sy-srows.
      zpages = TRUNC( temp ).
      temp1 = FRAC( temp ).
      IF temp1 > 0.
        zpages = zpages + 1.
      ENDIF.
      WRITE: /'Page ',sy-pagno, ' of ', zpages RIGHT-JUSTIFIED.
    Thanks & Regards

  • Terms and conditions not getting displayed on the last page

    Hi All,
    I have to display a smartform, on the front side of the page i have to display material details and on the back side of the page i have to display terms and conditions. I' am unable to print the material details and terms and conditions in duplex mode, but on the last page only material details are getting displayed, terms and conditions are not getting displayed.
    Can you please help me how to make the terms and conditions get printed on the back side of the last page.
    Thanks,

    I'm a bit confused by the statement "I' am unable to print the material details and terms and conditions in duplex mode".
    I suppose you meant to say "I am able to print the material details and terms and conditions in duplex mode", correct?
    If the problem is that on the last form page, the T&C is not getting printed on the back of the form, you could force the T&C page by using a flow logic command as the very last element of the main window, which gets processed when all the data is already output. For the command, use the 'Go to New Page' and specify the page name for the Terms & Conditions.
    In case this causes an issue that the last page is printed twice (since the T&C page is likely defined with the next page being NEXT_PAGE), then copy the already existing T&C page, call it LASTPAGE and leave the Next Page attribute empty.

  • PO report: Problem in printing the last page

    Hi all,
    In my PO report, i need to print a table specifying 'continued' in every page and a table containing total amount in the last page for one PO. By using 'start@last-page-first:body' , i am getting the solution. But i also need to print 'Terms & Conditions' ( it is one page) in the last page after one PO. This is when i tried for one PO only. If i get the solution i need to try for multiple POs.
    And this terms & condition page should not count under total number of pages.
    Bit Urjent, can any one please help me
    Thanks in advance,
    Suresh

    Use following code to print terms and condition on last page of evey po
    <?for-each@section:G_HEADERS?>
    All header fields
    <?for-each:G_LINES?>
    All Line Fields
    <?end for-each?> --Line End
    Give Section Break <Next Page>
    <?start@last-page:body?><?end body?>
    PO Total Will Come here
    Give Section Break <Next Page>
    Terms and Condition will come here
    <?end for-each?> --Header End                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Check printing r12 print stub @ last page

    Hi
    I designed r12 check print rtf to accommodate 12 invoice lines per page and a check stub @ bottom...
    When I have 28 lines it goes upto 3 pages..and 4th page shows voided stub...
    But in each page(page 1&2&3) I am getting the stub printed out..printing only at page 3 or page 4 is the key..
    How to make it like to print the STUB only at last page.?There
    may be cases the client may have 100 lines..
    So it will be like print check stub @ 9th page
    Appreciate advice
    Kp
    Edited by: 854508 on Jun 28, 2011 6:22 AM

    Hello;
    1)Use Oracle original template located on the server for R12.
    search for "rtf" file and modify that template by renaming them.
    2)Only issue you will face is the gapping or spaces between the invoice line and check stub or I called it "blank line filler".
    To achieve this I used one the Tom's blog article and this URL:http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-3.html for ideas.
    Here it goes:
    2.a - Declare a global value for number of line needed to fill invoices.
    This number must match exactly under "Payment" then "Format" under "paybales super user" responsibility. I called it "lpp" (line per page"
    2.b - create a text form field right before printing check stub.
    this field will print blank line based on calling template recursively, also
    we declare a variable "countdown" for number of recursive calls.
    This parameter will be passed to "blank template" section
    <xsl:call-template xdofo:ctx="inline" name="countdown">
    <xsl:with-param name="countdown" select="number($lpp)-(..//DocumentPayableCount)"/></xsl:call-template>
    2.c - create a template section with one blank line in bottom of the report called "countdown" based on 2.a.
    2.c.1 create a field for parameter value which was passed from 2.b like this:
    <xsl:param name="countdown"/><xsl:if test="$countdown">
    2.c.2 create a blank line.
    2.c.3 create a field which call the template itself by substracting a countdown value by one.
    <xsl:call-template name="countdown"><xsl:with-param name="countdown" select="$countdown - 1"/></xsl:call-template></xsl:if>
    2.c.4. don't forget to close your template tag like <?end template?>
    HTH
    Shaun S.

  • Not able to print T&C page at the end

    Hi Friends,
    I am working on a PO form. I need to print Terms & Conditions (Content of 2 pages) at the end of my printing.
    As of now I have two pages :
    FIRST
    NEXT  -  Copy of First
    After the MAIN window I am printing Digital Signature which is in a Secondary window.
    For my issue   I created a new page with one Secondary Window which reads the Standard Text to populate T&C.
    But this page is not at all triggering.
    Next Page attribute:
    FIRST   -   NEXT
    NEXT    -  TNC
    TNC      -    this is blank as we can not assign a page without MAIN window.
    Also checked in the debugging mode also    but  its not calling this page.
    Can anyone please help  me solvig this issue?
    Let me know if I am not clear anywhere.
    Thanks,
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Feb 19, 2010 8:52 AM

    Hi  ,
    Next Page attribute:
    FIRST - NEXT
    NEXT - TNC
    these are your next pag attributes
    try this ..
    Next Page attribute:
    FIRST - NEXT
    NEXT - NEXT
    TNC - blank
    in the NEXT page u have  your terms and condition page  forcibly because your terms and condition page is not having main window.
    for this u have to create command node and (nextpage will be TNC) after the main window of the NEXT page 
    Hope u solve your problem
    Let me know if any concerns ........

Maybe you are looking for