The OleObject control is hidden from the toolbox by default, and is only retained for backward compatibility. You can enable the OleObject control in the Visual Studio toolbox only.
To enable the control in the Visual Studio toolbox, you must change the EnableOleObject property to true. This property can be found here: C:\Program Files\GrapeCity\ActiveReports 10\Grapecity.ActiveReports.config
Once enabled, you can add the OleObject control to reports. When you drop the control onto your report, the Insert Object dialog appears. This dialog allows you to create a new object or select one from an existing file.
Note: When you deploy reports that use the OleObject, you must also deploy the GrapeCity.ActiveReports.Interop.v10.dll, or for 64-bit machines, the GrapeCity.ActiveReports.Interop64.v10.dll.
Caution: The WPF Viewer does not support the OLE object. If you preview a report containing the OLE object in the WPF Viewer, the OLE object will not be displayed.
Important Properties
Property |
Description |
PictureAlignment |
Gets or sets the position of the object's content within the control area. |
Class |
Specifies the class name of the Ole object. |
SizeMode |
Gets or sets a value that determines how the object is sized to fit the OleObject control area. |
Insert Object Dialog
The Insert Object dialog provides the following two options:
-
Create New lets you select from a list of object types that you can insert into your report.
Object Types
- Adobe Acrobat Document
- Microsoft Equation 3.0
- Microsoft Excel 97-2003 Worksheet
- Microsoft excel Binary Worksheet
- Microsoft Excel Chart
- Microsoft Excel Macro-Enabled Worksheet
- Microsoft Excel Worksheet
- Microsoft Graph Chart
- Microsoft PowerPoint 97-2003 Presentation
- Microsoft PowerPoint 97-2003 Slide
- Microsoft PowerPoint Macro-Enabled Presentation
- Microsoft PowerPoint Macro-Enabled Slide
|
- Microsoft PowerPoint Presentation
- Microsoft PowerPoint Slide
- Microsoft Word 97-2003 Document
- Microsoft Word Document
- Microsoft Macro-Enabled Document
- OpenDocument Presentation
- OpenDocument Spreadsheet
- OpenDocument Text
- Package
- Paintbrush Picture
- Wordpad Document
|
- Create from File allows you to insert the contents of the file as an object into your document so that you can display it while printing.