Methods

getBackgroundRefresh()

Indicates whether the connection can be refreshed in the background (asynchronously). true if preferred usage of the connection is to refresh asynchronously in the background; false if preferred usage of the connection is to refresh synchronously in the foreground.

getConnectionDescription()

Specifies the user description for this connection

getConnectionId()

Specifies The unique identifier of this connection.

getCredentials()

Specifies the authentication method to be used when establishing (or re-establishing) the connection. The value of the property is CredentialsMethodType integer constant. NOTE: This property is now obsolete. Instead, please use ExternalConnection.CredentialsMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

getCredentialsMethodType()

Specifies the authentication method to be used when establishing (or re-establishing) the connection. The value of the property is CredentialsMethodType integer constant.

getEditPage()

The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes. NOTE: This property is now obsolete. Instead, please use WebQueryConnection.EditWebPage property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

getEditWebPage()

The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.

getHtmlFormat()

How to handle formatting from the HTML source when bringing web query data into the worksheet. Relevant when sourceData is True. The value of the property is HtmlFormatHandlingType integer constant.

getId()

Gets the id of the connection.

getKeepAlive()

True when the spreadsheet application should make efforts to keep the connection open. When false, the application should close the connection after retrieving the information.

getName()

Specifies the name of the connection. Each connection must have a unique name.

getOdcFile()

Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.

getOnlyUseConnectionFile()

Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. If false, then the spreadsheet application should follow the procedure indicated by the reconnectionMethod attribute

getParameters()

Gets ConnectionParameterCollection for an ODBC or web query.

getPost()

Returns or sets the string used with the post method of inputting data into a web server to return data from a web query.

getPowerQueryFormula()

Gets the definition of power query formula.

getReconnectionMethod()

Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. The value of the property is ReConnectionMethodType integer constant. NOTE: This property is now obsolete. Instead, please use ExternalConnection.ReconnectionMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

getReconnectionMethodType()

Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. The value of the property is ReConnectionMethodType integer constant.

getRefreshInternal()

Specifies the number of minutes between automatic refreshes of the connection.

getRefreshOnLoad()

True if this connection should be refreshed when opening the file; otherwise, false.

getSSOId()

Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source.

getSaveData()

True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false.

getSavePassword()

True if the password is to be saved as part of the connection string; otherwise, False.

getSourceFile()

Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file. May be expressed in URI or system-specific file path notation.

getType()

Gets or Sets the external connection DataSource type.

getUrl()

URL to use to refresh external data.

isConsecutive()

Flag indicating whether consecutive delimiters should be treated as just one delimiter.

isDeleted()

Indicates whether the associated workbook connection has been deleted. true if the connection has been deleted; otherwise, false.

isHtmlTables()

Flag indicating whether web queries should only work on HTML tables.

isNew()

True if the connection has not been refreshed for the first time; otherwise, false. This state can happen when the user saves the file before a query has finished returning.

isParsePre()

Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table.

isSameSettings()

Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row.

isTextDates()

Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates.

isXl2000()

This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. This is an optional attribute that can be ignored.

isXl97()

This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. This is an optional attribute that can be ignored.

isXml()

true if the web query source is XML (versus HTML), otherwise false.

isXmlSourceData()

Flag indicating that XML source data should be imported instead of the HTML table itself.

setBackgroundRefresh()

Indicates whether the connection can be refreshed in the background (asynchronously). true if preferred usage of the connection is to refresh asynchronously in the background; false if preferred usage of the connection is to refresh synchronously in the foreground.

setConnectionDescription()

Specifies the user description for this connection

setConsecutive()

Flag indicating whether consecutive delimiters should be treated as just one delimiter.

setCredentials()

Specifies the authentication method to be used when establishing (or re-establishing) the connection. The value of the property is CredentialsMethodType integer constant. NOTE: This property is now obsolete. Instead, please use ExternalConnection.CredentialsMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

setCredentialsMethodType()

Specifies the authentication method to be used when establishing (or re-establishing) the connection. The value of the property is CredentialsMethodType integer constant.

setDeleted()

Indicates whether the associated workbook connection has been deleted. true if the connection has been deleted; otherwise, false.

setEditPage()

The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes. NOTE: This property is now obsolete. Instead, please use WebQueryConnection.EditWebPage property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

setEditWebPage()

The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData="true" and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.

setHtmlFormat()

How to handle formatting from the HTML source when bringing web query data into the worksheet. Relevant when sourceData is True. The value of the property is HtmlFormatHandlingType integer constant.

setHtmlTables()

Flag indicating whether web queries should only work on HTML tables.

setKeepAlive()

True when the spreadsheet application should make efforts to keep the connection open. When false, the application should close the connection after retrieving the information.

setName()

Specifies the name of the connection. Each connection must have a unique name.

setNew()

True if the connection has not been refreshed for the first time; otherwise, false. This state can happen when the user saves the file before a query has finished returning.

setOdcFile()

Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.

setOnlyUseConnectionFile()

Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. If false, then the spreadsheet application should follow the procedure indicated by the reconnectionMethod attribute

setParsePre()

Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table.

setPost()

Returns or sets the string used with the post method of inputting data into a web server to return data from a web query.

setReconnectionMethod()

Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. The value of the property is ReConnectionMethodType integer constant. NOTE: This property is now obsolete. Instead, please use ExternalConnection.ReconnectionMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.

setReconnectionMethodType()

Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required. The value of the property is ReConnectionMethodType integer constant.

setRefreshInternal()

Specifies the number of minutes between automatic refreshes of the connection.

setRefreshOnLoad()

True if this connection should be refreshed when opening the file; otherwise, false.

setSSOId()

Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source.

setSameSettings()

Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row.

setSaveData()

True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false.

setSavePassword()

True if the password is to be saved as part of the connection string; otherwise, False.

setSourceFile()

Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file. May be expressed in URI or system-specific file path notation.

setTextDates()

Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates.

setUrl()

URL to use to refresh external data.

setXl2000()

This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. This is an optional attribute that can be ignored.

setXl97()

This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. This is an optional attribute that can be ignored.

setXml()

true if the web query source is XML (versus HTML), otherwise false.

setXmlSourceData()

Flag indicating that XML source data should be imported instead of the HTML table itself.