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

Network printing trouble

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

    Network printing trouble

    I recently upgraded to Version 5, with 1 full copy of A5v5 and a 10-user runtime package on my peer-to-peer network. I'm running Win2000 on the computer on which the full copy of A5 and the application resides. The rest of the computers are running WinXP and are network optimized so a shadow is on each computers' hard drive.

    I have various reports, labels, etc. set to print to specific printers which are attached to the various computers. These all print fine from my Win2000 computer. However, when I network optimize a computer on the network called "ABS800", which has the label printers attached to it, I can no longer print labels. I get this error message:

    Trapped error in action command: [8]
    Command: Inline XBasic
    Error: Driver for \\ABS800\Okidata ML 320 (Epson) not found.

    I actually had this problem in v4.5 also. I would "solve" it by going into each label's properties on the shadow database on ABS800 and changing the printer to the correct one. (They were always messed up after network optimization.)

    My problem is that I purchased runtime to save the costs of buying a full copy of A5 for every user, and can no longer change the label properties on that computer. Is there any way to fix this without buying full copies for every user?

    I had posted a message about this before, and was told that v5 would have a method to change the printer with XBasic. (See http://msgboard.alphasoftware.com/alphaphorum/read.php3?sortby=lastreply&direction=desc&num=4&id=50418&thread=50358#MSG50358 ) Has this feature been included with v5? If so, where can I learn how to use it?

    Any help will be appreciated.

    Nathan

    #2
    RE: Network printing trouble

    Nathan,
    You need to look in the xbasic reference manual for Report.printer_override(). The way that I plan to implement this is to create a printer definition table and load it with the printer info for each of my work stations you will need to have the machine name in the table too. A sample might be:

    Machine_name_________character_________25
    Label_printer_1______character________100 this might need to be bigger
    Label_printer_2______character________100
    Statement_printer____character________100
    Invoice_printer______character________100

    and so on for all the printers your application will need

    When you open your database you would find the record with the correct machine name and read the values from the printer table and load them into global variables. All that is left is to change the scripts that print your layouts to included the Report.printer_override() function:

    Dim global Vlabel_printer1 as c

    ' over ride the current printer
    old_printer = Report.printer_override(Vlabel_printer1)

    ' the code to print your label

    ' reset the printer back the to way it was before we started
    Report.printer_override(old_printer)


    Two other functions that will help are:

    ui_printers_get() & API_GetMachineName()


    Allen J Klimeck

    Comment


      #3
      RE: Network printing trouble

      you sould look at action scripting. the action for printing a report allows you to define printer overrides. it is very easy to do. you can then look at the code that the genie generates

      Comment


        #4
        RE: Network printing trouble

        Selwyn,

        Thanks for your input. I tried your suggestion, but I get the same error. It looks like the printer override function does not allow you to dynamically change the printer path.

        The computer that I'm designing the application in sees the printer path as "\\ABS800\Okidata ML 320 (Epson)". However, the computer that the printer is attached to sees it as "Okidata ML 320 (Epson) on LPT2:". Thus I get the error mentioned above when I try to print from ABS800.

        It looks like I will need to try Allen's suggestions above, but that looks like a very cumbersome way to deal with a problem that probably many have to deal with.

        Nathan

        Comment


          #5
          Network Optimization Does Cause Some Printing Problems.

          I am having the same problem with a particular form that goes to a specified printer. When I run network optimization for each workstation, all print functions for this form work just fine except for the workstation that is attached to the specified printer. I must go the form on this workstation and redefine the specified printer as LPT1. I must to this everytime I run network optimization.

          The other area of printing problems occurs when you select the box the tells the A5V6 to "Only show layouts for current table/set." I select this option to I get the "Print Current Record" choice. The logic works fine until I network optimize it. A workstation running a shadow database gets the error message:

          Print Statement@c:\Documents and Settings\All Users\Documents\A5Seashore\statements 2006.set could not find.

          Of course the set is there just like every other table and set. But to make the print button work I must go to design mode on each networked optimized workstation and tab through the print layout events. I don't change ANYTHING -- just tab through the event. I save the form and voila! -- the print button works just fine.

          I am running full versions of A5V6 on all 5 workstations so I don't have your problem with the runtime version.
          Last edited by debwelch; 03-11-2006, 12:38 PM.

          Comment


            #6
            Take a look at the method I outlined in an article on Learnalpha.com. Using printer_override() in the way I outlined should deal with all network printing issues--though I never print forms myself (just reports and letters). Note however, that printer_overrides schemes do not work with win98.

            Ray

            Comment


              #7
              Thanks Ray

              Ray,

              Thank you for the response. I'll investigate and let you know if I make any progress.

              Deb

              Comment


                #8
                Originally posted by Nathan Zeiset

                The computer that I'm designing the application in sees the printer path as "\\ABS800\Okidata ML 320 (Epson)". However, the computer that the printer is attached to sees it as "Okidata ML 320 (Epson) on LPT2:". Thus I get the error mentioned above when I try to print from ABS800.

                Nathan
                It sounds like the issue is related to how the printer is addressed. The printer is local to the users computer but a network printer to everyone else. Have you tried sharing the printer (I assume you have because you can print to it)? If so try adding a new network printer to the local workstation and select its own shared printer. That should make the local machine address it in the same way other computer do.

                Scott
                Scott Peterson, MCSE, MCP+I, CLP
                S/P Systems
                Cincinnati, OH

                Comment


                  #9
                  Printer Address

                  I have tried to make this printer a network printer but Windows XP Pro keeps appending LPT1 to the printer definition on the local workstation.

                  I will try adding a second printer to the workstation and see what the results are.

                  Thanks.

                  Deb

                  Comment


                    #10
                    I tried adding a second printer to the workstation and called it the same name as the printer referenced by another workstation on the network. It doesn't work. Can't even print a test page. No matter what I call the printer, Windows XP adds "on LPT1".

                    Guess I'll just live with updating the printer definition of the form for this particular workstation whenever I network optimize. Not a big deal because I only have one item (of many that are printed) that uses the "specify printer" feature.

                    Hope this saves someone time and trouble. Deb

                    Comment

                    Working...
                    X