4 weeks ago
Hi,
I have some old Crystal Reports XI RPT files that are accessed in a Visual Studio application. Am I right in thinking that to upgrade these to the latest version I need two things:
1) SAP Crystal Reports 2020
2) SAP Crystal Reports for Visual Studio
I downloaded the trial for Crystal Reports 2020, but it doesn't seem to have any SDK (i.e .Net Framework DLLs) for use in Visual Studio. On the other hand, I don't think RPT files managed in the full version of Crystal Reports are compatible with the report designer in Visual Studio. So it seems I need Crystal Reports 2020 to edit the RPT file and Crystal Reports for Visual Studio to access them at run-time in our application. Is that right?
Thanks
Request clarification before answering.
Hello,
As of CR 9 SAP stopped including the .NET SDK with Crystal Reports. You can get it from here:
https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html
It integrates into VS 2010->2022 and above. Note: Run the EXE to install on your DEV PC to integrate into VS, all other files are for distribution only, not required to install on you DEV PC, and install the 32 or 64 bit runtime when it asks at the end of the install, both are required for Development.
See my Blog on upgrading your Project:
And NO, you don't need to upgrade your reports, it is recommended to bring them to current versions though but mostly not required. Some DB Clients need to be updated so in those cases you do need to update your reports.
The differences between the full version of CRD and the Embedded version in VS is the VS version uses the old CRAXDDRT.DLL, the Embedded Report Designer, but it does have limitations built into it, also known as CR Basic... it does upgrade to current version of the report.
You can get the history of the Report versions using the SDK.
Create a History Box and use this to get the info:
cbLastSaveHistory.Text = "";
try
{
// Read File Details from CFileInfo Object
//cbLastSaveHistory.Sorted = true;
for (int x = 0; x < rpt.HistoryInfos.Count; x++)
{
cbLastSaveHistory.Items.Add(rpt.HistoryInfos[x].BuildVersion.ToString() + ": Date: " + rpt.HistoryInfos[x].SavedDate.ToString());
}
cbLastSaveHistory.SelectedIndex = 0;
// rpt.HistoryInfos.Count - 1;
//SP 13
//• RAS .NET SDK
//ReportClientDocument.HistoryInfos[i].SavedDate
//ReportClientDocument.HistoryInfos[i].BuildVersion
//• CR .NET SDK
//ReportDocument.HistoryInfos[i].SavedDate
//ReportDocument.HistoryInfos[i].BuildVersion
}
catch (Exception ex)
{
//MessageBox.Show("Error: " + ex.Message);
//MessageBox.Show("This report has no Save history");
cbLastSaveHistory.Text = "This report has no Save history";
}
The output looks like this:
So what you should do is:
1. Install CR 2020
2. Install CR for VS SP 37, latest version
3. Open each CR XI report in CR 2020 and Set Location to the DB and run the report to verify it is working and then save the Report to a new location, or backup your originals.
4. Upgrade your Project, FYI, 32 bit runtime is end of life this coming December so set your Project to X64 and not AnyCPU.
Have fun
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Don,
Thanks for the detailed response.
The VS project is actually already in VS 2022. The RPT files aren't part of the VS project, they are just picked up at run-time. It doesn't include any report viewer components, but simply uses the CrystalDecisions.CrystalReports.Engine 11.5 DLL to run the reports and export in formats like PDF for the users.
I need to edit the RPT files from time to time and the Crystal Reports XI program no longer works properly on the latest version of Windows, hence looking to buy CR 2020.
So, if I understand correctly I need the following:
Crystal Reports 2020 for editing the RPT files
CR for Visual Studio SP37 CR Runtime 64-bit so that I can replace the 11.5 version CrystalDecisions.CrystalReports.Engine with the V13.x version.
Then ensure my VS project is targeting x64.
Thanks,
Graeme
User | Count |
---|---|
64 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.