POS for .NET 1.14:PrintMemoryBitmap问题 [英] POS for .NET 1.14 : PrintMemoryBitmap Problem
问题描述
我正在将应用程序从POS for .NET 1.12迁移到1.14我遇到了PrintMemoryBitmap()的问题,以前在1.12上工作正常。
_ Printer.PrintMemoryBitmap(PrinterStation.Receipt,Properties。 Resources.printBmp,PosPrinter.PrinterBitmapAsIs,PosPrinter.PrinterBitmapCenter);
现在使用以下消息抛出POS控件异常:
PosControlException(ErrorCode = Illegal)(Extended = 300002)(Message = Method PrintMemoryBitmap引发异常。尝试对设备执行非法或不支持的操作,或者使用了无效的参数值。)。
其余的,打印机工作正常。此外,正常的PrintBitmap(),给定.bmp文件的路径,成功打印位图。
有什么想法吗?
谢谢你,最诚挚的问候,
Chris
自使用POS.NET 1.14以来,我遇到了同样的问题。
SetBitmap()工作正常,但PrintMemoryBitmap()抛出错误:"Method PrintMemoryBitmap引发异常。 尝试使用设备执行非法或不受支持的操作,或者使用了无效的参数值。"
@ChrisLeesch:您找到了解决方案吗?
Hi,
I am migrating an application from POS for .NET 1.12 to 1.14 and I encountered a problem with PrintMemoryBitmap(), which previously worked fine on 1.12.
_Printer.PrintMemoryBitmap(PrinterStation.Receipt, Properties.Resources.printBmp, PosPrinter.PrinterBitmapAsIs, PosPrinter.PrinterBitmapCenter);
now throws a POS control exception with this message:
PosControlException (ErrorCode=Illegal) (Extended=300002) (Message=Method PrintMemoryBitmap threw an exception. Attempt was made to perform an illegal or unsupported operation with the device, or an invalid parameter value was used.).
For the rest, the printer is working just fine. Also, the normal PrintBitmap(), given the path to the .bmp file, successfully prints the bitmap.
Any ideas?
Thank you and best regards,
Chris
I have the same issue since using POS.NET 1.14.
SetBitmap() is working fine but PrintMemoryBitmap() is throwing an error: "Method PrintMemoryBitmap threw an exception. Attempt was made to perform an illegal or unsupported operation with the device, or an invalid parameter value was used."
@ChrisLeesch: did you find any solution?
这篇关于POS for .NET 1.14:PrintMemoryBitmap问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!