ActiveReports 6 Online Help
CreateFrom Method
Example 

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.
Creates an Ole Object to embed in the control from the specified file.
Syntax
'Declaration
 
Public Sub CreateFrom( _
   ByVal fileName As String _
) 
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
private void detail_Format(object sender, System.EventArgs eArgs)
{
    this.OleObject1.CreateFrom("C:\\MailAliases.xls");
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Me.OleObject1.CreateFrom("C:\MailAliases.xls")
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OleObject Class
OleObject Members

Send Feedback