I route my output from a windows billing application through a text format. When I try to print this file through the USB port, I am unable to give a direct print. If I save to a file and print the same opening through notepad, the output is in graphic mode printing.
How to directly print a text file through a USB port in high speed draft format from a windows application?

You can use the Printer.Print "some text", or the shellexecuteex API with the print keyword and notepad should handle it for you...

With first suggestion if you do not know how to read and write text files, look up the following in vb's help on index tab...

FreeFile Function
Open Statement
Input Function
Line Input Function
Close Statement


Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.