private Report CreateReport() { var report = new Report(); report.Items = new object[] { CreateDataSources(), CreateBody(), CreateDataSets(), "19.75cm", // body width "21cm", // interactive height "29.7cm", // interactive width "21cm", // page height "29.7cm", // page width "0.5cm", // bottom margin "0.5cm", // top margin "0.5cm", // left margin "0.5cm", // right margin }; report.ItemsElementName = new[] { ItemsChoiceType37.DataSources, ItemsChoiceType37.Body, ItemsChoiceType37.DataSets, ItemsChoiceType37.Width, ItemsChoiceType37.InteractiveHeight, ItemsChoiceType37.InteractiveWidth, ItemsChoiceType37.PageHeight, ItemsChoiceType37.PageWidth, ItemsChoiceType37.TopMargin, ItemsChoiceType37.BottomMargin, ItemsChoiceType37.LeftMargin, ItemsChoiceType37.RightMargin, }; return report; }
private Report CreateReport() { var report = new Report { Items = new object[] { CreateDataSources(), CreateDataSets(), CreateBody(), "8.18301in", CreatePage(), LoadImages() }, ItemsElementName = new[] { ItemsChoiceType80.DataSources, ItemsChoiceType80.DataSets, ItemsChoiceType80.Body, ItemsChoiceType80.Width, ItemsChoiceType80.Page, ItemsChoiceType80.EmbeddedImages, } }; return(report); }