hemenkap Posted January 22, 2003 Posted January 22, 2003 hello, we are migrating from one legacy dos application to a win32 application.. the problem is printing reports, mnajority of our clients use dotmatrix printers.. in dos application the printing is very as it prints character by character.. but in win32 appplication the printing is very slow as the printing is done pixel by pixel..so many of our clients wont prefer that as they generally print bills and stuff like that is there any way by which we can print with high speed on a dotmatrix printer from win32 application we are using microsoft visual basic .net to develop the front end Quote
*Gurus* divil Posted January 22, 2003 *Gurus* Posted January 22, 2003 There is no way with the classes that are provided to you by default in the framework. You might be able to find a parallel I/O class floating around somewhere, which would give you what you need with regards to the dot matrix printers. The other alternative is to develop a COM component with VB6 that opens the LPT port for output and writes strings to it, and use that from .NET. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
TechnoTone Posted January 23, 2003 Posted January 23, 2003 Another possibility - though I haven't investigated to see if it's feasible - would be to create a text file with the data you want to print, then send that file to the desired LPT port. This used to be possible with older windows OS's with a simple Copy command ("copy myfile.txt lpt1:"). Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
hemenkap Posted January 27, 2003 Author Posted January 27, 2003 Thank for your help. I will surely try it out i have never made any com objects , this sounds intresting i will surely try some R&D in this field Thank you once again Hemen Quote
domino Posted February 11, 2003 Posted February 11, 2003 I have the same problem with softs written in PDS basic 7.1 which are migrating in vb.net. Many clients use a dotmatrix printer for printing invoices ... I don't understand that : these softs work very well in a dos windows under windows XP pro. But win XP pro use windows XP drivers for the printer (e.g. Ibm proprinter II). Is it possible in vb.net to use also these drivers ? I think it would be possible with api but i don't know. Create a text file then edit it with "copy text.txt >lpt1" is not a valid solution for users. Thanks for your help. Quote
Zoltar747 Posted May 20, 2003 Posted May 20, 2003 Text Only/Generic Printer Driver If you are printing plan text without any need for formating you can try this. Install a generic/text only driver for your dot matrix printer. Start>>Settings>>Printers Add New Printer Select LPT1 (or the port the printer is connected to) When you get to the screen to select manf. and driver select Generic under manf. and Text Only under driver/model. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.