web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Receipt customization crash POS 2009

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Jeff @ Check Point Software Profile Picture
    13,382 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.

  • Trent Bourgois Profile Picture
    on at
    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.

  • Community Member Profile Picture
    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.

  • Trent Bourgois Profile Picture
    on at
    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
    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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans