B2023-028: RO report generates report with error when RO path not set

This commit is contained in:
Kathy Ruffing 2023-03-03 15:57:52 +00:00
parent ab4b4e8b6d
commit 48d395f5be

View File

@ -787,6 +787,10 @@ namespace Volian.Controls.Library
string ROList = GetListOfROs(false);//don't include the RODbID in the RO list string ROList = GetListOfROs(false);//don't include the RODbID in the RO list
string roDataFile = BuildRODataFile(ROList); string roDataFile = BuildRODataFile(ROList);
// B2023-028: RO report generates report with error when RO path not set. Return if datafile is not set
// by BuildRODataFile
if (roDataFile == null || roDataFile == "") return;
if (Mydocversion != null) if (Mydocversion != null)
OnPrintRequest(new DisplayReportsEventArgs("Complete RO Report", "Complete RO Report", roDataFile, MyROFSTLookup, cbxComplete.Checked, Mydocversion.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, cbxIncldMissingROs.Checked, paperSize)); OnPrintRequest(new DisplayReportsEventArgs("Complete RO Report", "Complete RO Report", roDataFile, MyROFSTLookup, cbxComplete.Checked, Mydocversion.ActiveFormat.PlantFormat.FormatData.SectData.ConvertCaretToDelta, cbxIncldMissingROs.Checked, paperSize));
} }