Beispiel #1
0
        private void SetDocumentTitle()
        {
            CellSelection companyNameCells = worksheet.Cells[1, 1, 1, 4];

            companyNameCells.Merge();
            companyNameCells.SetValue("My Company");
            companyNameCells.SetHorizontalAlignment(RadHorizontalAlignment.Left);

            CellSelection expenseReportCells = worksheet.Cells[2, 1, 2, 4];

            expenseReportCells.Merge();
            expenseReportCells.SetValue("Expense Report");
            expenseReportCells.SetHorizontalAlignment(RadHorizontalAlignment.Right);

            CellSelection periodCells = worksheet.Cells[3, 1, 3, 4];

            periodCells.Merge();
            periodCells.SetValue("1 Jan 2014 - 31 Mar 2014");
            periodCells.SetHorizontalAlignment(RadHorizontalAlignment.Right);
        }