论文部分内容阅读
问:有些单位购置了一些彩色打印机如Brother1900、NEC6300等,在用它们打印表格时,会遇到横线压缩、而表间格不压缩的现象,影响原有软件的使用。请问这是什么原因?怎样解决?答:分析原因是现在制表符多采用汉字双字节制表符,而原来应用程序所用的打印机控制码横向字符间距压缩代码:CHR$(27);“S”;CHR$(0)CHR$(0)在彩色打印机中为汉字全角字间距压缩代码。所以只有汉字间距得到压缩,而有西文字符的间格没能压缩。我试了多种打印机的控制码都未能解决问题。后来发现手册中提供的汉字半角字间距控制代码:CHR$(27);“T”;CHR$(0);CHR$(0)只能压缩半角字符间距,而汉字间距不压缩打不出实线来,原表还是不能正常打印。最后我试着将全角字间距控制码与半角字间距控制码合起来应用解决了上述问题。
Q: Some units purchased a number of color printers such as Brother1900, NEC6300 and so on. When they print forms, they will encounter horizontal line compression, but the table is not compressed, which will affect the use of the original software. What is the reason? How to solve? A: The reason is that the analysis of the tabulation characters are used more double-byte tab, and the original application of the printer control code horizontal character spacing compression code: CHR $ (27); “S”; CHR $ (0) CHR $ (0) Compresses the code for full-width Chinese characters in a color printer. So only the spacing of Chinese characters is compressed, but there is no compression between Western characters. I tried a variety of printer control code failed to solve the problem. Later found in the manual provided in the Chinese characters half-width control code: CHR $ (27); “T ”; CHR $ (0); CHR $ (0) can only be compressed half-width character spacing, A solid line, the original table or not normal print. Finally, I tried to solve the above problem by using the full-width word space control code together with the half-width word space control code.