I'm getting an "Invalid File Path" error in one of our in-house applications whenever I try to view a report on a PC that has been upgraded to use the 13.0.10 redistributable for Crystal Reports. (The update was installed to add compatibility with IE 10+.) However, the application works fine on a PC that is still running the 13.0.2 redistributable. Here is what seems to be the relevant block of code:
this->crystalReportViewer1 = (gcnew CrystalDecisions::Windows::Forms::CrystalReportViewer()); this->reportDocument1 = (gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument()); this->SuspendLayout(); this->reportDocument1->FileName = L"rassdk://L:\\programs\\Reports\\DummyReport.rpt"; this->crystalReportViewer1->ActiveViewIndex = 0; this->crystalReportViewer1->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle; this->crystalReportViewer1->Cursor = System::Windows::Forms::Cursors::Default; this->crystalReportViewer1->Dock = System::Windows::Forms::DockStyle::Fill; this->crystalReportViewer1->Location = System::Drawing::Point(0, 0); this->crystalReportViewer1->Name = L"crystalReportViewer1"; this->crystalReportViewer1->ReportSource = this->reportDocument1; this->crystalReportViewer1->Size = System::Drawing::Size(811, 719); this->crystalReportViewer1->TabIndex = 0;
The application gives the error on line where it sets the ReportSource. I'm guessing something changed in the redistributable; does anyone know what might have changed to cause this, or how to get around it?
Thanks in advance,
Kevin