Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

can't printing logo in MPOS receipt

Posted on by 2,016

greeting everyon

i'm trying to print my receipt but i still geting error 

so i checked event error i found this error

{"ErrorResourceId":"Microsoft_Dynamics_Commerce_HardwareStation_Printer_Error","LocalizedMessage":"There was an error while printing. Check the device or see your system administrator.","ClassName":"Microsoft.Dynamics.Commerce.HardwareStation.PeripheralException","Message":"OPOS printer failed to execute 'PrintMemoryBitmap' with error '106', extended error code - 0","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.CheckResultCode(String oposMethod, Int32 resultCode, Int32 resultCodeExtended)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.PrintImage(IOPOSPOSPrinter oposPrinter, Byte[] image)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.Print(String header, String lines, String footer)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter.Execute(Request request)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.ExecutePrintWithRetry(PrintRequestConfigKey printRequestConfigKey, IGrouping`2 groupedRequest, Boolean canRetryUponFailure)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.ExecutePrintWithRetry(PrintRequestConfigKey printRequestConfigKey, IGrouping`2 groupedRequest, Boolean canRetryUponFailure)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.<>c__DisplayClass1_1.b__1()\r\n at Microsoft.Dynamics.Commerce.HardwareStation.DeviceLockContainer.ExecuteOpos(Object asyncLock, String source, String threadId, Action action)\r\n at Microsoft.Dynamics.Commerce.HardwareStation.ClientManagers.PrinterManager.Print(Collection`1 printRequests)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClassc.b__6(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.Tracers.HttpControllerTracer.d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.HttpServer.d__0.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nCheckResultCode\nMicrosoft.Dynamics.Commerce.HardwareStation.Peripherals.Opos, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\nMicrosoft.Dynamics.Commerce.HardwareStation.Peripherals.OposPrinter\nVoid CheckResultCode(System.String, Int32, Int32)","HResult":-2146233088,"Source":"Microsoft.Dynamics.Commerce.HardwareStation.Peripherals.Opos","WatsonBuckets":null}

i notice this exactly error

OPOS printer failed to execute 'PrintMemoryBitmap' with error '106'

i already change image to monochrome BMP

how can i fixed?

  • mohammed.mqi Profile Picture
    mohammed.mqi 2,016 on at
    RE: can't printing logo in MPOS receipt

    solved by 

     used a .bmp file with dimensions 272x261 and bitmap depth 1 and size less than 10kb

  • Verified answer
    Ramune Profile Picture
    Ramune on at
    RE: can't printing logo in MPOS receipt

    Hi Mohammed,

    please check this community thread, it should help you to resolve the issue:

    community.dynamics.com/.../requirements-needed-print-logo-on-pos-receipt

    You may also search in community portal for "print logo POS", you will find many discussions for this topic.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans