public void init() {
m_showingProperties = false;
cReportLaunchInfo oLaunchInfo = null;
m_report = new cReport();
// TODO: event handler for
//
/*
m_report_Done();
m_report_Progress(task, page, currRecord, recordCount, cancel,);
m_report_FindFileAccess(answer, commDialog, file,);
*/
oLaunchInfo = new cReportLaunchInfo();
m_report.getPaperInfo().setPaperSize(m_fmain.getPaperSize());
m_report.getPaperInfo().setOrientation(m_fmain.getOrientation());
oLaunchInfo.setPrinter(cPrintAPI.getcPrinterFromDefaultPrinter());
oLaunchInfo.setObjPaint(new CSReportPaint.cReportPrint());
if (!m_report.init(oLaunchInfo)) { return; }
CSKernelFile.cFile file = new CSKernelFile.cFile();
m_report.setPathDefault(Application.StartupPath);
m_picReport.Top = C_TOPBODY;
m_picRule.Left = 0;
m_picReport.Left = pGetLeftBody();
m_keyMoving = "";
m_keySizing = "";
m_keyObj = "";
m_keyFocus = "";
m_nextNameCtrl = 0;
m_paint = new CSReportPaint.cReportPaint();
Rectangle tR = null;
cReportPaperInfo w_paperInfo = m_report.getPaperInfo();
tR = new Rectangle(CSReportPaint.cGlobals.getRectFromPaperSize(
m_report.getPaperInfo(),
w_paperInfo.getPaperSize(),
w_paperInfo.getOrientation()));
cGlobals.createStandarSections(m_report, tR);
m_paint.setGridHeight(pSetSizePics(tR.height));
m_paint.initGrid(m_picReport.CreateGraphics(), m_typeGrid);
paintStandarSections();
m_dataHasChanged = false;
}