Results 1 to 3 of 3

Thread: Using Printer Object

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    112

    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!

  2. #2
    Lively Member
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    83
    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    112
    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
  •  



Click Here to Expand Forum to Full Width