Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing with Visual Basic 6

Status
Not open for further replies.

rpk2006

Technical User
Apr 24, 2002
225
IN
I have few questions regarding Printing Reports through Visual Basic 6.

(1) I want small sized bills to be printed, sometimes continuously,
in such a way, as happens in all applications, that the page (bill)
printed scrolls up. The text should not be printed on the
perforation of the pages. The printer should automatically
scroll.

I have created the bill using Visual Basic 6 DataReport Designer.
But the problem is that the report generated by DataReport
is slow on Dot-Matrix printer, and also I am not sure whether
the bills will automatically scroll.

If I use Printer.SystemObject, then the problem of Tab Settings
arise. I have to manually test each heading where it appears.

Please suggest how to scroll pages automatically with the above
both ways.

(2) Which method is more reliable? Some say that Printer.SystemObject
method gives more control and speed. Also, the chance of DataReport
errors are more.
Which printer method to use when and why?

(3) If I transfer the printable text into TEXT file and issue the
following DOS command:
Type ABC.Txt > PRN
This is fast but again the problem of scrolling.

Please help me.
 
I have done something similar using Printer methods and properties.

Using printer.print to output the line and checking printer.currenty to see how far down the page you are. You can then get away with printing a couple of blank lines to skip the perforations.

Ideally, the best way to do perforation skip would be for your printer to know how big the paper is and do a form feed (printer.newpage) after each bill.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top