Bug Report DB60070
Visible to All Users

DevExpress.XtraPrinting.Drawing.Watermark ArgumentException: Font 'Verdana' does not support style 'Regular'

created 18 years ago

An internal application which displays data in a datagrid has recently been upgraded to support printing of the datagrid. I have used v6.2.4 and v6.3.1 of the XtraPrinting assemblies, which both throw the ArgumentException displayed in the "Actual Results" section of this issue. It does not occur on my Developer machine, as well as numerous other machines around the office, but does occur on one of the Designer machines.
I created a class which inherits from DevExpress.XtraPrintingLinks.DataGridLink to perform the customization, which is nothing more than a header & footer record. Nowhere in the class do I make references to the Verdana font, or any other font for that matter.

Comments (3)
DevExpress Support Team 18 years ago

    Hello,
    Sorry, we can't reproduce your issue. Everything works fine in our tests.
    It seems that there is a problem with the Verdana font on one of your Designer machines. Probably, its font file was occasionally changed? Could you please compare the Verdana font file installed on your machine with the Verdana font file installed on the machine which reproduces the bug?
    Also please try to run this code on your Designer's machine:

    Visual Basic
    Dim fnt As New Font("Verdana", 36, FontStyle.Regular)

    If this code fails, just replace the Verdana font file on that machine and try to run this code again.
    Waiting for your response.
    Thanks, Alan.
    R&D, .net Team.

      I created the sample application, which threw the same exception. I compared the fonts on my machine and the Designer's machine, and they were indeed very different. I moved my fonts to his machine, and voila, issue resolved.
      I still do not understand why a Watermark is being instantiated if I am not using one, but I have steps to resolve the issue so you can mark it as solved. Thanks.

      DevExpress Support Team 18 years ago

        Hello,
        Glad to hear that you've managed to solve the problem.
        As for creating a Watermark object, this is required for our internal purposes only. In any way, I'm pleased that the problem is resolved now.
        Thanks, Alan.
        R&D, .net Team.

        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.