“其他”ntp文档(HP / Epson打印)

直到今天下午,我只知道ntp作为networking时间协议。 但是安装在我们的Windows 2008服务器上是一个不同的ntp,如下所示ntp -?

我正在寻找上面的文档,并超出了帮助。 我想发送一个双面打印命令。

任何想法或文件的指针将不胜感激。 例如,如果您将“ -@作为第一个选项,我们的MUNIS打印将使用这些文件。 我想知道这些命令是什么。 它们不是特定于MUNIS的。 它们是打印机的特定命令。 我在这篇文章的最后添加了一个示例文件。

 C:\Windows\system32>ntp -? v1.09 Usage: piped_data | ntp.exe -dPrintDevice <options> <InputFile> (Epson) (Default) -@ <options file>: File containing (these) option settings: -d <printer> : Name of printer, ex. '\\svr\hplaser' : -r <filename> : Redirect output to file (PCL format) : -n <# copies> : Number of copies : 1 -o <orientation> : P=Portrait L=Landscape : P -l <lpp> : Lines per page : 66 -i <lpi> : * Lines per inch : 6 -v <VMI> : Vertical Motion Index : 7.2 -m <top margin> : Top margin : -z <point size> : Point Size (font height) : 12 -s <spacing> : * 0=Fixed 1=Proportional : 0 -p <pitch> : * Character per Inch : 10 -e <left margin> : * Left margin : -b <bin> : 0=Current 1=Main 2=Manual 5=Lg tray : 0 -t <typeface> : 0=Line Ptr 3=Courier 4101=TimesRoman : 3 -y <sym set> : 8U=Roman-8 0B=Line Draw 0O=OCR-A : 8U -w <stroke wt> : * 0=Medium 3=Bold : 0 -u <setup string>: * Override built-in setup, ex. '\033E' : -f : * Append FormFeed (eject) at document end: -q : * Debug flag, shows escape codes on scrn : -x <emulation> : H=HP Laser, E=Epson FX, R=Raw mode : H Default emulation is HP PCL-5. Use '-x E' for Epson FX. Options file format (-@ flag): Options file settings OVERRIDE the same option on command line. Enter only 1 option per line. Any line not starting with '-' or '/' is ignored (comment). Examples: *--- Using pipe, landscape, 132 col, 66 lpp, to hp4. dir | ntp -d hp4 -l 66 -v 5.45 -p 13 -o L *--- Same as above, only using options file with 1 option per line. dir | ntp -@ hp4land.ntp *--- Using file, portrait, 80 col, 66 lpp, to \\server\hp4. ntp -d \\server\hp4 myrpt.txt A space after flag is not required, -p10 or -p 10 are both ok. 

ls.ntp与-@ <options file>

 # LS.NTP # NTP.exe options file to setup for 'ls' mode # Set landscape mode # Set pitch condensed landscape mode 13.0 # Set VMI landscape mode 15.45 # Set Left Margin to 3 -o L -p 13.0 -v 5.45 -e 3 

鉴于惠普和爱普生在文档中提到,我无法确定本地安装的ntp.exe是否严格是供应商的创build或惠普公用事业的一部分。

它似乎是Windows NT打印服务器的远程打印队列控制CLI。 以下是从1996年起在雅虎集团中提到的: http : //tech.groups.yahoo.com/group/lprng/message/1800

不幸的是,他们没有具体说明它来自哪里,也没有任何文档,但是这可能会增加讨论的清晰度。

PCL5打印机驱动程序

到目前为止,我在所有的方向上search这个ntp.exe从哪里来的死胡同。 但我会做出一个有教养的猜测。

命令行选项,更准确地说是提示, vmistroke wtlpilpp等,都是PCL术语。 此外用-r输出PCL文件,并通过pipe道input,这应该是一个PCL5打印机驱动程序。 它将inputstream格式化为PCL,并将输出发送到具有RAW队列的networking打印机。

