1 and cells
CA_VariantSetCString (&MyCellRangeV, "A1:F2");
Excel_WorksheetRange (worksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, &ExcelRangeHandle);
Excel_RangeMerge (ExcelRangeHandle, NULL, CA_DEFAULT_VAL);
2 Set the width
ExcelRpt_SetCellRangeAttribute (worksheetHandle, "A1", ER_CR_ATTR_COLUMN_WIDTH, 15.0);
3 Set font size
ExcelRpt_SetCellRangeAttribute(worksheetHandle, "A1",ER_CR_ATTR_FONT_SIZE,20);
4 Set the font to black
ExcelRpt_SetCellRangeAttribute(worksheetHandle, "A1",ER_CR_ATTR_FONT_BOLD,ExRConst_True);
5 Set alignment
ExcelRpt_SetCellRangeAttribute (worksheetHandle, "A1", ER_CR_ATTR_HORIZ_ALIGN, ExRConst_HAlignCenter);
6 Write data
ExcelRpt_SetCellValue (worksheetHandle, "A1", ExRConst_dataString,"测试报告");
7 Set the border
ExcelRpt_RangeBorder (worksheetHandle, "A1:F2", ExRConst_Continuous, VAL_BLACK, ExRConst_Thin, 0xf0);