nitishprabhu Level: Trainee
 Registered: 12-02-2005 Posts: 2
|
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
|