OfflineType Property

Microsoft Office Web Components Visual Basic

constant that represents the type of connection used to persist the data when a data access page is taken offline. Read/write.

expression.OfflineType

expression    Required. An expression that returns a DataSourceControl object.

Example

This example sets the offline settings from the data source control named MSODSC.

Sub SetOfflineSettings()

   Dim dscConstants

   Set dscConstants = MSODSC.Constants

   ' Set the offline type.
   MSODSC.OfflineType = dscConstants.dscOfflineXMLDataFile

   ' Set the location of the XML data to a data file.
   MSODSC.XMLLocation = dscconstants.dscXMLDataFile

   ' Set the XML data file to use when the page is offline.
   MSODSC.OfflineSource = "Q1 Sales Analysis.xml"

End Sub