Reply

Join Date: May 2008
Posts: 9
Reputation: dileepkumars1 is an unknown quantity at this point 
Solved Threads: 0
dileepkumars1 dileepkumars1 is offline Offline
Newbie Poster

USB Printing

 
0
  #1
Jun 29th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 811
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 147
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: USB Printing

 
0
  #2
Jun 29th, 2009
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
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC