KGSREENI
January 24th, 2000, 12:47 AM
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
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