If you set the height = “100%” directly for the¬†EDraw Office Viewer Component, then the component starts to flicker like mad.

How to avoid the office component flicker? The follow code is from Yves.

<html>
<head>
<script src=”__embedded_office_functions.js” type=”text/javascript”></script>
<script>
window.onresize = function() {
var con = document.body;
var ele = document.getElementById(‘officeApplication’);
ele.style.height = con.offsetHeight;
}
</script>
<script type=”text/javascript” for=”officeApplication” event=NotifyCtrlReady()>
//document.officeApplication.EnableFileCommand(0) = false;
</script>
</head>
<body style=”overflow:hidden;margin:0;padding:0;”>
<object name=”officeApplication” id=”officeApplication” codeBase=”__embedded_office.cab#5,3,406,1″ width=”100%” classid=”clsid:6BA21C22-53A5-463F-BBE8-5CF7FFA0132B” VIEWASTEXT>
<param name=”BorderStyle” value=”0″>
<param name=”Titlebar” value=”0″>
<param name=”Toolbars” value=”1″>
<param name=”LicenseName” value=”tqsoft”>
<param name=”LicenseKey” value=”ED99-5511-123F-AB82″>
<param name=”Menubar” value=”1″>
<param name=”ActivationPolicy” value=”0″>
<param name=”FrameHookPolicy” value=”0″>
<param name=”MenuAccelerators” value=”0″>
</object>
<script language=”JavaScript” type=”text/javascript” src=”NoIEActivate.js”></script>
</body>
</html>