Ok, this is a really simple problem, but I'll be damned if I can get it to work...
OK, I have a text file, called "am.txt" that I want to print from a VB program. I don't want to open it, I just want to print it to the default windows printer.
I've created a form with a Common Dialog box control, and a button. In the click event of the button is the following code:
commondialog1.action=5 '//The print dialog
Now, this displays the print dialog, but when I click on OK, nothing happens.
What have I missed?
p.s The default printer is a networked HP LaserJet 5N.