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

Can I Bypass the Printer Driver and Send direct?

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

    Can I Bypass the Printer Driver and Send direct?

    Ok, here's the deal:
    Can you output from A5 to the printer & bypass the Printer Driver? Or could you set up a "printer" that has NO driver, but just a port location assigned?
    Now,
    In most cases, the User-input Form & the output format to the printer have no relation except they use the field values from that Input Form.
    I have to be able to print on 4-8 different pre-designed forms all of them using some of the Input Form Field values.
    What I have done prior to A5 is to design a form that will print in all the right places, including some additional calculations on the form itself (mostly "If..then" or "Case.."),
    BUT:
    I use the Internal fonts & printer commands of the printer and bypass the Windows driver.
    For instance, if the form has to be printed in landscape, the global variable Lscape is sent to the printer. That variable is actually placed in the form design at the top of the form as a calculated "field".
    I do this for several reasons:
    1. I send it to a particular printer even if it isn't the User's default printer. Just force the right printer among all the user's Windows choices. The printer is nearly always their local unit vs say, a network Laser across the office. BUT, sometimes , if they are still using a local dot matrix & they want their carbon-copies form printed on it, and a "report" printed to the Office's common Laser, I can do that as well.
    2. Printing is much faster when only the Printer internal commands are used & not graphical output which the pre-designed form never needs.
    3. I can add a great deal of precision by changing line spacing within the form as it prints.
    For instance, I can start the form with LPI-6 (vLpi6), and change to LPI-48 (vLpi48), then back to LPI-24 (vLpi24) to hit the exact needed location on the pre-designed form. (I have no control over the form's design, unfortunately. It's done by the state or other vendors.)
    3. The user only has to have one Input Screen Form, but I can print a whole variety of output forms with full precision from that one screen. It is only printing the current record's data.
    Multi-record printing is to a "report" format with the usual headers, columns, copyright notice, source table notice, time of the output, etc.
    As a further point, when the user chooses to print any of those forms, they can choose "To Screen", "# copies to Printer: {enter}=1". BUT I have a special unmentioned key that can be hit, and the system goes directly into form-design-modify for that form. There I can adjust where needed, close it and continue to print with the adjusted output.

    Now, there may be a whole new way of doing this in A5 that makes my method obsolete. I don't know.
    Any clever ideas are appreciated in advance.
    First Love

    #2
    Re: Can I Bypass the Printer Driver and Send direct?

    Tom:
    What you are saying is intriguing but the only way I could see that done is with VB. That's Marcel Koolnar's department.

    Comment


      #3
      Re: Can I Bypass the Printer Driver and Send direct?

      I have only been able to bypass the Windows drivers by attaching a printer to lpt1 and printing directly to it using basic (FreeBasic in my case). This will allow you to send printer commands such as chr$(27) and such. I did this using a dot matrix printer that printed error messages from a pinging program I wrote to monitor a banks network routers. If I set up the printer via Windows, the windows driver took over no matter what I did and the driver did nasty things like sending form feeds, etc. I don't know if this helps but the basic program was called from a C program, so there should be no problem using it with A5.
      Tommy Thompson
      Thompson Consulting Services
      Beautiful Kentucky Lake, Springville, TN 38256
      [email protected]

      Comment


        #4
        Re: Can I Bypass the Printer Driver and Send direct?

        Originally posted by G Gabriel View Post
        Tom:
        What you are saying is intriguing but the only way I could see that done is with VB. That's Marcel Koolnar's department.
        I plan to install the "Generic"/"Text-Only" Printer-Driver in windows and try that. I don't think it has any formating whatsoever other than a Form-Feed at the end of a page. At least when you print a "Test-Page" it comes out as pure note-pad-like text.
        Also, for this Printer driver, in Properties, you are given the extra Tab of "Printer Commands" ----beginning, ending, and the Fonts Tab to insert the codes you want for Bold/Uline, ..all the generic stuff.
        I'm getting this in Win-2000 & Win-XP Pro. If anyone has Vista, is there a "Generic-Text/Only" Printer Install choice like this?

        So, all I have to do is figure how you choose the Printer you want to use before a form is going to print, say, in an XBasic Function.
        Last edited by SMARTII; 07-23-2007, 07:46 PM.
        First Love

        Comment


          #5
          Re: Can I Bypass the Printer Driver and Send direct?

          That will probably work if you don't mind a form feed when you close the printer. I just wanted to print a line and do a couple of line feeds. Seems like every driver I tried would always put in ff.
          Tommy Thompson
          Thompson Consulting Services
          Beautiful Kentucky Lake, Springville, TN 38256
          [email protected]

          Comment


            #6
            Re: Can I Bypass the Printer Driver and Send direct?

            So, all I have to do is figure how you choose the Printer you want to use before a form is going to print, say, in an XBasic Function.
            Well, that's the easy part:
            you could use
            UI_PRINTERS_GET()

            or
            PRINT_FORM() which will display the print dialog box and then you could choose the printer

            Comment


              #7
              Re: Can I Bypass the Printer Driver and Send direct?

              Oh, here's a neat deal in Win-2000:
              It says the "Data file for this Printer is "TTY.GFD"
              I opened it in notepad and Voila: (the Indents for the Braces are taken out when I posted the content here.)
              Code:
              *%
              *% Copyright (c) 1997 - 1999 Microsoft Corporation
              *% All Rights Reserved.
              *%
              *GPDSpecVersion: "1.0"
              *Include: "stdnames.gpd"
              *ModelName: "Generic / Text Only"
              *GPDFileName: "tty.gpd"
              *GPDFileVersion: "1.0"
              *MasterUnits: PAIR(600, 600)
              *ResourceDLL: "ttyres.dll"
              *PrinterType: TTY
              *EjectPageWithFF?: TRUE
              *CharPosition: BASELINE
              *switch: InputBin
              {
                      *case:   Option3
                      {
                           *EjectPageWithFF?: FALSE
                      }
              }
              
              *Feature: InputBin
              {
                  *rcNameID: =PAPER_SOURCE_DISPLAY
                  *DefaultOption: Option1
                  *Option: Option1
                  {
                      *rcNameID: 262  *% "Cut Sheets"
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.3
                          *CallbackID: 4
                      }
                  }
                  *Option: Option2
                  {
                      *rcNameID: 260  *%  "Continuous Feed - w breaks"
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.3
                          *CallbackID: 4
                      }
                  }
                  *Option: Option3
                  {
                      *rcNameID: 261  *%   "Continuous Feed - no breaks"
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.3
                          *CallbackID: 4
                      }
                  }
              }
              *Feature: Resolution
              {
                  *rcNameID: =RESOLUTION_DISPLAY
                  *ConcealFromUI?: TRUE
                  *DefaultOption: Option1
                  *Option: Option1
                  {
                      *rcNameID: 257
                      *DPI: PAIR(600, 600)
                      *TextDPI: PAIR(600, 600)
                      *SpotDiameter: 100
                      *IgnoreBlock:    *%  switch: Orientation
                      {
                              *case:   LANDSCAPE_CC270
                              {
                                      *DPI: PAIR(6, 120)
                                      *TextDPI: PAIR(6, 120)
                              }
                      }
                  }
              }
              *IgnoreBlock   *% Feature: ColorMode
              {
                      *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
                      *Option: Monochrome
                      {
                              *Name: "monochrome"
                              *Color?: FALSE
                          *DevNumOfPlanes: 1
                          *DevBPP: 1
                          *DrvBPP: 1
              
                          *%  support OEMFilterGraphics instead of
                          *%  OEMImageProcessing since this is a SERIAL printer.
                          *%IPCallbackID: 1
                          *%DevNumOfPlanes: 0
                          *%DevBPP: 0
                      }
              }
              *Feature: PaperSize
              {
                  *rcNameID: =PAPER_SIZE_DISPLAY
                  *DefaultOption: LETTER
                  *Option: LETTER
                  {
                      *rcNameID: =LETTER_DISPLAY
                      *PrintableArea: PAIR(5100, 6600)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: LETTER_EXTRA
                  {
                      *rcNameID: =LETTER_EXTRA_DISPLAY
                      *PrintableArea: PAIR(5700, 7200)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: LEGAL
                  {
                      *rcNameID: =LEGAL_DISPLAY
                      *PrintableArea: PAIR(5100, 8400)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: LEGAL_EXTRA
                  {
                      *rcNameID: =LEGAL_EXTRA_DISPLAY
                      *PrintableArea: PAIR(5700, 9000)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: A3
                  {
                      *rcNameID: =A3_DISPLAY
                      *PrintableArea: PAIR(7010, 9900)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: A4
                  {
                      *rcNameID: =A4_DISPLAY
                      *PrintableArea: PAIR(4960, 7000)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ISO_B4
                  {
                      *rcNameID: =ISO_B4_DISPLAY
                      *PrintableArea: PAIR(5900, 8300)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: B4
                  {
                      *rcNameID: =B4_DISPLAY
                      *PrintableArea: PAIR(6070, 8500)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: B5
                  {
                      *rcNameID: =B5_DISPLAY
                      *PrintableArea: PAIR(4300, 6000)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: LEDGER
                  {
                      *rcNameID: =LEDGER_DISPLAY
                      *PrintableArea: PAIR(10200, 6600)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: TABLOID
                  {
                      *rcNameID: =TABLOID_DISPLAY
                      *PrintableArea: PAIR(6600, 10200)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: TABLOID_EXTRA
                  {
                      *rcNameID: =TABLOID_EXTRA_DISPLAY
                      *PrintableArea: PAIR(7010, 10800)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: FANFOLD_US
                  {
                      *rcNameID: =FANFOLD_US_DISPLAY
                      *PrintableArea: PAIR(8925, 6600)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: FANFOLD_STD_GERMAN
                  {
                      *rcNameID: =FANFOLD_STD_GERMAN_DISPLAY
                      *PageDimensions: PAIR(5100, 7200)
                      *PrintableArea: PAIR(5100, 7200)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: FOLIO
                  {
                      *rcNameID: =FOLIO_DISPLAY
                      *PageDimensions: PAIR(5100, 7800)
                      *PrintableArea: PAIR(5100, 7800)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_DL
                  {
                      *rcNameID: =ENV_DL_DISPLAY
                      *PrintableArea: PAIR(2595, 5100)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_C3
                  {
                      *rcNameID: =ENV_C3_DISPLAY
                      *PrintableArea: PAIR(7655, 10800)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_C4
                  {
                      *rcNameID: =ENV_C4_DISPLAY
                      *PrintableArea: PAIR(5410, 7600)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_C5
                  {
                      *rcNameID: =ENV_C5_DISPLAY
                      *PrintableArea: PAIR(3825, 5400)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_C6
                  {
                      *rcNameID: =ENV_C6_DISPLAY
                      *PrintableArea: PAIR(2690, 3800)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_C65
                  {
                      *rcNameID: =ENV_C65_DISPLAY
                      *PrintableArea: PAIR(2690, 5400)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_B4
                  {
                      *rcNameID: =ENV_B4_DISPLAY
                      *PrintableArea: PAIR(5900, 8300)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_B5
                  {
                      *rcNameID: =ENV_B5_DISPLAY
                      *PrintableArea: PAIR(4155, 5900)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_B6
                  {
                      *rcNameID: =ENV_B6_DISPLAY
                      *PrintableArea: PAIR(4155, 2900)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_ITALY
                  {
                      *rcNameID: =ENV_ITALY_DISPLAY
                      *PrintableArea: PAIR(2595, 5400)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_MONARCH
                  {
                      *rcNameID: =ENV_MONARCH_DISPLAY
                      *PrintableArea: PAIR(2325, 4500)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_PERSONAL
                  {
                      *rcNameID: =ENV_PERSONAL_DISPLAY
                      *PrintableArea: PAIR(2175, 3900)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_9
                  {
                      *rcNameID: =ENV_9_DISPLAY
                      *PrintableArea: PAIR(2325, 5300)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_10
                  {
                      *rcNameID: =ENV_10_DISPLAY
                      *PrintableArea: PAIR(2475, 5700)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_11
                  {
                      *rcNameID: =ENV_11_DISPLAY
                      *PrintableArea: PAIR(2700, 6200)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_12
                  {
                      *rcNameID: =ENV_12_DISPLAY
                      *PrintableArea: PAIR(2850, 6600)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: ENV_14
                  {
                      *rcNameID: =ENV_14_DISPLAY
                      *PrintableArea: PAIR(3000, 6900)
                      *PrintableOrigin: PAIR(0, 0)
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
                  *Option: CUSTOMSIZE
                  {
                      *rcNameID: =USER_DEFINED_SIZE_DISPLAY
                      *MinSize: PAIR(60, 100)
                      *MaxSize: PAIR(32400, 32400)
                      *MaxPrintableWidth: 32400
                      *MinLeftMargin: 0
                      *CenterPrintable?: FALSE
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.2
                          *CallbackID: 3
                      }
                  }
              }
              *Command: CmdStartDoc
              {
                  *Order: DOC_SETUP.1
                  *CallbackID: 1
              
              }
              *Command: CmdEndJob
              {
                  *Order: JOB_FINISH.1
                  *CallbackID: 2
              }
              *RotateCoordinate?: TRUE
              *RotateRaster?: TRUE
              *RotateFont?: TRUE
              *Feature: Orientation
              {
                   *DefaultOption: PORTRAIT
                      *rcNameID: =ORIENTATION_DISPLAY
                  *Option: PORTRAIT
                  {
                      *rcNameID: =PORTRAIT_DISPLAY
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.1
                          *Cmd: ""
                      }
              
                  }
                  *Option: LANDSCAPE_CC270
                  {
                      *rcNameID: =LANDSCAPE_DISPLAY
                      *Command: CmdSelect
                      {
                          *Order: DOC_SETUP.1
                          *Cmd: ""
                      }
                  }
              }
              *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE)
              *DeviceFonts: LIST(1,2,3)
              *CursorXAfterCR: AT_CURSOR_X_ORIGIN
              *YMoveAttributes: LIST(SEND_CR_FIRST,FAVOR_LF)
              *MaxLineSpacing: 100
              *Command: CmdCR : "<0d>"
              *Command: CmdLF : "<0a>"
              *Command: CmdFF : "<0c>"
              *OutputDataFormat: V_BYTE
              *OptimizeLeftBound?: FALSE
              *CursorXAfterSendBlockData: AT_GRXDATA_END
              *CursorYAfterSendBlockData: NO_MOVE
              
              *DefaultFont: 1
              *DefaultCTT: -1
              *Command: CmdBoldOn { *CallbackID: 7 }
              *Command: CmdBoldOff { *CallbackID: 8 }
              *Command: CmdUnderlineOn { *CallbackID: 9 }
              *Command: CmdUnderlineOff { *CallbackID: 10 }
              --------------------------------------------------------
              Now if I can just figure out if that's read "as-is" or if it gets a C-Compile first, then I could make any changes I want to.
              Last edited by AaronBBrown; 07-24-2007, 09:17 AM.
              First Love

              Comment


                #8
                Re: Can I Bypass the Printer Driver and Send direct?

                Originally posted by G Gabriel View Post
                Well, that's the easy part:
                you could use
                UI_PRINTERS_GET()

                or
                PRINT_FORM() which will display the print dialog box and then you could choose the printer
                That's the way I'm use to.... pick anything you want.
                THANK YOU!
                --------------------
                I'm posing all these questions because it makes me either have more confidence that A5 has all the control I need, or makes me cautious.
                The worst thing that could happen is take the plunge, and 2/3's of the way thru a conversion to A5, it leaves me stranded for a needed feature.
                So far, so GOOD!
                Last edited by SMARTII; 07-23-2007, 08:12 PM.
                First Love

                Comment


                  #9
                  Re: Can I Bypass the Printer Driver and Send direct?

                  Open "LPT1:,EMU-TTY" For Output As #LptNum

                  I forgot, you do open it as a TTY (TeleType).
                  Tommy Thompson
                  Thompson Consulting Services
                  Beautiful Kentucky Lake, Springville, TN 38256
                  [email protected]

                  Comment


                    #10
                    Re: Can I Bypass the Printer Driver and Send direct?

                    Originally posted by Tommy Thompson View Post
                    Open "LPT1:,EMU-TTY" For Output As #LptNum

                    I forgot, you do open it as a TTY (TeleType).
                    This is close to what I have done. BUT, if the Printer is USB I don't think it will work.

                    What I use to do was Print->File->PRN (or Lpt1: or Lpt2:)
                    -------------------------
                    BTW:
                    the F-Feed in the generic/Text Only is not really a formFeed at all. It just seems like it.
                    What it is doing is L-Feeding to the end of the Paper size you chose. For Letter, it will LF to 66 lines no matter if your actual print characters ended at line 48.
                    For instance, if you tell it you have an "Envelope DL" it will stop its L-Feeds at 54 and the Laser will not spit out the paper until a time delay takes over in the Printer hardware & forces ejection.
                    (This is soundin too much like old folks havin sex. I'm surry.)
                    First Love

                    Comment


                      #11
                      Re: Can I Bypass the Printer Driver and Send direct?

                      I spent an entire Saturday bound and determine to make a 20 years old dot matrix printer print 1 line and 1 cr. It wasn't absolutely necessary that I even print anything. The program spoke the errors it detected (Clip2Speech) and sent an email to support (Bmail). I couldn't believe I could get a program to talk and send email but not print just one line. Oh well, getting old I guess. Been doing this for 40 years. I really miss the 80 column cards, they were great to write recipes on!
                      Tommy Thompson
                      Thompson Consulting Services
                      Beautiful Kentucky Lake, Springville, TN 38256
                      [email protected]

                      Comment


                        #12
                        Re: Can I Bypass the Printer Driver and Send direct?

                        Originally posted by Tommy Thompson View Post
                        I spent an entire Saturday bound and determine to make a 20 years old dot matrix printer print 1 line and 1 cr. It wasn't absolutely necessary that I even print anything. The program spoke the errors it detected (Clip2Speech) and sent an email to support (Bmail). I couldn't believe I could get a program to talk and send email but not print just one line. Oh well, getting old I guess. Been doing this for 40 years. I really miss the 80 column cards, they were great to write recipes on!

                        I gotta a Pana 3626 sittin beside me & a TwinWriter in the garage (No more Ribbins even on Ebay.)
                        I can do just about anything (and have) with them without any Print Driver.
                        It's gettin that way with the PCL5-6 Lasers as well. I just have never found a way, without the WIN-Driver) to address the USB port they are sometimes attached to.
                        Actually, if I set them as a Network Shared Ptr, and then run the NET Use LPT1: \\server\ptrName Persistent:Yes It may do it. It will work on a Net-Cable connected Ptr.
                        First Love

                        Comment

                        Working...
                        X