Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells provides the Worksheet.QueryTables collection, which returns an object of type QueryTable by index. It has the following two properties:
These are both Boolean values. You can view them in Microsoft Excel via Data > Connections > Properties.
The following sample code reads the first QueryTable of the first worksheet and then prints both QueryTable properties. It then sets QueryTable.PreserveFormatting to true.
You can download the source Excel file used in this code and the output Excel file generated by the code from the following links.
Here is the console output from the above sample code:
Adjust Column Width: True
Preserve Formatting: FalseAspose.Cells provides an option to read the address, i.e., the result range of cells for a query table. The following code demonstrates this feature by reading the address of the result range for a query table. The sample file can be downloaded here.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.