I am using VB.NET (2005) as an interface between our software application and Crystal Reports to display the Crystal Reports we have developed (in Crystal XI Release 2).
I have created a .NET solution with a module and a form. All the coding is done in the module. I use Form1.ShowDialog() to bring up the CrystalReportViewer (which was added to the form).
The problem I am having is that I need to programmatically change some of the Report Viewer properties depending on how the report was created. As an example: Some of our reports have the Report Option, Create Group Tree, selected, others do not. Regardless of how this option is set in the original report, the Group Tree is showing in the report viewer. I only see how to set this property to True or False. How can I pass the report's property setting to the viewer?
Also, the report is not displaying properly. It's as though there are margins (top, bottom, left, right) in the viewer that are causing my report to 'reduce' in size and truncate some fields.
Any help would be appreciated. Thank you
I have created a .NET solution with a module and a form. All the coding is done in the module. I use Form1.ShowDialog() to bring up the CrystalReportViewer (which was added to the form).
The problem I am having is that I need to programmatically change some of the Report Viewer properties depending on how the report was created. As an example: Some of our reports have the Report Option, Create Group Tree, selected, others do not. Regardless of how this option is set in the original report, the Group Tree is showing in the report viewer. I only see how to set this property to True or False. How can I pass the report's property setting to the viewer?
Also, the report is not displaying properly. It's as though there are margins (top, bottom, left, right) in the viewer that are causing my report to 'reduce' in size and truncate some fields.
Any help would be appreciated. Thank you