I am using the .NET assembly for Crystal Report in my VB.NET application. My Crystal Report, however, was not developed in VB.NET. It was developed in Crystal Report XI Release 2 (with Service Pack 2).
I am using the VB.NET (2005) app to execute the report (preview and print).
I have a Windows Form in my VB.NET app that sets the CrystalReportViewer1.ReportSource = ReportDocument. I am using the Form.ShowDialog() in a module to preview the Crystal Report in the Crystal Report Viewer.
However, the Report Viewer is not taking on the properties of the report as it was created. For example: The report was created and saved with the Create Group Tree Report Option unchecked. However, when I preview the report in my VB.NET application, the group tree is appearing in the viewer...it is blank, but it is there. How can I get the viewer to use the group tree property from the report? We will be running various reports through this application. Some do have a group tree, some do not. I need to show the group tree in the preview based on how the report was originally created/saved.
Also, the report seems to be reduced in size in the viewer and not set to Fit-Width as we have saved our reports in Crystal Developer.
So, as you can see, these are a couple but there will be several properties I will need to set in the viewer based on the original report properties.
How do I set these programmatically in VB.NET?
Thank you.
I am using the VB.NET (2005) app to execute the report (preview and print).
I have a Windows Form in my VB.NET app that sets the CrystalReportViewer1.ReportSource = ReportDocument. I am using the Form.ShowDialog() in a module to preview the Crystal Report in the Crystal Report Viewer.
However, the Report Viewer is not taking on the properties of the report as it was created. For example: The report was created and saved with the Create Group Tree Report Option unchecked. However, when I preview the report in my VB.NET application, the group tree is appearing in the viewer...it is blank, but it is there. How can I get the viewer to use the group tree property from the report? We will be running various reports through this application. Some do have a group tree, some do not. I need to show the group tree in the preview based on how the report was originally created/saved.
Also, the report seems to be reduced in size in the viewer and not set to Fit-Width as we have saved our reports in Crystal Developer.
So, as you can see, these are a couple but there will be several properties I will need to set in the viewer based on the original report properties.
How do I set these programmatically in VB.NET?
Thank you.