Example 1: If the obtained report block object is defined as report , assign the value of "Order number" to cell A1
By cell address:
report.setCellValue("A1","Order number");
By cell row and column number:
report.setCellValue(1,1,"Order number");
Example 2: Assign the value of "Order number" to cell A1 in a general report
_g().setCellValue("A1","Order number");
Example 3: Under the data entry preview, assign the value of "Order number" to cell A1 in the 2 sheets
_g().setCellValue(1,1,"Order number");
Example 4: In the dashboard, the A1 cell of the report0 report block is assigned the value "Order number"
_g().getWidgetByName('report0').setCellValue("A1","Order number");
|