刚才在百度上搜了一下 ,输入如下命令是可以的
命令语言如下所示: string filename;
filename=InfoAppDir()+"\实时数据文件夹\"+
StrFromReal( \\本站点\$年, 0, "f" )+
StrFromReal( \\本站点\$月, 0, "f" )+
StrFromReal( \\本站点\$日, 0, "f" )+
StrFromReal( \\本站点\$时, 0, "f" )+
StrFromReal(\\本站点\$分, 0, "f" )+
StrFromReal( \\本站点\$秒, 0, "f" )+".rtl";
ReportSaveAs("Report1",filename);