Simple printing from a text file
-
Hello All! Seems pretty simple, but this is my first attempt at printing. There are alot of options when it comes to printing. All I need to do is click on a button, and have that event print a pre-selected text file. Just a file created in notepad, 4 lines of text. I don't need to preview it, and just use the default printer. I don't need the user to set up any settings, just hit the print button, and that text file will get printed. What is the easiest way to accomplish this? I'm working in VS 2003, vb.net. Thanks! Rudy
-
Hello All! Seems pretty simple, but this is my first attempt at printing. There are alot of options when it comes to printing. All I need to do is click on a button, and have that event print a pre-selected text file. Just a file created in notepad, 4 lines of text. I don't need to preview it, and just use the default printer. I don't need the user to set up any settings, just hit the print button, and that text file will get printed. What is the easiest way to accomplish this? I'm working in VS 2003, vb.net. Thanks! Rudy
you can use 'print document' component from the toolbox and handle the printing event for that component. something like using grapics.drawstring function