CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 1999
    Location
    Sweden
    Posts
    33

    Send Escape as ASCII VAlue to printer

    Hi
    I want to send text to a printer and then an escape sequense to cut the paper.
    I know the devicename of the printer and it can be anywhere at the local net.
    Sending the text is not a problem but cutting is just impossible. It may not be sent as a string but as ascii value 27. Anyone have a suggestion?
    Thanks
    Jen


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Send Escape as ASCII VAlue to printer

    How about

    Printer.Print Chr$(27);


    David Paulson

  3. #3
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Send Escape as ASCII VAlue to printer

    Printer.Enddoc will cut the paper, won't it?


  4. #4
    Join Date
    Oct 1999
    Location
    Sweden
    Posts
    33

    Re: Send Escape as ASCII VAlue to printer

    Hi
    I think Printer.Enddoc only will cut if you have a setting in Windows that set a standard for how large the printing must be. My documents always varies so I can´t use it.
    Thanks
    Jen


  5. #5
    Join Date
    Oct 1999
    Location
    Sweden
    Posts
    33

    Re: Send Escape as ASCII VAlue to printer

    Hi
    No, I can´t use .print because it will send a string and I want to send a value.
    Thanks
    Jen


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

Featured