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

How can I fill a report with ruled lines

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

    How can I fill a report with ruled lines

    I am printing a report that should have ruled lines. I can accomplish that by putting boxes around the field in the report detail section. But if there are not enough records to fill one page the rule lines just reach as far as there are records. Is there a way that I can overcome this problem?

    Jude

    #2
    RE: How can I fill a report with ruled lines

    Jude,
    Have a look (search)in this forum or perhaps in Learn Alpha articles where I recall there was a previous article on how to put nice colour change breaks in your reports. I do believe the same technique applies here. The approach in the Article was quite detailed with code etc and should work for you or be adaptable.
    Best Regards
    tom

    Comment


      #3
      RE: How can I fill a report with ruled lines

      Yes, I found that, but it is not working because it stops where the report ends, it does not continue to to fill the whole page.

      Thanks

      Jude

      Comment


        #4
        RE: How can I fill a report with ruled lines

        Jude,

        A not very creative solution would be to use a temporary table as the foundation for your report. Copy your records there at print time. Add enough blank records to force ruled lines to the bottom of the page. This would be very tedious, and difficult to automate, but if you really really need the lines it would do it.

        Perhaps a better solution would be to export your records and then use the export file as the source for a mailmerge operatioin using your favorite windows wordprocessor. The template for your merge could have ruled lines.

        A final idea would be to create the template in your word processor, including ruled lines to the bottom of the page. Then scan that document into a bitmap image, and try to embed that image into your report layout, so that the fields in your data print on top of the image.

        -- tom

        Comment


          #5
          RE: How can I fill a report with ruled lines

          Hi Jude,

          Another suggestion that I used for a report is to Put lines or boxes
          in your continuous footer region, and keep them to the top of the
          region and the detail region adjusted to the bottom. You will have to
          experiment a little, the report will look like it has continuous lines
          when printed.

          Regards,

          Paul

          Comment


            #6
            RE: How can I fill a report with ruled lines

            Ok I will try that. I was wondering is there a code that I can attach to a form button that can check the number of lines in a browse and automatically input some blank records that will make the form generate a fill page?

            Jude

            Comment


              #7
              RE: How can I fill a report with ruled lines

              Jude,

              Such code would have to be custom crafted and would be quite complex. Paul's idea sounds much easier.

              -- tom

              Comment


                #8
                RE: How can I fill a report with ruled lines

                This code here works but I am sure it can be better.

                'I attached this script to a button on a form. On the on pushed event
                'it ensures the lines will always be 20.


                'XBasic
                option strict
                dim tbl as p
                dim line as n
                dim count as n
                dim rec as n
                dim addl as n
                dim i as n
                rec=0
                count=0
                addl=0

                tbl=table.open("time")
                tbl.fetch_first()
                while .not. tbl.fetch_eof()
                rec=rec+1
                trace.writeln(str(rec))
                tbl.fetch_next()
                end while
                count=rec
                'Check to see how many lines table has

                if count

                Comment


                  #9
                  RE: How can I fill a report with ruled lines

                  The idea of adding bogus records to a table just to print a line(s) seems a little awkward. Why not put a conditional object in the page footer,report footer or group footer if you have one. Make 20 conditions something like:
                  1)mod(mrecno(),20) = 1 2)mod(mrecno(),20) = 2 etc. all the way to 20.
                  If 1 put 19 lines in the object, 2 put 18 lines in the object etc.
                  Check off shrink the object and don't check off bottom justify on the region.
                  Not tested but it should work.

                  Comment


                    #10
                    RE: How can I fill a report with ruled lines

                    FWIW: If I'm not mistaken, cond objects support only 14 conditions.
                    Peter
                    AlphaBase Solutions, LLC

                    [email protected]
                    https://www.alphabasesolutions.com


                    Comment


                      #11
                      RE: How can I fill a report with ruled lines

                      Didn't know that. If that is the case, then you could do it with two conditional objects, one directly below the other. The first object would handle from 1 to 9 and 10 and over, the second would handle

                      Comment


                        #12
                        RE: How can I fill a report with ruled lines

                        Hi,
                        Let me give you a little more insight as to what is happening. The form I am printing is a Government form and it has about twenty lines, if I input 1 line I will need to draw the other 19 lines to fill the detail until the page footer is reached.

                        If the report has 10 records I will have to draw 10 ruled lines until I get to the page footer, and so on.

                        In the past what I did to get around it. I printed just a ruled form and I used Alpha Five Report to fill in the blanks.

                        But now I realise how powerful Alpha Five is I am looking for an easer way.

                        If nescessary I can send you one of the printed reports

                        Thanks

                        Jude

                        Comment


                          #13
                          RE: How can I fill a report with ruled lines

                          I've never done this but you probably could scan a ruled form into a bitmap and use the bitmap as the report's background object. You probably would have to fiddle with size and spacing.

                          Bill
                          Bill Hanigsberg

                          Comment

                          Working...
                          X