R
raji2678
I'm using Developer version of Crystal Reports X1. I want to change the
location of the subreport at runtime and save the report with the new
subreport.
I tried
rd.Subreports[0].Close(); //if this is not there next line throws a
notsupported exception.
(rd is the reportdocument)
rd.Subreports[0].Load("c:\\sr.rpt");
rd.Subreports[0].FileName = "c:\\sr.rpt";
When I try rd.saveas(), the new subreport is not coming in the main
report.The old subreport still comes in the main report.
However, when I try rd.subreports[0].export, it is exporting correctly.
Any help will sincerely be appreciated.
location of the subreport at runtime and save the report with the new
subreport.
I tried
rd.Subreports[0].Close(); //if this is not there next line throws a
notsupported exception.
(rd is the reportdocument)
rd.Subreports[0].Load("c:\\sr.rpt");
rd.Subreports[0].FileName = "c:\\sr.rpt";
When I try rd.saveas(), the new subreport is not coming in the main
report.The old subreport still comes in the main report.
However, when I try rd.subreports[0].export, it is exporting correctly.
Any help will sincerely be appreciated.