-
VB Printer
When I use the following algorithm to print a text file on the default printer (n/w or Local ), on some of the models of HP lasterjet some lines are getting missed out. But in some models printout are perfectly OK . Some models ejects blank pages too.
Why is it like this ? Will it improve if I set all properties for the printer object ?
I am using VB 4.0 32 bit Enterprise Edition
**CODE SEGMENT **********
[vbcode]
Open "results.txt" for Input as #12
Set Printer = Printers(0)
while not EOF(12)
Line Input #12, Buffer
Printer.Print Buffer
Wend
close (12)
Printer.NewPage ' release the document
Printer.EndDoc
-
Re: VB Printer
Try it:
Open "results.txt" for Input as #12
While Not EOF(12)
Line Input #12, Buffer
Printer.Print Buffer
Wend
Close
Printer.EndDoc
[email protected]
http://vbcode.webhostme.com/