Results 1 to 6 of 6

Thread: Printing Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    8

    Angry Printing Help!

    I have a multi line text box that acts as a receipt for a booking, and I would like to be able to print this. I have tried all manner of things, but haven't managed anything. I have no code to work from, as everything I have tried has failed any help would be appreciated, thanks!
    NB. Using the PowerPacks on VB is the better option, but I haven't got there with it yet

  2. #2
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: Printing Help!

    Post what you have tried so far....

    PowerPacks is simple way of printing an image of a form

    http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    8

    Re: Printing Help!

    I havent got anything left that is the thing... Thats why I need the help

  4. #4
    Frenzied Member
    Join Date
    Aug 2009
    Location
    Los Angeles
    Posts
    1,335

    Re: Printing Help!

    Then re start what you did.

    There are numerous examples for what you want to do, just google

    here is one that should get you going

    http://vbcity.com/forums/t/157103.aspx

  5. #5
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,757

    Re: Printing Help!

    to print directly from vb, you need to add a PrintDocument control to your form and call its print method. In the print method handler (double on the printDocument control on the form to open it) you will use gdi techniques to draw what you what to the printer.
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  6. #6
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Printing Help!

    Make yourself a copy of the RichTextBoxPrintCtrl and your printing worries are over. It's what all the cool kids do!
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

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