这是罕见的,但并不是闻所未闻的,特别是在90年代,这是一个例子: http : //www.artwork.com/support/windows/escape.htm 。

而且它支持爱普生扩展我真的怀疑它来自惠普。 而且它不会与Windows NT 4。

命令行选项

我会跳过明显的一个

-v:垂直运动指数:7.2

垂直运动索引(VMI)命令以1/48英寸为单位指定行之间的距离(光标移动换行的垂直距离)。

 From http://www.devenezia.com/docs/HP/index.html VERTICAL PRINTER AREA DEFAULTS 1.)Portrait Letter (8 1/2 x 11) = 10 inches 2.)Portrait Legal (8 1/2 x 14) = 13 inches 3.)Landscape letter (11 x 8 1/2) = 7.5 inches 4.)Landscape letter (14 x 8 1/2) = 7.5 inches 

示例:在信纸尺寸纸张上指定每页66行,纵向。

  10 inches / 66 lines per page x 48 = 7.27 

-t:0 = Line Ptr 3 = Courier 4101 = TimesRoman:3

打印机带有默认的字体集。 有些还有更多。 每一个喜欢被分配一个数字。 您可以从您的打印机联机菜单中获取字体列表及其编号。

-y:8U = Roman-8 0B = Line Draw 0O = OCR-A:8U

与字体相同,但在这种情况下用于符号

-w:* 0 =中等3 =粗体:0

控制字体/字符是否应该打印“粗”(粗体)或“正常”(中)

-u:*覆盖内置设置,例如。 '\ 033E':

“设置”或“设置string”是用于将目标打印机置于特定操作模式的(原始)PCL和/或PJL命令序列。 例如,PCL序列Esc&lt010select肖像模式,而Esc&l1Sselect双面(长边装订)操作。 (\ 033E复位)。

ls.ntp

这只是一个选项文件。 不要在命令行中input/input所有选项,而是将所有选项放在一个文件中,每行一个选项。

所以

 <something> | ntp.exe -@ LS.NTP <something> 

是相同的

 <something> | ntp.exe -o L -p 13.0 -v 5.45 -e 3 <something> 

参考

  1. http://www.tcmnet.com.br/www_public/downloads/Documentos/Manual%20Impressoras/PCL.pdf
  2. http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13205/bpl13205.pdf
  3. http://www.hpmmsupport.com/MPE%20Manual/5500/B3265090848.16170/18.htm

我发现一些引用ntp.exe MUNIS发行说明 。 我从来没有听说过,我个人认为它来自你的供应商。 如果你还没有search它的string,那么这样做。 与某些供应商的其他文件共享的编译器签名可能足以赋予作者身份。 显然,你可以做的另一件事就是问供应商。

就发送双工命令而言,我怀疑可以使用-u参数来提供包含PCL双工命令的不同的初始化string。 就像是:

 # LS.NTP # NTP.exe options file to setup for 'ls' mode # Set landscape mode # Set pitch condensed landscape mode 13.0 # Set VMI landscape mode 15.45 # Set Left Margin to 3 -o L -p 13.0 -v 5.45 -e 3 -u '\033E\033&l1S' 

string'\033E\033&l1S'是一个PCL复位,然后是'\033E\033&l1S' /双向切换到长边绑定双工。 惠普在他们的网站有一个很好的PCL参考 ,我从这拉了。

ntp.exe是标准MUNIS(产品)安装的一部分,据我所知,它是MUNIS(公司)(现在是Tyler Technologies)的产品。

而不是与ntp.exe打架,我build议升级到MUNIS 9.1或更高版本。 它(正确)支持基于服务器的打印队列,并且可以像在任何其他Windows打印队列上那样在这些队列上设置打印默认值。 从版本9.3开始,您仍然需要保留现有configuration以打印AR收据 – 存在导致它们无法正确打印到基于服务器的打印队列的错误。