I deployed the program to one of my client. He reported that it keeps getting the error below when he try to open a report preview. However other clients are fine.
Have any idea?
The OS is XP SP2 with .netframework 3x installed.
Thanks.
************** Exception Text **************
System.TypeInitializationException: The type initializer for
'DevExpress.XtraPrinting.Drawing.PageWatermark' threw an exception. —>
System.ArgumentException: Font 'Verdana' does not support style
'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize,
FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean
gdiVerticalFont)
at System.Drawing.Font…ctor(String familyName, Single emSize)
at DevExpress.XtraPrinting.Drawing.PageWatermark…cctor()
— End of inner exception stack trace —
at DevExpress.XtraPrinting.Drawing.PageWatermark…ctor()
at DevExpress.XtraPrinting.Drawing.Watermark…ctor()
at DevExpress.XtraReports.UI.XtraReport…ctor()
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Larm,
According to the information you provided, it's likely that the 'Verdana' font on your client's machine has been corrupted or changed, and its "Regular" style is missing.
Since this situation cannot be covered by the default Windows font substitution mechanism, I recommend that you reinstall the 'Verdana' font on the problematic machine, and then check whether this problem is gone.
Let us know the results.
Thank you,
Alex.
It works! Thanks.