SetPrintGridlines
Specifies whether the current sheet gridlines must be printed or not.
Parameters:
Name |
Type |
Description |
bPrint |
boolean
|
Defines if cell gridlines are printed on this page or not. |
Returns:
-
This method doesn't return any data.
Example
Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetPrintGridlines(true);
oWorksheet.GetRange("A1").SetValue("Gridlines of cells will be printed on this page: " + oWorksheet.GetPrintGridlines());
builder.SaveFile("xlsx", "SetPrintGridlines.xlsx");
builder.CloseFile();
Resulting document