Results 1 to 5 of 5

Thread: Print

  1. #1

    Thread Starter
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277

    Smile Print

    I need to print something through VB.
    I need to format what I printing too…
    Can someone provide me with a sample code?

  2. #2
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    What's so hard about looking for it yourself??

    at a search engine.

    like google. or msn. if you've ever heard of that.
    www.mindset1.com
    Religious Debate Forums

  3. #3

    Thread Starter
    Hyperactive Member Janaka's Avatar
    Join Date
    Nov 2001
    Posts
    277
    I am searching in vbforums too..

  4. #4
    Addicted Member
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    190
    there are many print exemples in this forum
    look at thread numbers; 168610 or 211911 or 175779 and you will find someting about printing.

    enjoy

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    To print text use:

    VB Code:
    1. Private Sub Command1_Click()
    2. CommonDialog1.ShowPrinter
    3. Printer.Print Text1.Text
    4. Printer.EndDoc
    5. End Sub

    To print pictures use:

    VB Code:
    1. Private Sub Command1_Click()
    2. CommonDialog1.ShowPrinter
    3. Printer.PaintPicture picPicture.Image, 0, 0
    4. Printer.EndDoc
    5. End Sub
    Last edited by Nightwalker83; Dec 3rd, 2002 at 02:28 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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