See Also

OleObject Class  | OleObject Members

Language

Visual Basic

C#

Show All

fileName
Specifies the file to be used to create an embedded Ole object.  A valid Ole server for the specified file type should be installed to handle the file instance.
See Also Languages ActiveReports Send feedback to Data Dynamics

CreateFrom Method

Creates an Ole Object to embed in the control from the specified file.

[Visual Basic]
Public Sub CreateFrom( _    ByVal fileName As String _ )
[C#]
public void CreateFrom(    string fileName );

Parameters

fileName
Specifies the file to be used to create an embedded Ole object.  A valid Ole server for the specified file type should be installed to handle the file instance.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.OleObject1.CreateFrom("C:\\MailAliases.xls"); 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.OleObject1.CreateFrom("C:\MailAliases.xls")
End Sub

See Also

OleObject Class  | OleObject Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.