Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Variable add a blank page / Testing for Odd/Even Pages in a report

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Variable add a blank page / Testing for Odd/Even Pages in a report

    I have a report that is grouped on first letter of the last name so that the printed report can go into a binder. The problem is, if the last page in the group is not even (or the first page in the group is not odd), I have to add a blank page to get the alphabetical tabs to work with the printout. I currently go through the pdf and manually insert the blank pages, which is both time consuming and error prone.

    Does anyone have a way to add a page break (and therefore a blank page only when needed. I can't even find a simple way to test for odd/even number (though I am sure there is a way- mod maybe...)

    Any help would be appreciated.

    Chuck

    #2
    Re: Variable add a blank page / Testing for Odd/Even Pages in a report

    mod(pageno(),2) will yield 1 for odd numbered pages, 0 for even numbered pages. I believe you can place a page break in a conditional object.
    There can be only one.

    Comment


      #3
      Re: Variable add a blank page / Testing for Odd/Even Pages in a report

      Thanks Stan. I had already figured out the odd/even detection, and it works for everything but the page break in the conditional object... unless I am doing it wrong. When I place the page break in the conditional object- it stretches beyond the boundaries of the conditional object and moves outside of it. :(

      Comment


        #4
        Re: Variable add a blank page / Testing for Odd/Even Pages in a report

        See if the next to last post in this thread is of any assistance.

        https://www.alphasoftware.com/alphaf...nal+page+break
        There can be only one.

        Comment


          #5
          Re: Variable add a blank page / Testing for Odd/Even Pages in a report

          Stan, that's it, thanks!

          For any others:

          Hi all,

          Well folks, it *can* be done. Recto-verso pagination can be controlled--within limits.

          Why should we care? When we print to one side only it doesn't matter. However, printing duplex, if we have a report with multiple sections (grouping levels) and we want to separate the sections with tabbed dividers then when a new section (group) begins on the reverse side of the page, then it will come before rather than after the tab.

          A simple example would be an address book. Lots of the time these books have tabs which combine letters: AB; CD; EF; GH.... You don't want "A", "C", "E", "G" etc. to start on the reverse (verso) side of the page. I won't detail the process by which I was able to force a new group every second letter. The group is called "Tab".

          Luckily the verso sides have even page numbers and the report generator has a system variable which holds the page number. In other words, generating the condition is no problem. (We all knew this already.) Use the mod function with a denominator of 2. Recto gives a mod of 1. Verso yields 0.

          Previous contributions have established what *doesn't* work and I won't reiterate all that except to recall that the obvious method--a page break on a condional object is a no go.

          It would be great if a page break object accepted a conditional expression but it doesn't. However, the break's property sheet has a "break optionally" checkbox. Look in the manual and you'll find that it is intended to keep memo fields from being split by a page break. If the field is too big to fit it is shifted to the next page. This sparse documentation meant I had to do a bit of experimentation.

          Here is what to do:
          -In group properties, on the region tab, make sure "start group on a new page" is checked.
          -Create a group footer. In its properties, check "allow shrink" and "keep together on a page."
          -Insert a page break object at the very top of the footer. Open its properties and check "optionally break."
          -Insert a conditional object right after the break. In its properties be sure to check "allow shrink."
          -Using the mod function create two conditions, even and odd. Leave the layer for the odd condition blank.
          -Put a couple of text objects on the "even" layer of the conditional object. Place one at the top and one at the bottom to prevent the conditional object from contracting at print time. The contents of the text doesn't matter; it will never print.
          -The required size of the conditional object depends on your page length. It must be big enough to not fit on a page with anything else but must not take more that a page by itself.

          Here is what happens:
          -If a group finishes on the reverse side, the page condition is "odd" so the group footer is empty, and it shrinks, so there is nothing to print. The next group starts on the next page which is recto so you're fine.
          -If a group finishes on the recto page, the "even" condition is true, the footer is too big to fit, the conditional page break kicks in and the conditional object moves to the next page. But now the page number is odd so what "prints" on that page is the "odd" or empty layer of the conditional object. (This was a happy surprise!) My report has the page number in the page footer section and this confirms what is happening.

          I hope this is useful to someone else because it took a hell of a long time to discover.

          All the best,
          Bill

          Comment


            #6
            Re: Variable add a blank page / Testing for Odd/Even Pages in a report

            Oldie but a goodie.
            There can be only one.

            Comment

            Working...
            X