//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); // Set Workbook.ValueJsonSerializer to deserialize the cell value in json GrapeCity.Documents.Excel.Workbook.ValueJsonSerializer = new CustomObjectJsonSerializer(); Stream fileStream = this.GetResourceStream("json\\RangeTemplate.json"); workbook.FromJson(fileStream); // Save to a pdf file workbook.Save("RangeTemplate.pdf");
' Create a new Workbook Dim workbook As New Workbook ' Set Workbook.ValueJsonSerializer to deserialize the cell value in json Excel.Workbook.ValueJsonSerializer = New CustomObjectJsonSerializer() Dim fileStream As Stream = GetResourceStream("json\RangeTemplate.json") workbook.FromJson(fileStream) ' save to a pdf file workbook.Save("RangeTemplate.pdf")