///<summary>When a new Report is created, the only section that is added is the details. This makes the logic a little more complicated, but it will minimize calls to the database for unused sections. This also makes the act of adding groups more natural.</summary> public ReportLikeCrystal() { //ReportMargins=new Margins(50,50,30,30);//this should work for almost all printers. sections = new SectionCollection(); //sections.Add(new Section(AreaSectionKind.ReportHeader,"Report Header",0)); //sections.Add(new Section(AreaSectionKind.PageHeader,"Page Header",0)); //sections.Add("Group Header"); sections.Add(new Section(AreaSectionKind.Detail, 0)); //sections.Add("Group Footer"); //sections.Add(new Section(AreaSectionKind.PageFooter,"Page Footer",0)); //sections.Add(new Section(AreaSectionKind.ReportFooter,"Report Footer",0)); reportObjects = new ReportObjectCollection(); dataFields = new ArrayList(); parameterFields = new ParameterFieldCollection(); grfx = Graphics.FromImage(new Bitmap(1, 1));//I'm still trying to find a better way to do this }
///<summary>When a new Report is created, the only section that is added is the details. This makes the logic a little more complicated, but it will minimize calls to the database for unused sections. This also makes the act of adding groups more natural.</summary> public ReportLikeCrystal() { //ReportMargins=new Margins(50,50,30,30);//this should work for almost all printers. sections=new SectionCollection(); //sections.Add(new Section(AreaSectionKind.ReportHeader,"Report Header",0)); //sections.Add(new Section(AreaSectionKind.PageHeader,"Page Header",0)); //sections.Add("Group Header"); sections.Add(new Section(AreaSectionKind.Detail,0)); //sections.Add("Group Footer"); //sections.Add(new Section(AreaSectionKind.PageFooter,"Page Footer",0)); //sections.Add(new Section(AreaSectionKind.ReportFooter,"Report Footer",0)); reportObjects=new ReportObjectCollection(); dataFields=new ArrayList(); parameterFields=new ParameterFieldCollection(); grfx=Graphics.FromImage(new Bitmap(1,1));//I'm still trying to find a better way to do this }