Bug Report T295554
Visible to All Users

ASPxWebDocumentViewer - Image assinged by the ImageUrl property is not displayed in the Subreport

created 9 years ago (modified 9 years ago)

Hello

We are currently converting from the ASPxDocumentViewer to the ASPxWebDocumentViewer and have found an interesting problem.

We have one report that is run from different web pages because of differing filtering requirements.

In the report there is an image that is displayed based on a field in the database:

Visual Basic
Private Sub xrCritical_BeforePrint(sender As Object, e As PrintEventArgs) Handles xrCriticalT.BeforePrint If GetCurrentColumnValue("criticalTask") = False Then xrCriticalT.Visible = False Else xrCriticalT.Visible = True End If

The same image can appear in the parent report and a sub report (different but related data). The image may appear in the parent report, the sub report or both.

In both viewers the image in the parent report always appears when expected. In the ASpxDocumentViewer the image in the sub report always appears. In the ASPxWebDocumentViewer the image in the sub report only appears if the image has appeared in the parent record data.

In the attached video you can see that for ABC4444 the sub report image only appears in the ASPxDocumentViewer. For the record RDK0999 the image appears in the sub report in both cases.

I have double checked that the code is being hit correctly in all cases. I have included  both reports in the attachment.

Can you help?

Cheers
James

Show previous comments (1)
A A
Ansarada TriLine GRC 9 years ago

    Hello
    I have found the issue - the Image URL setting.
    In my application I have used the Image URL setting for all occurrences of the same image.
    As you will see from the attached sample when using the ASPxWebDocumentViewer if the Image URL is set in the parent report the same image in the sub report will display. If the Image URL is not set in the parent the same image in the sub report will not display.
    Cheers
    James

    A A
    Ansarada TriLine GRC 9 years ago

      When not using the Image URL setting the image in actually encoded in the RESX file. I will be using the same image in multiple  sub reports so as it stands at the moment if I wanted to change the image I would have to edit each report. This is not very efficient.

      Vasily (DevExpress Support) 9 years ago

        Hi James,

        Thank you for sending us the sample project. It was very helpful. I have reproduced the issue and decided to forward it to our developers, so they can examine it thoroughly. This might take some time for us. Your patience is highly appreciated.

        Answers approved by DevExpress Support

        created 9 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.

          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.