|
-
Apr 29th, 2002, 06:27 AM
#1
Thread Starter
Lively Member
Using Printer Object
Hi all,
How can i use a printer object to print the following lines?
Quantity: 34 * Price: 423423 Sub-total: 14396382
Quantity: 1 * Price: 1 Sub-total: 1
Quantity: 2 * Price: 1 Sub-total: 2
The length of numeric value of quantity, price and sub-total is dynamic. They are stored in variables.
The spacing between quantity and price for the three lines should be the same. The same for Price and Sub-total.
Thanks!
-
Apr 29th, 2002, 06:34 AM
#2
Lively Member
This will work.
=================
Dim sStr As String
sStr = "Quantity: " & CStr(Integer) & " * Price: " & _
CStr(AnotherInteger) & " Sub-total: " CStr(LongThisTime)
Printer.FontSize = 11
Printer.FontBold = True
Printer.FontSize = 7
Printer.FontBold = False
Printer.Print sStr
Api Sit: http://users.chariot.net.au/~akia/Home.htm
-
Apr 29th, 2002, 06:47 AM
#3
Thread Starter
Lively Member
Thanks Akia.
But how can i ensure the spacing between Quantity & Price and Price & Sub-total are the same for the three lines?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|