|
Answer» I have a PC running windows xp and have been trying to format (change line and character spacing) on files printed on a star micronics dot matrix printer. The CODES aren't CHANGING the spacing, instead they are printed. The codes I'm using are from star's web page. Please show how you are using the codes Also, he should provide the model number and state if it has an an emulation for the old Epson printers. Just looked in and old archive and fun this:
Code: [Select]CHRS Ver 1.0 by J B Palmer CHRS 07 0A = BELL, LINE CHRS 0C = TOP OF FORM CHRS 0F = CONDENSED CHRS 1B 30 = 8 LINES/INCH CHRS 1B 43 21 = 33 LINE FORM CHRS 1B 45 = EMPHASIZED CHRS 1B4408100 = TABS 8 & 16
You don't just print them verbatim, for example "CHRS 07 0A". Those are hexadecimal representations of the bytes you send to the printer. via the serial or parallel port. I used to use QBasic for this. Using 1B 30 for an example:
LPRINT CHR$(27);CHR$(48);"This is 8 lines per inch"
You COULD insert them into eg WordStar and WordPerfect documents using various MEANS.
The printer is a star-micronics SP300. When I pull up the printer properties there is a place to enter Star's control codes and text for the receipt . I got the codes from Star's website. The code to change the line spacing to 7/72" is "1" . When I enter these codes they print and don't change the line spacing. When I asked Star's support for help all they said was to use brackets.Here is the Programmer's manual
http://www.ben.cz/_download/manual/sp300-programming-manual-en.pdf
Here is a link to the directory that has CHRS.COM dos program. It is virus free. http://geek9pm.com/dos/ CHRS.COM sends a string of binary characters to the system printer. It expects hexadecimal to be used on the command tail. So "1" should be 1B 31 Like this: CHRS 1B 31
I hope this is helpful. We used this years ago when using Epsom printers to print forms that would not fit on the paper with the default settings.
|