borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Different printers in access)Next Topic (word format in \'open \"file.doc\" for output as #1\') New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printing Blues
Poster Message
rpk2006
Level: Protégé

Registered: 05-09-2003
Posts: 6

icon Printing Blues

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.
    

30-09-2004 at 07:20 PM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Printing Blues

Hi,

The dos printing methods are going to be the fastest. You could try including some control characters in your text file.

Linefeed is Control J .. use chr(10)
Vertical Tab is Control K .. use chr(11)
Formfeed is Control L .. use chr(12)
CarriageReturn is Control M .. use chr(13)

Hope it helps

Steve

01-10-2004 at 09:15 AM
View Profile Send Email to User Show All Posts | Quote Reply
rpk2006
Level: Protégé

Registered: 05-09-2003
Posts: 6
icon Re: Printing Blues

I am using Printer.Print method. But my lines look somewhat like this:

Printer.Print "dldkfd;kdjfdkj" & variable 1 & "jkdhfld " & variable 2

Now I want to set the Tab Settings in such a way that it does not disturb the line next to it, since the variables will be placed at run-time.

07-10-2004 at 05:57 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Printing Blues
Previous Topic (Different printers in access)Next Topic (word format in \'open \"file.doc\" for output as #1\') New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder