Printer.PaintPicture不起作用 [英] Printer.PaintPicture does not work

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

问题描述

我正在用C#开发POS应用程序,必须使用Windows驱动程序在打印机上打印图像.

I am developing a POS application in C# where I have to print an image on Printer using Windows driver.

为此,我正在使用Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer类来执行打印机操作,使用Print方法对文本进行细化可以正常工作,但是当我使用PaintPicture方法来打印图像时,它将无例外地执行 但不会在打印机上打印任何图像.

For that I am using Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer class to perform Printer operations, Priniting text using Print method works fine but when I use PaintPicture method to print an image it executes without an exception but does not prints any image on the printer. 

我还检查了事件查看器是否生成了任何异常日志,但没有帮助.

I have also checked Event viewer for any exception logs generated but no help.

请您帮忙解决可能出现的问题?还是有使用Windows驱动程序打印图像的更好方法.

Can you please help about what the issue could be? Or Is there a better way of printing an image using windows driver.

预先感谢.

推荐答案

Hi Ipsit G aur,

>>您能帮忙解决一下问题吗?还是有使用Windows驱动程序打印图像的更好方法.

请尝试POS for .NET v1.14 SDK,该软件的打印方法名为

Please try POS for .NET v1.14 SDK, which has print method named PosPrinter.PrintBitmap , you could download the sdk from the following link.

https://www.microsoft.com/en-sg/download/details .aspx?id = 42081

有关用法的更多信息,请参考以下线程;

For more information about the usage, please refer to the following thread;

https://stackoverflow.com/questions/13390313/pos-application-development-receipt -打印

最诚挚的问候,

吴可乐


这篇关于Printer.PaintPicture不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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