SetPrintGridlines

function SetPrintGridlines(bPrint: boolean = null): void

Description

Specifies whether the current sheet gridlines must be printed or not.

Parameters

bPrintbooleandefault: null

Defines if cell gridlines are printed on this page or not.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetPrintGridlines(true);
oWorksheet.GetRange("A1").SetValue("Gridlines of cells will be printed on this page: " + oWorksheet.GetPrintGridlines());

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).