使用C#在预印纸形式的特定位置打印文本 [英] Printing text at a particular position on pre printed paper form using C#

查看:168
本文介绍了使用C#在预印纸形式的特定位置打印文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打印在在打印纸的一个特定位置的打印纸文本。其原因是,在打印完成上已经印刷形式与字段诸如姓和名。所以,当我得到的人的姓名,并应以书面形式分配的空间内打印。

I need to print as in printing paper texts at a particular position of the print paper. The reason is that the printing is done on already printed form with fields such as first and last names. So when I get the name of the person and it should print within that allocated space in paper form.

想知道是否有任何已有的库,将允许我使用的坐标系像的X和Y坐标在特定位置进行打印。

Wondering if there are any exisiting libraries that will allow me to print at a particular position using a coordinate system like X and Y coordinate.

推荐答案

下面是一些让你开始.......结果
http://msdn.microsoft.com/en-us/library/ aa287530(v = vs.71)的.aspx

Here is something to get you started.......
http://msdn.microsoft.com/en-us/library/aa287530(v=vs.71).aspx

使用教程,我建议你大约在页面的四个角上打印,这样你知道打印的坐标系。

Using that tutorial, I would suggest you print roughly at the four corners of a page, that way you know the printing coordinate system.

使用,和良好的醇'尺子,你可以揣摩出你的纸表单上的字段,并将其转化为对代码x-y坐标。

Using that, and a good ol' ruler, you can figure out where the fields on your paper form are, and translate them to x-y coordinates on the code.

这篇关于使用C#在预印纸形式的特定位置打印文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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