Bug Report Q500757
Visible to All Users

Grid Report Link - The 'Invalid class typecast' error occurs when previewing a report if a sorted grid column with the in-place ProgressBar editor whose Properties.ShowTextStyle property is set to a value other than cxtsPosition

created 12 years ago

We have discovered that when we sort the grid by a column that is set to (TcxProgressBarProperties) if we then use the ExpressPrinting system to print preview the grid the following exception is raised by the IDE

Project Application.exe raised exception class EInvalidCast with message 'Invalid class typcast'

The exception is then swallowed and not presented to the end user, however the resulting preview window will be completely empty and you won't be able to print what you intended.

I have attached a sample application that demonstrates this, just run it and click the button on the form.

Everything works fine when you are sorted by the other column.

Comments (1)
DevExpress Support Team 12 years ago

    Hello,
    Thank you for your sample project. I have reproduced this behavior and forwarded this ticket to our developers for further research.

    Answers approved by DevExpress Support

    created 12 years ago (modified 12 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (2)

        Thank you. eagerly awaiting a fix.

        DevExpress Support Team 12 years ago

          We have published the hot fix. You are welcome to download and apply it.

          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.