CellsOptionsRenderPrintAreaOnly Property
Enables rendering of the specific section(s) on a worksheet(s) which is defined as print area.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public bool RenderPrintAreaOnly { get; set; }

Property Value

Type: Boolean
The following example demonstrates how to render print area.
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();
HtmlOptions options = new HtmlOptions();
options.CellsOptions.RenderPrintAreaOnly = true;

string guid = "document.xlsx";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also