Beispiel #1
0
        public ExportDoAssetsBase(IAssetsOptionService assetsOptionService, int doAssetsId) : base()
        {
            AssetsOptionService = assetsOptionService;
            DoAssetsId          = doAssetsId;

            HeaderStyle                   = Workbook.CreateCellStyle();
            HeaderStyle.Alignment         = HorizontalAlignment.Center;
            HeaderStyle.VerticalAlignment = VerticalAlignment.Center;
            IFont font = Workbook.CreateFont();

            font.Boldweight = short.MaxValue;
            HeaderStyle.SetFont(font);


            CommCellStyle = Workbook.CreateCellStyle();
            CommCellStyle.VerticalAlignment = VerticalAlignment.Center;
            CommCellStyle.WrapText          = true;

            FooterCellStyle                   = Workbook.CreateCellStyle();
            FooterCellStyle.Alignment         = HorizontalAlignment.Center;
            FooterCellStyle.VerticalAlignment = VerticalAlignment.Center;
            FooterCellStyle.WrapText          = true;
        }