|
-
May 7th, 2005, 11:04 PM
#15
Fanatic Member
Re: Best way to print reports ??
You probably know all this, but just in case -
If you go down the 'use Printer object' path, then you just provide another form (does not need to be MDI), with a Picturebox on it.
When creating your Subs for doing the printing, you pass in the object that the code is to 'print' to.
If you pass in the Picturebox, then you get Print Preview.
If you pass in the Printer, it prints.
Practically all the printing commands are identical (Picturebox or Printer), and the Subs can test which it is sending to, for those few commands that differ.
www.VB-Helper.com has lots of examples.
EDIT Here's one -
http://www.vb-helper.com/howto_print_preview.html
If your graph needs anything special, Rod is very big on graphics stuff, so no doubt his site has what you need.
I too have previously suggested that we get someting going on this site.
Last edited by RobCrombie; May 7th, 2005 at 11:21 PM.
Rob C
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
|