
Edraw Office Viewer Component allows developers to resize the component in runtime.
Download Office Viewer Component and View Sample Projects
The Width and Height properties are not the properties of the component. So you can't call the EDOffice1.Width or EDOffice1.Height.
Use the office ocx as the Object in the html code. Then put it in a table tag.
For Example:
<object classid="clsid:7677E74E-5831-4C9E-A2DD-9B1EF9DF2DB4"
id="OA1" width="100%" height="100%" codebase="http://www.edrawsoft.com/download/officeviewer.cab#7,5,0,356">
<param name="Toolbars" value="1">
<param name="LicenseName" value="30daytrial">
<param name="LicenseCode" value="EDWD-3333-2222-1111">
<param name="BorderColor" value="15647136">
<param name="BorderStyle" value="2">
</object>
You can put the component at a form or a dialog. Then set the ChipChildren property for the form or dialog. In the OnSize method, you can call the SetComponentSize method to change the width or height.
Only call the SetcomponentSize method when the parent window change the size.
Free Download Office Viewer Component and View Sample Projects
|
|
|
|||||||||
|
|
|