TXT到RTF [英] TXT to RTF

查看:91
本文介绍了TXT到RTF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好, 



目前我工作的公司使用30年历史的软件进行库存管理。现在要从该软件打印,必须从运行该软件的服务器看到打印机;现在问题是我们在不同地点开设了一个办公室,需要
才能访问此服务器。 



太容易了对?服务器2012R2上的繁荣RDS。现在他们需要在本地打印,因此问题。 



所以我们提出的解决方案就是这个,因为他们'能够访问网络驱动器,我们只需将它们打印到网络驱动器上的文本文件中。 



问题出现了这样,在打印文本文件时,格式化就会完全没有了。所以为了解决这个问题,我们制作了一个将TXT转换为RTF文件的.bat。我们遇到的唯一问题是,每当有人打印到文件打印机时,他们必须输入
并手动设置RTF的文本字体才能正确打印。 


是否有可以添加到.BAT的变量来指定RTF文本的字体大小?

解决方案

是否有可以添加到.BAT的变量来指定RTF文本的字体大小? 

不是真正的脚本问题。您需要做的就是使用wordpad.exe以不同的字体大小保存相同的文本文件。比较标题时,您很快就会看到字体大小由"fs"确定。


{\rtf1\ansi\ansicpg1252\deff0\deflang2055 {\ fonttbl {\f0\fnil\fcharset0 Arial;}}
$
{\ * \generator Msftedit 5.41.21.2510;} \ viewkind4 \uc1 \\\\\\\\\\\\\\\ slmult1\lang7\的 FS32


Good morning everyone, 

Currently the company I work for uses 30 year old software for inventory management. Now to print from this software a printer has to be seen from the server running said software; now the issue is we opened up an office in a different location who needs access to this server. 

Too easy right? Boom RDS on Server 2012R2. Now they need to print locally, hence the issue. 

So the solution we've come up with is this, since they'll be able to access networked drives we just have them print to a text file on a networked drive. 

The issue comes up as this, when printing the text file the formatting gets all out of wack. So to fix that we made a .bat that converts the TXT to a RTF file. The only issue we've encountered is each time someone prints to the file printer they have to go in and manually set the text font of the RTF for it to print correctly. 

Is there a variable I can add to the .BAT to specify the font size of the RTF text? 

解决方案

Is there a variable I can add to the .BAT to specify the font size of the RTF text? 

Not really a scripting question. All you need to do is to use wordpad.exe to save the same text file in different font sizes. When comparing the headers you will soon see that the font size is determined by "fs".

{\rtf1\ansi\ansicpg1252\deff0\deflang2055{\fonttbl{\f0\fnil\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sl240\slmult1\lang7\fs32


这篇关于TXT到RTF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