mjreine
asked on
printing in vb.net - Need to have user select printer, then print hello on a page
Hello,
Here's what im trying to do.. I appreciate all help on this...
I have a taskbar tray icon that will periodically pull from a database and print off whatever needs to be printed.. I have the taskbar app already made. If the user right clicks on it, it will allow you to select a printer. Im trying to figure out first how to use the print dialog box properly so it will show the select a printer box to the user and let them select what printer they want.
Once they have a printer selected, I need another button or something so that when they click it, it will print off the data that I have stored in an array. It is sales related data. So I need:
1. To figure out how to show the select a printer dialog.
2. To actually print a few lines on to the selected printer from within vb.net
Thanks!
-Matt
Here's what im trying to do.. I appreciate all help on this...
I have a taskbar tray icon that will periodically pull from a database and print off whatever needs to be printed.. I have the taskbar app already made. If the user right clicks on it, it will allow you to select a printer. Im trying to figure out first how to use the print dialog box properly so it will show the select a printer box to the user and let them select what printer they want.
Once they have a printer selected, I need another button or something so that when they click it, it will print off the data that I have stored in an array. It is sales related data. So I need:
1. To figure out how to show the select a printer dialog.
2. To actually print a few lines on to the selected printer from within vb.net
Thanks!
-Matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The code for the Print Preview Dialog would be identicle to that of the PrintDialog