Forum Discussion
If you have a URL to the report I could check the property myself and probably find the property you want, but in the .Net version of crystal reports it looks something like this to get the text:
Of course that is just the text of one line in the report and each sectioninstance, reportobjectinstance, and textline needs to be iterated to obtain all the text of the report. I used this method for a long time, but eventually found it more practical to perform image compares. Sorry I don't have a better solution for you.
myPageObject = Sys.Process("CNRpt").WinFormsObject("CNRptView").WinFormsObject("crViewer").WinFormsObject("PageView", "", 1).WinFormsObject("TabControl", "").WinFormsObject("DocumentControl", "Main Report").WinFormsObject("PageControl", "");
myText = myPageObject.SectionInstances.Item(0).ReportObjectInstances.Item(0).TextLines.Item(0);
Of course that is just the text of one line in the report and each sectioninstance, reportobjectinstance, and textline needs to be iterated to obtain all the text of the report. I used this method for a long time, but eventually found it more practical to perform image compares. Sorry I don't have a better solution for you.
Related Content
- 3 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago