WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Printing Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Controlling character pitch of a printer

Keywords: 	  Controlling character pitch printer

Question:

I need to print text files through WINBATCH that require 132 characters per line. I am copying the print file to a .TXT so that it becomes associated with notepad.exe. Sadly the physical print is coming out 80 column and therefore wrapping around which makes it unreadable.

Is there a way of either control the CPI of the print or an alternative method altogether ?

Answer:

Well. Depends. How many computers does this have to work on? What kind of printer? Local attach or network.

1) With a locally attached printer and this this is the only machine it has to run on...

2) Try FileCopy the file to the printer. e.g. FileCopy("myfile.txt","LPT1",0)

and see if that works.

If it does, find the character codes to control the printer (see manufacturers web site) and put the codes in a file (tricky) append the two files together into a third file e.g.

FileCOpy("codes.txt","output.txt",0)
FileAppend(myfile.txt","output.txt)
FileCopy("output.txt","lpt1",0)
3) In newer versions of windows you can select the font notepad is to use. You might select a small font and maybe landscape and see if that works. Or use some other program (wordpad) where you have better font control.
Article ID:   W15271
File Created: 2002:09:05:13:50:56
Last Updated: 2002:09:05:13:50:56