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 BasicPrivate 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
Hi James,
I have reviewed the files you have attached, but it looks like the "subRptTreatments" sub report is never used in the "xrpKRIList" report. So, would you please make sure if you have attached the correct master and subreport files? Also, I would like to note that your reports' code is large and contains a lot of external dependencies. So, these reports require extra time for research. If possible, provide us with a simple working project that illustrates the issue in action instead. With a small example project, it is much easier for us to verify that the code that calls ours is valid, and that the way our controls are being used is recommended. This way, we can concentrate our resources on the problematic area:
A request for simple example programs
Your time and cooperation are greatly appreciated.
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
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.
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.