比如这样就可以每个文件名都不同了,不会覆盖原来的。
string filename;
filename="E:\报表\"+StrFromReal( \\本站点\$年,0, "f" )+StrFromReal(\\本站点\$月,0, "f" )+StrFromReal( \\本站点\$日,0, "f" )+StrFromReal( \\本站点\$秒,0, "f" )+".rtl";
string filename1;
filename1="E:\报表\"+StrFromReal( \\本站点\$年,0, "f" )+StrFromReal(\\本站点\$月,0, "f" )+StrFromReal( \\本站点\$日,0, "f" )+StrFromReal( \\本站点\$秒,0, "f" )+".xls";
ReportSaveAs("Report1",filename);
ReportSaveAs("Report1",filename1);