Hi, I've encountered the problem that Infragistics's controls break CR (crystal report) reports.
When the control (WebDataTree) is present on the page, the CrystalReportViewer doesn't build the report.
After two hours of investigation I can provide some details and I hope somebody will explain why it happens and how we can solve or workaround this problem.
CR(Crystal Reports) renders script inside div that build the report (dynamically creates html).
The piece of page related to CR without WebDataTree on the page looks as following:
div id="ctl00_Content_reportViewer" script type="text/javascript"
script type="text/javascript" <!-- bobj.crv.writeWidget( ...
But when WebDataTree is present on the page it looks as following: div id="ctl00_Content_reportViewer"
That explains why the report is not built (because script is not even launched)
The question is why Infragistics's controls do this needless work? optimization by removing line carriages?
Please comment?
Hello AlexanderZh,
I'll be looking into this issue and find out why this is occurring. I will be able to give you a little more information by the end of Wednesday.
Hi, Michael!
Michael, are there any information on my problem?
Alexander
Hi, Konstantin!
Thank you.
I'll prepare sample next week,
unfortunately I am very busy this week (the code freeze in our company is planned on the first part of next week)
Hi Alexander,
I'm just following up to see if you've had a chance yet to prepare a sample so we can further look into this issue for you? Thanks.
Please let me know if you have any other questions or concerns.
I've attached the sample that demonstrates the problem.
Steps:
1. Default.aspx page initially contains WebDataTree that is commented (not present on the page) and the CrystalReportControl control - it is my simple simulator of CrystalReportViewer (for sample purpose only, the code is included in the sample, so it is useful to look first at the code of this control)
2. Open page in the browser, see the alert box with text "I am report builder!"
3. Uncomment WebDataTree so it is present on the page.
4. Open page in the browser again, see that the script has not been invoked and you hasn't seen the alert box.
5. Additionally you can try to locate the CrystalReportViewer control before WebDataTree, the script is invoked as well.
If there will be any problems or questions on the reproduction - feel free to ask me.
Thank you for the sample. I was able to reproduce the issue with this, although I'm not really sure why this is occurring. I'll forward the sample to Konstantin so he may look into it.
If you have any further questions, please let me know.
Your sample works correctly with our latest internal builds. I've submitted a Development Issue to log this and to keep you updated. I will be able to give you another update sometime tomorrow.
If you have any questions or concerns, please let me know.
Hello Alexander,
I apologize for the delay in updating you on this.
I have created a support case for you with an ID of CAS-82442-N34793. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 103718.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering on the "My Support Activity" dropdown and selecting the "Development Issues" tab.
Please let me know if you have any questions.