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

Print Preview - user controlled

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

    Print Preview - user controlled

    Is there any way i can let a user preview a report or letter but keep control of the print function within this preview?

    The reason for asking is that i wnat to set a flag when a report/letter is printed but have no way of doing so if the report is printed through a preview screen.

    I assume that the preview is just another form, is it possible to have a preview report/form control on the toolbar?

    #2
    RE: Print Preview - user controlled

    Ron,

    Yes you can put a button on a toolbar and attach
    some xbasic to it.

    ReportPrinted=.t.

    :report.preview("Your report name")
    or
    :report.print("Your report name")



    steve

    Comment


      #3
      RE: Print Preview - user controlled

      Thanks Steve,
      The problem is that I only want to set the flag if they print the form, if they only preview it I am not intersted.
      As the date of printing is used as the date of invoice.
      ..

      Comment


        #4
        RE: Print Preview - user controlled

        If you are printing one record at a time, let them preview the form if they desire, but have a button on your form for that. Same with print. Once they press the print button, flag your variable, insert the date into the form, and then execute the print form function.

        Tom Lyon

        Comment


          #5
          RE: Print Preview - user controlled

          Tom:

          Sometimes these are issues of operations, not programming.

          The key questions to ask, just to start are:

          1. Why do you need to Preview an invoice before printing?
          2. How often do you Preview it rather than just print it?
          3. How many (total number in a day) invoices are previewed?

          Then the programmer can determine if one button, or two
          should be used, or a multistate button or other method.
          Multiply the number of buttons that must be clicked by the
          number of items being processed and then calculate the manpower necessary to accomplish this task. If you can
          automate--reduce or eliminate a preview--reduce a button click from two to one, or eliminate it altogether--invoice processing you will have value add to the program.

          Good luck

          Comment


            #6
            RE: Print Preview - user controlled

            This is slightly off subject, but why wouldn't you use the date it was created instead of the print date for the invoice date? Generally the user would print it right after it was created. I always have the current date default into the invoice date field. I also have a button on the invoice to print it or one on a menu to print a batch according to some appropriate criteria. It's most logical to print it immediately (point of sale) or in a batch once all data entry is complete (mail/ecommerce sales). Having the date set to the date it was printed seems overly complicated.

            Sylvia

            Comment


              #7
              RE: Print Preview - user controlled

              Don't forget the real beauty of Alpha Five, however, Elliott. If you want every instance of the word potato to be 'pototo' and I prefer 'potato', Alpha will accommodate our varied tastes and preferences. There are many ways to achieve goals, none of which are good or bad, just different.

              Ron likes to preview for whatever reason. After he learns more XBasic, he may discover he has no need for preview. I know we could shift the focus from the questions asked but we also take the risk of creating confusion.

              Tom Lyon

              Comment


                #8
                RE: Print Preview - user controlled

                A valid observation and thanks but the record is created, then after some length of time maybe a week or so the client then prints an invoice, after details have been amended, new charges added etc..

                Comment


                  #9
                  RE: Print Preview - user controlled

                  Thanks for the comments, but the question IS more fundamental than just procedural issues.

                  1) I am supporting an Alpha 5 Application that is run by our clients not me - therefore procedureal control is different from client to client. They explicitly request/expect the ability to preview a layout before printing it a a check that they have completed it properly.

                  2) It was more a request to find out how Alpha5 produces a layout preview form, or how can i get control of the print icon on that form.

                  If the above is not possible, then is it possible to create a preview form of my own, i.e convert a layout into a rich text field (if that's what it is) and put that on a form with my own toolbar controls?

                  Comment


                    #10
                    RE: Print Preview - user controlled

                    Tom:

                    I understand what you are saying, and appreciate it. It is true that one function of the board is to try to help solve the specific issue at hand. It is an important function for the individual that has the specific problem, I know in that we have been there. There are many competent and skillful A5 software engineers, like yourself that respond to issues in direct, concise and helpful ways with specific code snippets offered in their responses. I always commend you and them for it, and realize that you and their time is valuable.

                    I like many others, typically do not review the board each day to solve specific problems�many of which because of experience or skill level, or different tasks that our software is required to effectuate do not encounter. Instead I review the board and look at each and every question and answer posted, not just for the issue, but rather to glean experience from the questioners and answerers for how they formulate goals, why they use one method over another and most importantly which method best achieves cost effective efficiency. I for one, have found and learned a great deal from this review not only by the way,from experienced programmers, but by novice as well.

                    I have learned in my many years of helping to produce high volume customer service operations software that while there are many methods to achieve goals; there is are indeed right and wrong ways. And good and bad ways. And ways that enables a company to grow by doing more with less�especially less operations staff.

                    These ways must be taught or gleaned from failure or by the gradual process of actually creating software that does not just work, but accomplishes what software should accomplish.

                    I have also learned that often times operations staff request certain functions because they do not have well
                    designed programs and screen layouts that let them accomplish their tasks in a competent and quick manner with a minimal degree of failure. Failure both from the prospective of the software, and of the human operator. More times than not, I think you will agree human mistakes can readily been prevented by capable software. I have seen
                    software engineers present what they consider fully completed programs only to be laughed at by operations staff.

                    In the instant case, it is obvious from the Ron�s last response that his task operators for whatever reason require a preview of the invoice/form to assure that it was done competently. I have found that often times operations staff tell the programmer one thing�I need this�and the programmer just hears that the operations staff needs that. I have learned and continue to learn from this board to successfully translate operational needs to programming excellence. I say translate because there are many reasons WHY operations staff need certain abilities and it is up to the programmer to not just accept at face value the need, but to determine the whys and wherefores. In our system, while we can preview an invoice it is normally only done to look at it on the screen if a customer calls with a question. The software itself prevents almost all mistakes in the invoice creation, with very little actual human decision making involved in the process. And on its final creation screen, all information necessary to finalize and Quality Control the invoice are present without the need to send it to preview. And like Ron, we identify the date that the invoice is actually printed although we date the invoice at the partial creation date which is the date
                    we are notified of task completion and before receipt of our vendor�s invoice. I attach one of our similar invoice screens as a simple example.

                    My attempt to answer Ron tried to provide insight for him--without knowing his experience or skills and others as to some of the questions that should be asked even before time is spent in programming what the programmer believes is the solution to the problem. Determining why the operator truly needs a function is sometimes the most difficult job that a programmer will face. Excuse me for being so presumptuous as to present my experience in these matters.

                    If you have followed my responses and issues on the board, you will know that I have a certain philosophy in both programming, hardware and in operational systems. I rarely give specific code advice but rather theory and analysis advice. There are others far more skilled able to provide
                    code. But there is a great deal more to software than mere code. And please don�t take my responses personally, they are not meant to criticize in any manner whatsoever. The answer to a specific question might enable my team to rethink how we do something, learning not only about the solution but the process. Hopefully others out there that read each question with like hopes.

                    Good luck

                    Comment


                      #11
                      RE: Print Preview - user controlled

                      Tom:

                      I understand what you are saying, and appreciate it. It is true that one function of the board is to try to help solve the specific issue at hand. It is an important function for the individual that has the specific problem, I know in that we have been there. There are many competent and skillful A5 software engineers, like yourself that respond to issues in direct, concise and helpful ways with specific code snippets offered in their responses. I always commend you and them for it, and realize that you and their time is valuable.

                      I like many others, typically do not review the board each day to solve specific problems�many of which because of experience or skill level, or different tasks that our software is required to effectuate do not encounter. Instead I review the board and look at each and every question and answer posted, not just for the issue, but rather to glean experience from the questioners and answerers for how they formulate goals, why they use one method over another and most importantly which method best achieves cost effective efficiency. I for one, have found and learned a great deal from this review not only by the way,from experienced programmers, but by novice as well.

                      I have learned in my many years of helping to produce high volume customer service operations software that while there are many methods to achieve goals; there is are indeed right and wrong ways. And good and bad ways. And ways that enables a company to grow by doing more with less�especially less operations staff.

                      These ways must be taught or gleaned from failure or by the gradual process of actually creating software that does not just work, but accomplishes what software should accomplish.

                      I have also learned that often times operations staff request certain functions because they do not have well
                      designed programs and screen layouts that let them accomplish their tasks in a competent and quick manner with a minimal degree of failure. Failure both from the prospective of the software, and of the human operator. More times than not, I think you will agree human mistakes can readily been prevented by capable software. I have seen
                      software engineers present what they consider fully completed programs only to be laughed at by operations staff.

                      In the instant case, it is obvious from the Ron�s last response that his task operators for whatever reason require a preview of the invoice/form to assure that it was done competently. I have found that often times operations staff tell the programmer one thing�I need this�and the programmer just hears that the operations staff needs that. I have learned and continue to learn from this board to successfully translate operational needs to programming excellence. I say translate because there are many reasons WHY operations staff need certain abilities and it is up to the programmer to not just accept at face value the need, but to determine the whys and wherefores. In our system, while we can preview an invoice it is normally only done to look at it on the screen if a customer calls with a question. The software itself prevents almost all mistakes in the invoice creation, with very little actual human decision making involved in the process. And on its final creation screen, all information necessary to finalize and Quality Control the invoice are present without the need to send it to preview. And like Ron, we identify the date that the invoice is actually printed although we date the invoice at the partial creation date which is the date
                      we are notified of task completion and before receipt of our vendor�s invoice. I attach one of our similar invoice screens as a simple example.

                      My attempt to answer Ron tried to provide insight for him--without knowing his experience or skills and others as to some of the questions that should be asked even before time is spent in programming what the programmer believes is the solution to the problem. Determining why the operator truly needs a function is sometimes the most difficult job that a programmer will face. Excuse me for being so presumptuous as to present my experience in these matters.

                      If you have followed my responses and issues on the board, you will know that I have a certain philosophy in both programming, hardware and in operational systems. I rarely give specific code advice but rather theory and analysis advice. There are others far more skilled able to provide
                      code. But there is a great deal more to software than mere code. And please don�t take my responses personally, they are not meant to criticize in any manner whatsoever. The answer to a specific question might enable my team to rethink how we do something, learning not only about the solution but the process. Hopefully others out there that read each question with like hopes. I for one thank you
                      for your time.

                      Good luck

                      Comment


                        #12
                        RE: Print Preview - user controlled

                        You said that twice twice :)

                        Sorry, couldn't resist

                        Good discussion!

                        Tom Lyon

                        Comment

                        Working...
                        X