Print a line on the last or second from last page

I'm using Oracle Report 10.1.2.3.0.
I'd like to print a line on the last page of a report if the report has an odd number of pages or the second from last page of a report if the report has a even number of page. It is the later second from last requirement I'm struggling with. Can anyone help me solve this problem please?
The reason for this is that we are purchasing an envelope inserter that using Optical Mark Recognition (a series of lines on the side of the page). This only reads on the front side of a piece of paper, so when performing a duplex print the marks need to be on the odd page numbers. In this case I need to apply a mark on the front side of the last piece of paper.
Thanks

Hi InoL
Thank you for your response. I have seen similar solutions to this and have investigated them. Although they give you a work around to know the total number of pages in PLSQL, they only give you a way of knowing this once the report has completed formatting the last page. Unfortunately, my requirment is to know when I'm on the second from last page to perform some conditional formatting. I don't think knowing the total number of pages at this stage is going to be possible in reports, therefore I was hoping someone may know a "clever trick" to achieve this.
Thanks
Neil

Similar Messages

  • Error in the macro 'rp-provide-from-last'

    Hi, experts!
    Can anyone please help me address an error regarding the macro rp-provide-from last? During activation, this error is returned: "Unable to interpret SPACE. Possible causes: Incorrect spelling or comma error".  The line in question is this: rp-provide-from-last p0000 SPACE pn-begda pn-endda This is the only error standing between me and activation. Please help
    Thanks in advance.
    Regards,
    brent

    HI Brent,
    Use this sample example :
    REPORT  ZTEST_94TEST.
    TABLES :pernr.
    INFOTYPES :0000.
    GET PERNR.
    rp-provide-from-last p0000 SPACE pn-begda pn-endda.
    No syntax errors and activated. hope it will be helpful.

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page

    How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page #1 without making the rest of the pages inaccurate, as page #1 is the Title Page. Does anyone have any suggestions?

    When you signed to be able to post in the forums, you were urged to read and accept the Terms of Use ruling these forums.
    They claim :
    The contents of the "More Like This" box prove that applying the rules you would have get the wanted explanations without creating this new thread.
    Yvan KOENIG (VALLAURIS, France) mardi 26 avril 2011 10:04:03

  • Query on reading infotype 0001 using the macro rp-provide from last p0001

    Dear Friends,
            I have a question rgarding relating the infotype 0001 when we are using in the program the logical database PNP.
    iam using rp-provide-from-last p0001 space sydatum sydatum
            if pnp-sw-found eq 1.
            append p0001 into i_p0001.
            endif.
    iam getting a problem in production , in the selection screen iam passing for emloyee subgroup with multiple values option.
    i have passed E,H,S  -> where E means Executive , H means hourly and S means salaried employee...
    one particular scneario is iam having an employee whose
    employee subgroup is C (contactor) and on the selection screen if am passing this personnel no and on the selection screen iam only having in the multiple selection option only E,H,S but not C so this record should  should fail but it is getting success and appending to internal table i_p0001
    which is wrong
    , i mean to say the macro is getting success
    rp-provide-from-last p0001 space sydatum sydatum
    this employee .
    my question is will the macro will not check on the selection screen the employee gropu which we have passed and should i exclusively check
    if p0001-persk in pnppersk ?? or please let me knwo how to check this wrong employee not getting appended to my internal table.
    please let me know
    regards
    madhuri

    Hi Madhuri
      The macro rp-provide-from-last p0001 will not fetch data from the database, it simply extracts the last record from the available internal table P0001[]  for the time frame provided(as 3rd and 4th parameters). You can check the definition of the macro from the database table TRMAC, it simply uses the LOOP....ENDLOOP and IF conditions to arrive at the last record and populates the fields pnp-sw-found, pnp-sw-tabix.
        And coming to your problem, please check all the IT0001 records of the EE concerned, it can happen that the EE is attached to different employee subgroups in different time frames and hence the LDB is fetching all the available records of the EE (even if the employee subgroup is not among the one's selected in  the selection screen). If this is the case, I reckon, u've to perform manual check before appending to the internal table.
    Note:  The macro  rp-provide-from-last p0001 space sydatum sydatum will only fetch the valid IT0001record as on date - sy-datum

  • An unknown error occurred (0x80092013) what the **** is going on  from last six month i am unable to access i tune store?pls give me solution which should help me to shortout this problem as soon as possible

    An unknown error occurred (0x80092013) what the **** is going on  from last six month i am unable to access i tune store?pls give me solution which should help me to shortout this problem as soon as possible. i have not expected this from apple

    I have been trying for months to put iTunes on my laptop and kept getting installation errors in Windows 7. I gave up and just installed iTunes on my PC running XP.
    Now I have to install Quicktime on the laptop and once again I get an installation error 0x800736FD.
    All windows updates are fine, none failed.
    I have removed all apple software from my laptop using CCleaner, common files and folders. Tried reinstalling and still the same error.
    Could you offer any advice on how to get both quicktime and then iTunes working??
    Thank you in advance

  • Hi! I bought my notebook in october last year but from last month oftenly my WiFi connection hangs up nd stops catching any available Wifi connection? please suggest the solution

    Hi! I bought my Macbook Pro 13" in october last year but from last month oftenly my WiFi connection hangs up nd stops catching any available Wifi connection?
    At last I restart the modem and dn it catches the signal but that too is short lived.
    please suggest some solutions
    Thanking U,

    I have this problem on my home network but at the same time when my connection hangs up my other wifi machine remians connected. So i think there's no problem with the modem.

  • Why the menu to move from one page to another is not seen when the page is online?

    On my web, I have different pages like 'Homepage' or 'Contact' but when I publish my web I can not see the menu.
    why the menu to move from one page to another is not seen when the page is online?
    Thank you,
    Roger.

    Where are you publishing and how are you uploading the files?

  • Transaction MM60 printing multiple lines for the same information

    Transaction MM60 is printing the same information multiple times, meaning that the same materail is printing multiple times with the exact same information.  Any ideas why?

    It IS showing duplicate lines.   The columns that I'm showing are:
    Material
    Plant
    Val. Type
    Material Description
    Last Change
    MTyp
    Matl Group
    Unit of measure
    Purchasing group
    ABC indicator
    MRPType
    Valuation Class
    Price Control Indicator
    Price
    Currency
    Price Unit
    Created by
    Every single field is identical and each material contains exactly eight rows of identical information.  The interesting thing is that if I actually enter a material number, only one line shows (which is correct.)  However, if I leave the material number blank and enter the material type, that's when we get multiple lines.
    Any other ideas?

  • Need to print horizontal line at the end of main window in each page.

    Hi,
    I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
    Please suggest how to proceed.
    Thanks,
    RKU

    Hi,
    If you don't have any frame set on your main window:
    Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
    This will give you a line in the bottom of you main window.
    If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless  you mark this checkbox.
    Regards
    Åsa Thenstedt

  • How to make a cell that recognized the second from last?

    Two tables. First is data and second refers to the second to last column of the first which is always changing. The first table is a weekly table so it is constantly expanding. On that first table has a number that changes with it. I want the second table to show that changing number.
    mon
    tue
    wed
    1
    1
    2
    1
    2
    4
    ^ this is table one for week 1. my second table wants C3 to show on its table because it is a total.
    However, by next week i will have added a new week onto this one
    mon
    tue
    wed
    mon
    tue
    wed
    1
    1
    2
    2
    2
    1
    1
    2
    4
    6
    8
    9
    since i have added, table 2 will still be showing C3 since i, at the time, set it to show the, then current, total.
    Is there a way to make table two always refer to the the last column of the 3 row?

    Hi gaksdd,
    I am feeling bad. I am afraid that your spreadsheet will be ungainly and cranky and hard to update in the future. I want to say this much at least: Numbers tends to work best when the tables are longer than they are wide. I don't expect you to have this problem but while tables can have potentially thousands of lines they cannot have more than 256 columns. Many things will tend to work better if you orient your tables this way. As you are just beginning it makes sense to develop good habits and start thinking more like the program designers expect. It will pay off. If you ever decide to use iOS forms for data input they are designed to input data one row at a time. If you are inputing more than 1 number a day it would make sense to reorient your data table so the weeks run down the page.
    INDEX(range,row-index,column-index,area-index)
    You have specified a range.Then the first comma.
    row-index is where you specify a row. In my example it was "2" for the second row in the range. This is where you would use ROWS(), before the second comma.
    column-index is where I used COLUMN(). then the third comma.
    We don't need area-index.
    I get a certain pleasure in pushing this program in unusual ways and this certainly qualifies. It is not a best practice.
    When you have your formula working, compare it to
    =SUM(Table One::2:2)÷2 or the variation needed for your table. This way of working makes your report table more reliable.
    Simpler is more robust, less likely to bite you in the butt down the line.
    quinn

  • Printing a Line at the end of a Repeating Frame in Reports 6/6i

    Hi Folks,
         In few of my designed reports I want a horizontal boiler plate line drawn at the end of the repeating frame on each page. The Number of Records property of the repeating frame is set to 0, i.e., depending upon the margin allocated on each page the report should fetch as many records as they can fit in the allocated area of the frame. I have also set the Page Protect property of the repeating frame to Yes, since we want the description of the records to be displayed fully on each page i.e., a record displayed last on a page should have its description on one page and it should not go to the next subsequent page. Now when I draw a horizontal boiler plate line at the end of the repeating frame in the Layout Model and set its property to Print on all Pages, the line in few pages of the report does not print at all and on the rest of the pages it is displayed at its correct position. I have even tried using an Anchor but it still does not work. Do I need to set the property of the anchor or am I missing some basic point here?
    TIA
    Hassan

    Hi there,
    I have tried that but when the records are less in number on a page i.e., 1-2 then the line do prints on each page but there is a gap between the line and the last record.I want that the line should print right after the last record. Should I use an anchor here? But we cannot use an anchor between a line and the margin.
    Any ideas??

  • How to print header lines at the top of every page with Alv list display?

    Dear all,
    I need a requirement with printing issue. A program list should be printed with the function reuse_alv_list_display.
    The list has several pages and then can be printed but the header lines appear only first page when they printed. The other pages don't have header lines, they continue with the next record of the list remaining from previous page. I use the alv parameters as below:
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_pf_status_set = 'ALV_PF_STATUS'
          is_layout                = ls_layo
          it_fieldcat              = lt_fcat
          i_default                = 'X'
          i_save                   = 'A'
          is_variant               = ls_variant
          it_events                = lt_events
        TABLES
          t_outtab                 = lt_data
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    and lt_events as below:
      ls_event-name = 'END_OF_LIST'.
      ls_event-form = 'ALV_END_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'END_OF_PAGE'.
      ls_event-form = 'ALV_END_OF_PAGE'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_LIST'.
      ls_event-form = 'ALV_TOP_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_PAGE'.
      ls_event-form = 'ALV_TOP_OF_PAGE'.
      APPEND ls_event TO lt_events.
    So, how can I print header lines for every page?
    Best Regards,

    Hello Saba,
    Your point might be very close to solution.
    Because in the selection screen of the program there are two radio buttons, one of them visits 'REUSE_ALV_COMMENTARY_WRITE' function and the other doesn't. The one which visits has a problem with header liens in every page when printing. But I couldn't find out the solution yet.
    reuse_alv_list_display uses 4 event and of course I call subroutine. There are end_of_list, end_of_page, top_of_list and top_of_page. I use in the subroutine for top_of_page:
      CALL FUNCTION 'LVC_TRANSFER_TO_SLIS'
        EXPORTING
          it_fieldcat_lvc         = gt_fcat
        IMPORTING
          et_fieldcat_alv         = lt_fcat
        EXCEPTIONS
          it_data_missing         = 1
          it_fieldcat_lvc_missing = 2
          OTHERS                  = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_WIDTH_GET'
        EXPORTING
          it_fieldcat = lt_fcat
        IMPORTING
          e_width     = l_width.
    WRITE l_reptx TO l_reptx CENTERED.
      NEW-LINE.
      WRITE: AT (l_width) l_reptx CENTERED.
      SUBTRACT 10 FROM l_width.
      WRITE: AT l_width sy-pagno RIGHT-JUSTIFIED.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            it_list_commentary       = lt_header
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    Do you have other suggestions ?

  • HP 3055 Prints a line down the page

    I am having some trouble with an HP Laserjet 3055, when I print a page while the printer is 'cold' , a small strip 1/8" thick of garbage prints down the entire length of the page..  If I print more than one page the error gets smaller and smaller and around the 4th page the printer prints perfectly...
    If I wait over a minute before printing another page the 'line' resurfaces.
    I've tried different toner cartridges and have done the printers cleaning command, nothing has helped...   Does anyone have any idea ?

    I have similar problem with HP LaserJet 2430.
    While printing, characters from each line are repeated at 3 inch intervals along the length of the paper at about 2 inches and 7 inches from the left margin that appear as two grey bands on the printout. The widths of the bands are approximately 2 characters and 8 characters. For example when a single line is printed the characters at 2 in and 7 in locations from the left margin repeat at 3, 6 and 9 inches down from the printed line and the intensity of the printing decreases.
    For example if I print a printer test page, the HP logo at the top right corner will repeat with reducing intensity at 3, 6, and 9 inches from the first logo print.
    Similarly if I print a word document with just one line of numbers 1234567890 repeated for the width, the numbers 23 at 2 inch and 67890123 at 7 inch from left margin will repeat every 3 inch along the length of paper (portrait mode) with decreasing intensity.
    While printing documents with multiple lines this causes two grey vertical bands along the length of the paper. 

  • Remove the newsfeed, skydrive, sites from master page

    hi,
    i want to remove the newsfeed, skydrive, sites from the  top of the sharepoint site: [[ as shown below ]]
    is this possible?
    pls help

    you can just replace the delegate
    SuiteLinksDelegate Delegate Control with empty new delegate control with lower sequence check the post below 
    http://zimmergren.net/technical/sp-2013-some-new-delegatecontrol-additions-to-the-sharepoint-2013-master-pages
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

Maybe you are looking for

  • Importing Material Data step-by-step instructions

    Hi, I am using SAP MDM 5.5.24.06 and trying to import  Material data (XML / Idoc format) that was extracted from R/3 using Transaction MDM_CLNT_EXTR. I used MATMAS.MATMAS04.xsd schema and selected MATMAS04_R3 mapping but MDM IM returned errors for bu

  • Before  and After Aggregation

    Hi Gurus' Where can we find the options "Before Aggregation" and "After Aggregation"?What is the basic use of these aggregations?Why we should not use the option called Before Aggregation in a  Multiprovider? Could any one please let me know the abov

  • Printer on network

    I would like to use my SG300-20 to have 2 VLANs share a single network printer.  What would be the best practice for this situation.  Right now the switch is set in L3 mode.  I do have flexibility right now for it is not in use and willing to start a

  • Missing Apps in 2.2

    Anyone know why the 3D gallery is not available in this release of 2.2 ?  There also seems to be a new interface for the camera that is not showing either.

  • Error 19 message when downloading an LP after trying other fixes?

    After tring many times to download a LP and trying fixes like manually erasing songs from the directory the entire LP wil no load and freezed the system.  I've tried cleaning up my drives and trying bits and pieces of the mac fix - i'm running XP.  I