Sam, You don't say what it is that you are trying to do here..... You print to a dot matrix printer the same way you print to any printer under windows. So I am assuming that there is something that you are wanting to do that is not supported by windows. If you want to do something 'similar to msdos' you could simply write your output to a file and copy the file to LPT1: VB will support the syntax, and the file will print, but you sacrifice any sort of printer error checking in the process e.g. if the printer is offline, your output will simply vanish.
If you are trying to use printer specific features, such as escape codes etc, the following knowledgebase articles might be of assistance. The second article is the more up to date, but the sample code is C++ so you will have to do some conversions on the fly http://support.microsoft.com/kb/q96795/ http://support.microsoft.com/kb/138594/EN-US/ Matt ----- Original Message ----- From: "Sam Chawla" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, May 02, 2005 5:55 PM Subject: [vbhelp] Printing to a Dot Matrix Printer from Windows - VB6 > Hi, > Could any one help me with the code/ process to print to a a dot Matrix printer (small font) similar to printing from MS Dos. > > Thanxs, > Sam > > > > Sameer Chawla > 5 Pratt Road > Barrie L4M 2K9 > ON Canada > Home Phone : (705) 739 3509 > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > [Non-text portions of this message have been removed] > > > > > > > > '// ======================================================= > Rules : http://ReliableAnswers.com/List/Rules.asp > Home : http://groups.yahoo.com/group/vbHelp/ > ======================================================= > Post : [email protected] > Join : [EMAIL PROTECTED] > Leave : [EMAIL PROTECTED] > '// ======================================================= > > Yahoo! Groups Links > > > > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 29-Apr-2005 > > '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [email protected] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
