使用c#从打印机获取纸张尺寸和位置

编程入门 行业动态 更新时间:2024-10-26 18:25:20
本文介绍了使用c#从打印机获取纸张尺寸和位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在处理一个用于打印CHEQUE的项目, 我现在面临的问题是,由于支票的大小是一个小矩形,我无法将其水平放置(正常位置),我将其垂直放置90度. 现在我面临的问题是 .我做过的程序在侧面进纸打印机中工作正常,但在中央进纸打印机中,打印不规则. 所以现在我应该有一种方法来获取支票的大小和支票在打印机中的放置位置.这样我就可以从那个位置开始打印了. 希望您能理解我的问题. 在此先谢谢您

I am working on a project which is used to print a CHEQUE, the problem which i face now is, since the Size of the cheque is small rectangle i cannot place it horizontally(normal position), i am placing it vertically 90degree rotated. Now the problem i face is . The program which i did works fine in Side feeding printer , but in center feeding printer it prints irregularly. so now i should get a way to get the cheque size and the place where the cheque is placed in the printer. so that i can start my printing from that position. I hope you understand my problem. Thanks in advance

推荐答案

打印机如何知道里面有什么纸?是否将其设置为特定的自定义纸张尺寸?如果打印机不知道里面有什么纸,那么您的程序也将无法分辨. How does the printer know what paper is in it ? Does it get set to a certain custom paper size ? If the printer doesn''t know what paper is in it, your program isn''t going to be able to tell, either.

我是这个C#和Printing的新手.并不是那么有经验.那就是为什么我问这个.有什么方法可以从打印机获取纸张尺寸和纸张位置. bcz我需要这个. i am new to this c# and printing.i am not so experienced. thats why i ask this. is there any way of getting paper size and paper position from the printer. bcz i need that.

好吧,如果您想添加一些内容,那么您真的应该编辑您的帖子.并不是说您确实添加了任何东西.就像我说的那样,如果没有将打印机设置为使用特殊的纸张尺寸,那么可以肯定的是,它不知道支票的尺寸或位置,因此您的代码是不可能的来解决. Well, you really should edit your post if you want to add something. Not that you added anything, really. Like I said, if the printer has not been set up to use a special paper size, then it''s for certain that it doesn''t know the size or location of your cheque, therefore it''s impossible for your code to work it out.

更多推荐

使用c#从打印机获取纸张尺寸和位置

本文发布于:2023-10-08 08:53:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472124.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:纸张   打印机   尺寸   位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!