I couldn't use fonts in line by line printing in vb on dot matrix printer.

Hello Veena ji, I read your post on line by line printing in vb on dot matix printer. I tried it out. But madam, I got some problem with fonts. Actually, I am using baraha telugu fonts. And in that way you suggested, I couldnt print data in that fonts. Could you please help me in this regarding. Thank you.

Be sure you spelled the names of the fonts correctly and that they are available on that printer. You can look in the Printer.Fonts collection to see what's in there. See this example to look at the available fonts:

Thanks for your help, sir. But, my problem is I can print the same fonts on a sheet of paper like 'legal' and using the code I have, I can print data on the continuous paper. Actually, my requirement is to print the local language fonts on a continuous paper. Could you please help me in this regarding... Thank you sir.

Could you tell us about the printer, name, make\model version of software,
how attached to computer, impact, ink, laser, serial, parallel, USB,
firewire, networked, printer language if applicable (postscript, PCL6)?

Sounds like you may be using ye olde dot-matrix (or equivalent high-speed) printer.

Perhaps you could get better assistance if you specified the manufacturer and model of the printer that you have so that folks could do a little research to see what code pages and fonts it has built in.

Although I have not done such in a longgggg time, if you are using a dot-matrix or equivalent printer, it might be capable of dot-addressable printing which means anything can be printed with a little work.

(At least, I used 'em to print barcodes that way decades ago.)

A little work, in this case, meaning building a lookup table of what dots it takes to construct your local characters and assembling output from that.

Maybe it would help to experiment with different fonts that come standard with Windows. If they work properly, then you may be assigning the font correct and the problem may lie in the font itself. Have you tried using the font in Word to see if numbers appear properly? I know there are specialty fonts that don't even have numbers built into them.

Thanks for your reply and Sorry for delay sir, I'm using a serial dot-matrix of TVS company one. As I stated before I can print the same fonts on a single sheet of paper. And using the code I have submitted, I can print the default font on the continuous paper. But, I need a solution to print my desired font on the continuous paper. Could you please help me in this regarding. If you send me some code or full code, it will be very helpfull to me. And sir, can we not develop a software which can print our desired font on every dot-matrix printer?

To your last question the answer is no. There is not enough standardization
among the manufacturers. Consider the printers on your office network, they
each model requires that a printer driver be installed in Windows. In fact
do you have the driver for this printer installed? You still have not told
me the model number TVS makes a lot of printers - am I supposed to guess or
read your mind? You haven't even told me if it is a POS printer. Have you
visited their website? They have a downloads link. How far away are you
from Chennai, India where they are headquartered? Do you have the manual
for this mysterious printer that is so secret you cannot tell me the model
number after having been specifically asked? Have you made any effort at
all to solve your own problem? It took me less then 3 minutes to find the
TVS website and find the downloads link, the telephone number, where they
are located, and get a list of dot matrix printers that they make. What of
course I cannot do is download or look for the manual for your printer
since you did not bother to tell me which model printer you have. Please
consider helping me to help you I am only 12,000 miles (about 19,000
Kilometers) from India so I am going to need some help from you in order to
help you.

"And sir, can we not develop a software which can print our desired font on every dot-matrix printer?"

In the Windows environment, the answer is "mostly yes." If your printer comes with a Windows driver, and if it supports pixel graphics, then using GDI will produce the same results (within the limits of the printer's resolution) on any printer.

If your fonts are Windows fonts, you should be able to use them in GDI calls to generate text on output, whether on individual pages or continuous forms.

Sorry sir, my printer model number is MSP 245, made by TVS Electronics. And yes, I have installed my printer driver for windows-xp on my pc. And I dont know what is POS printer. And thanks for your great interest to helping me.

As I stated before I printed the baraha fonts on a single sheet of paper, but on the continuous paper after printing the data, printer doesnot stop. It feeds a lot of paper. so I need some help to print baraha fonts or my desired fonts on continuous paper. I tried to type the same fonts in MS-WORD, and they appered correcly in WORD. And since MS-WORD doesn't sopport printing on a continuous paper, I didnot try to print that fonts from MS-WORD.

At Its heart, this is a nice, old-fashioned issue of printer control. (And it takes me back to my FORTRAN days!) If you are printing line-by-line from your software, you are not building up a page image as so much Windows software does. There are therefore two essentials - (1) you must keep track of where you are on the current page, so that you can page feed when you need to and (2) you need to tell the printer - from your program - when to stop.

As you are not sending a file to a print spooler (which incorporates that process) you need to tell the printer - from your programme - to stop. Traditionally, this was by sending a control-Z character, but you will need to check for your specific printer, as I don't know what engine and control character set it uses.