try {
ReportUtils.write("E:/test.rpx",rd); //将ReportDefine保存到文件
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}