[]
Generates a JSON string from the page setup.
Use this method to serialize the current page setup settings to JSON so that they can be stored or later applied by using FromJson(string).
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string representing the page setup. |
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.BlackAndWhite = true;
pageSetup.LeftHeader = "Quarterly Report";
string json = pageSetup.ToJson();