Results 1 to 3 of 3

Thread: Print Command

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    41

    Print Command

    Hey guys, I am creating a combobox with a bunch of inputs. I need to this go to the MENU (that I created in design mode) and select print so I can print our the inputs.

    how do I do that?

    File-> Print... and then i need it to print out the results from the program i made. Not the form but the inputs i put in the combo box

  2. #2
    Addicted Member Crushinator's Avatar
    Join Date
    Jan 2006
    Location
    The Dark Side of the Moon, MD
    Posts
    179

    Re: Print Command

    Printing can become complex sometimes. I would suggest you do a search on VBF or google concerning printing to get some information. Then if you still have questions you could ask a much more specific question.
    Using Framework 2.0, VB.Net 2005.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Print Command

    There's a printing example in the 2003 101 Samples. If you look at the code without understanding the principles then it can seem complex, but it isn't really. You create a PrintDocument, you set any parameters required for the printing process, you call the PrintDocument's Print method, you handle its PrintPage event and use GDI+ to print whatever you want wherever you want. It helps to have a little understanding of GDI+, so a bit of reading on the Graphics class is in order too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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