Alternatively you can capture all tables on a web page by passing true to the IncludeAllTables property, however this will only work with the XLSX or JSON format. If you choose the XSLX format each table will be put in a new sheet within the generated spreadsheet workbook.

Convert HTML Tables to JSON

GrabzIt can also convert HTML tables to JSON, just specify the JSON format as shown below. Here we are reading the data synchronously into the GrabzItFile object by using the SaveTo method, however it is generally recommended that you do this asynchronously instead.

Once we have the result we get the string representation of the JSON file by calling the ToString method, this can be then deserialized into a dynamic object using your favourite JSON library.

Custom Identifier

You can pass a custom identifier to the table methods as shown below, this value is then returned to your GrabzIt ASP.NET handler. For instance this custom identifier could be a database identifier, allowing a screenshot to be associated with a particular database record.