ActiveReports Developer 7
CreateFrom Method
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > OleObject Class : CreateFrom Method

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.

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Sub CreateFrom( _
   ByVal fileName As System.String _
) 
C# 
public void CreateFrom( 
   System.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#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
    this.OleObject1.CreateFrom("C:\\MailAliases.xls");
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Me.OleObject1.CreateFrom("C:\MailAliases.xls")
End Sub

See Also