Skip to main content

Notifications

Microsoft Dynamics RMS forum

Receipt customization crash POS 2009

Posted on by Microsoft Employee

In POS 2009 SP1, Windows 7 x64, within the receipt customization dialog, the following crash occurs whenever clicking a tab or attempting to change almost anything.  It appears that a small preview dialog pops up briefly before the crash, suggesting that this is a drawing error during rendering of the preview pane.  Is anyone else experiencing this?  This is a completely fresh install and can be replicated with a blank database.

 

System.ArgumentException was unhandled

  Message="Parameter is not valid."

  Source="System.Drawing"

  StackTrace:

       at System.Drawing.Font.Clone()

       at Microsoft.Rms.IO.HardwareIOFramework.QueuePrintDocument.RenderTableHeaderOrBody(String headerOrBody, TableBorderSettings border, Single& currentTop, Single currentLeft, Graphics gdiPage, Int32 printActionIndex, Single lowerBoundary, String backgroundColor)

       at Microsoft.Rms.IO.HardwareIOFramework.QueuePrintDocument.PrintDocumentSection(PrintPageEventArgs e, Int32 startIndex, Int32 endIndex)

       at Microsoft.Rms.IO.HardwareIOFramework.QueuePrintDocument.OnPrintPage(PrintPageEventArgs e)

       at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)

       at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)

       at System.Drawing.Printing.PrintController.Print(PrintDocument document)

       at System.Drawing.Printing.PrintDocument.Print()

       at System.Windows.Forms.PrintPreviewControl.ComputePreview()

       at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()

       at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

       at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

       at System.Windows.Forms.Control.WndProc(Message& m)

       at System.Windows.Forms.PrintPreviewControl.WndProc(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       at System.Windows.Forms.Application.Run(ApplicationContext context)

       at Microsoft.Rms.Host.HostApplicationContext.Main(String[] args)

  InnerException: 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Receipt customization crash POS 2009

    Hi Trent, many thanks for the idea.  

    Do you know which .NET framework version POS 2009 was built with?  My brief searching doesn't seem to be bringing up anything useful.  This is Windows 7 x64, so I'm under the impression that .NET 3.5 SP1 is baked in by default.  I did try installing the new .NET 4 framework from the link you sent, but I'm afraid the same crash is still reproducible.

    I had also previously suspected it was a library problem, so I had tried reinstalling the C++ 2005 Redistributable (which I noticed is installed during POS 2009 installation).  Unfortunately, this had little effect as well.

    Thanks again for your help!

  • Re: Receipt customization crash POS 2009

    Hello Victor,

    Thanks for the update.

    Most instances of this type of error that I found (not specific to Point of Sale or RMS) seem to deal with .Net framework.

    Please be sure that your .Net Framework is up to date.

    http://www.microsoft.com/net/

    Let us know if you have any other questions.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Receipt customization crash POS 2009

    Thanks for the replies.  I have not made any changes to the default receipt formats.  These files are just those installed with a blank database in SP1.  This crash happens with a fresh install of POS 2009 + SP1.  Thanks again for your suggestions.

  • Re: Receipt customization crash POS 2009

    Thank you for your questions.

    Thank you Jeff for suggesting a solution.

    Let us know if you have any other questions.

  • Jeff @ Check Point Software Profile Picture
    Jeff @ Check Point ... 13,380 on at
    Re: Receipt customization crash POS 2009

    We don't sell/support/endorse MSPOS but this error message usually relates to either a unfinished comment line or a line that contains an apostrophe without surrounding the line with double quotations marks.  Check out your mods.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans