Can you help me with a problem with GdViewer?. I am developing a web application with ASP.Net and GdPicture Ver. 11, add a GdViewer within an <object>, the problem is I have not been able to establish "z-index" for this object, is always displayed in front of all form controls.
Thanks.
Code: Select all
<object id="GdViewer" type="application/x-oleobject" class="Viewer" classid="CLSID:DBBC5AB7-519C-4452-99E5-DCF34F65FF7C" >
<param name="BackColor" value="#FCFCFC" />
<param name="ZoomMode" value="2" />
<param name="AllowDropFile" value="true" />
<param name="EnableMenu" value="-1" />
Por favor, habilite ActiveX para visualizar el objeto Viewer
</object>
Code: Select all
<body onload="OnInit()">
<div id="divRcswa" style="width: 100%; height: 100%;">
<div id="parentLayoutObj"></div>
<uc1:wucThumbnails runat="server" ID="wucThumbnails" />
<uc1:wucViewer runat="server" ID="wucViewer"/>
<script type="text/javascript" for="GdViewer" event="PageChanged()">
toolbar_Viewer.setItemText('counter', ('Imagen: ' + oGdViewer.CurrentPage + ' / ' + oGdViewer.PageCount));
</script>
<script for="GdViewer" event="DropFile(File)">
oGdImaging.TiffOpenMultiPageForWrite(true);
nMultipageTiffImage = oGdImaging.CreateGdPictureImageFromFile(File);
oGdViewer.DisplayFromGdPictureImage(nMultipageTiffImage);
onDocumentLoaded();
SetTextItems();
</script>
</div>
</body>
</html>