Results 1 to 4 of 4

Thread: Pcl

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    Post Pcl

    How can i use PCL in a VB Program? i need to change the paper tray using PCL......thanks in advance


    Patrick

  2. #2
    New Member
    Join Date
    Aug 2001
    Location
    Chelmsford
    Posts
    2
    Isn't it easier to use the "printer" object within VB?
    You can allegedly access and change printer properties through this object (not that I have tried!)

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4
    it would be easier but i would like to use PCL

  4. #4
    jim mcnamara
    Guest
    This selects the alternate tray. Using VB.

    Code:
    Private Const PASSTHROUGH = 19
    Declare Function Escape Lib "gdi32" _
        (ByVal hdc As Long, ByVal nEscape As Long, ByVal nCount As Long, _
         ByVal lpInData As String, lpOutData As Any) As Long
    
    Sub AltTray()
         Dim retval As Long
         Dim str_alt As String
        str_alt = Chr(27) & "&l#H4"
        retval = Escape(Printer.hdc, PASSTHROUGH, Len(str_alt), _
                str_alt, 0&)
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width