|
-
Apr 11th, 2000, 09:28 PM
#1
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
-
Apr 11th, 2000, 09:46 PM
#2
Frenzied Member
Try using Printer.Print instead of just Print, Just using Print would send the text to the form.
-
Apr 11th, 2000, 10:18 PM
#3
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
-
Apr 11th, 2000, 11:40 PM
#4
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|