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 (Printer problem when using custom forms)Next Topic (Printing in Draft Mode on a Dot Matrix Printer) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Fast Printing using DOS Mode
Poster Message
nitishprabhu
Level: Trainee

Registered: 12-02-2005
Posts: 2

icon Fast Printing using DOS Mode

Database : MS Access 97
Front End : VB 6
OS           : Windows 98 SE
Printers    : Epson 800, TVSE 255
Requirement : Want to print Database content in DOS Mode printing  as INVOICE Format

                    Name Of the Firm
                           INVOICE
----------------------------------------------------------
Sl No     Description         Qty    Price        Amount
-----------------------------------------------------------
1.          Content from database     xxx      xxx




-----------------------------------------------------------
Total                                                       xxx
-----------------------------------------------------------

Initiative to do this :
1. Opened one Text file  "A.txt " using File i/o Open ..command
2. Write the content of Database in that file.
3. Using a Batch file which contains the code as follows
   Type A.txt > PRN Execute the batch file.

Problem faced :
I am not able to format the number in decimal number format.
I wanted to print as follows            But it comes as follows
       12.25                                             12.25
         1.50                                             1.5
     120.50                                             120.50


Please help me.



____________________________
Nitish S. Prabhu

12-02-2005 at 03:49 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Fast Printing using DOS Mode

Check this topic

[Edited by Goran on 12-02-2005 at 01:54 PM GMT]

____________________________
If you find the answer helpful, please mark this topic as solved.

12-02-2005 at 12:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
mohamedali
Level: Trainee

Registered: 14-04-2005
Posts: 1
icon Re: Fast Printing using DOS Mode

quote:
nitishprabhu wrote:
Database : MS Access 97
Front End : VB 6
OS           : Windows 98 SE
Printers    : Epson 800, TVSE 255
Requirement : Want to print Database content in DOS Mode printing  as INVOICE Format

                    Name Of the Firm
                           INVOICE
----------------------------------------------------------
Sl No     Description         Qty    Price        Amount
-----------------------------------------------------------
1.          Content from database     xxx      xxx




-----------------------------------------------------------
Total                                                       xxx
-----------------------------------------------------------

Initiative to do this :
1. Opened one Text file  "A.txt " using File i/o Open ..command
2. Write the content of Database in that file.
3. Using a Batch file which contains the code as follows
   Type A.txt > PRN Execute the batch file.

Problem faced :
I am not able to format the number in decimal number format.
I wanted to print as follows            But it comes as follows
       12.25                                             12.25
         1.50                                             1.5
     120.50                                             120.50


Please help me.



14-04-2005 at 04:45 PM
View Profile Send Email to User Show All Posts | Quote Reply
KIKI GUNAWAN
Level: Trainee

Registered: 16-08-2005
Posts: 3
icon Re: Fast Printing using DOS Mode

try this



do while not .eof
  printer.print tab(10); string; tab(len(string)-30); tab(len(number)-2)
.movenext
loop
printer.enddoc

16-08-2005 at 12:06 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Fast Printing using DOS Mode
Previous Topic (Printer problem when using custom forms)Next Topic (Printing in Draft Mode on a Dot Matrix Printer) 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