Results 1 to 4 of 4

Thread: My printer just churns out blank paper!!

  1. #1
    Guest

    Unhappy

    I've got a large string which i'm trying to print (ie, send to the printer) called printstr.

    On Error GoTo err1
    CommonDialog1.PrinterDefault = True
    CommonDialog1.CancelError = True
    CommonDialog1.ShowPrinter

    Printer.NewPage
    Printer.Font = "Arial"
    Printer.ColorMode = 1

    Print printstr

    Printer.EndDoc
    Printer.KillDoc

    This just send blank pages out the printer... does anyone have a suggestion?

    Is there a function to call the system print command on a text file?

    Cheers
    Mafro

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Try using Printer.Print instead of just Print, Just using Print would send the text to the form.

  3. #3
    Guest

    Thumbs down

    I've tried that - it still doesn't happen though..

    Printer.NewPage
    Printer.Font = "Arial"
    Printer.ColorMode = 1

    Printer.Print printstr

    Printer.EndDoc
    Printer.KillDoc

    Mafro

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    593

    Exclamation

    You don't want that Printer.Killdoc line on the end. Quote from VB's online manual:

    Immediately terminates the current print job.
    Not really what you want to do!

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