options.setColumnsPerPage(new Integer(jd.getColumnCount()));
options.setPage(new Page(jd.getPageHeight(),jd.getPageWidth()));
if (dr.getQuery() != null){
JRDesignQuery query = DJJRDesignHelper.getJRDesignQuery(dr);
jd.setQuery(query);
}
if (dr.getReportName() != null){
jd.setName(dr.getReportName());