Announcement

Collapse
No announcement yet.

Lprint Attach error

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

  • Lprint Attach error

    Code:
      LPrint Attach g_Parameters.Prnter                
      if err then
       m$ = g_Parameters.Prnter 'for error msg
         m_Err_Msg '<-- 68 Device Unavailable
      end if
    gives an error 68 yet the same driver name works in Word. It's got me stumped. It's my first foray into using the LPRINT stuff. Before this I just put stuff into a text file and printed from there.
    It's a pretty day. I hope you enjoy it.

    Gösta

    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

  • #2
    >yet the same driver name

    Driver name? Help file (if I read it correctly) says it wants ether printer name or port identification. I'm guessing the compiler does not like whatever is in g_parameters.prnter

    (BTW, why did you drop only ONE vowel in "Prnter". And keep ALL the vowels in "Parameter?" Next guy who has to work on your program will no doubt impugn the legitimacy of your birth).
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      First make sure that this printer supports direction connection and standard ASCII text and any device-specific control codes. Most printers today do not support line printing and you may have to use XPRINT if this is the case.

      See http://www.powerbasic.com/support/he...l/printing.htm

      If this printer does support line printing then make sure you are using the correct printers name as it appears in Windows.
      Sincerely,

      Steve Rossell
      PowerBASIC Staff

      Comment


      • #4
        Originally posted by Michael Mattias View Post
        >yet the same driver name

        Driver name? Help file (if I read it correctly) says it wants ether printer name or port identification. I'm guessing the compiler does not like whatever is in g_parameters.prnter
        Sorry I misled you. I should have said Printer Name (opr whatever the correct term is.)


        (BTW, why did you drop only ONE vowel in "Prnter". And keep ALL the vowels in "Parameter?" Next guy who has to work on your program will no doubt impugn the legitimacy of your birth).
        When one types as slowly as I do, every dropped vowel counts. I trust succeeding cadres of maintenance programmers will have enough skill and advanced training that a dropped vowel will not stymy them when poring over my code..
        It's a pretty day. I hope you enjoy it.

        Gösta

        JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
        LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

        Comment


        • #5
          Originally posted by Steve Rossell View Post
          First make sure that this printer supports direction connection and standard ASCII text and any device-specific control codes. Most printers today do not support line printing and you may have to use XPRINT if this is the case.

          See http://www.powerbasic.com/support/he...l/printing.htm

          If this printer does support line printing then make sure you are using the correct printers name as it appears in Windows.

          Thanks Steve. Using XPrint instead of LPint does the job.

          I was operating under the impression Xprint was for graphics. Last time I did any progam printing myself was with Epson 9 pin dot matrix. {sigh} As I aid what I usually do is put stuff in a txt file and print from there.

          ======================================================
          "Each problem that I solved became a rule
          which served afterwards to solve other problems."
          Rene Descartes (1596-1650), "Discours de la Methode"
          ======================================================
          It's a pretty day. I hope you enjoy it.

          Gösta

          JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
          LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

          Comment

          Working...
          X