...
IF (ShowActualBudg <> 0) AND (ShowActualBudg <> 1) THEN
ERROR(Text000);
InitCharTables;
WITH ItemAnalysisViewEntry DO BEGIN
NoOfRows := CreateFile(
ItemAnalysisViewEntry,ShowName,ItemFilter,Dim1Filter,Dim2Filter,
Dim3Filter,DateFilter,LocationFilter,BudgetFilter,Sign);
FileName := "3TierMngt".DownloadTempFile(FileName);
CREATE(xlApp,TRUE,TRUE);
xlApp.Workbooks._OpenText(FileName);
...
...
IF (ShowActualBudg <> 0) AND (ShowActualBudg <> 1) THEN
ERROR(Text000);
// Add the following line.
CREATE(xlApp,TRUE,TRUE);
InitCharTables;
WITH ItemAnalysisViewEntry DO BEGIN
NoOfRows := CreateFile(
ItemAnalysisViewEntry,ShowName,ItemFilter,Dim1Filter,Dim2Filter,
Dim3Filter,DateFilter,LocationFilter,BudgetFilter,Sign);
FileName := "3TierMngt".DownloadTempFile(FileName);
// Delete the following single line.
CREATE(xlApp,TRUE,TRUE);
xlApp.Workbooks._OpenText(FileName);
...