Evr$2007080
Evr

03/23/2007 :: 09:59

Registered

I used this activex on windows application and web application. When I used on web, I take bug which this activex didn't be filled or shown. so din' t print the image. Should you lead me ?

Web part :

<SCRIPT language="JavaScript">
function Print()
{
var url = document.getElementById("txtUrl");
var ap = document.getElementById("AxPrint");

if (url == null && ap == null)
{
alert("AxPrint not found");
return;
}
ap.SetLicenceNumber('0012345678910111213141516');
ap.DisplayFromFile(url);

ap.PrintSetCopies(3);
ap.PrintImage();
}
</SCRIPT>
</HEAD>
...
<asp:TextBox id="txtUrl" style="Z-INDEX: 105; LEFT: 88px; POSITION: absolute; TOP: 72px" runat="server"
Width="520px">C:\aa.jpg</asp:TextBox>
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 624px; POSITION: absolute; TOP: 72px" runat="server"
Text="Print" CausesValidation="False"></asp:Button>
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 48px; POSITION: absolute; TOP: 72px" runat="server">URL :</asp:Label>
<OBJECT id="AxPrint" style="Z-INDEX: 104; LEFT: 64px; WIDTH: 232px; POSITION: absolute; TOP: 128px; HEIGHT: 264px"
classid="clsid:2DE5A918-15E3-4B86-AFD7-C034559B2358" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="6138">
<PARAM NAME="_ExtentY" VALUE="6985">
<PARAM NAME="BorderStyle" VALUE="1">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="BackColor" VALUE="0">
<PARAM NAME="BackStyle" VALUE="1">
<PARAM NAME="ScrollBars" VALUE="-1">
<PARAM NAME="EnableMenu" VALUE="-1">
<PARAM NAME="Zoom" VALUE="1">
<PARAM NAME="PictureWidth" VALUE="0">
<PARAM NAME="PictureHeight" VALUE="0">
<PARAM NAME="MouseMode" VALUE="2">
<PARAM NAME="RectBorderColor" VALUE="0">
<PARAM NAME="ZoomStep" VALUE="10">
<PARAM NAME="RectBorderSize" VALUE="1">
<PARAM NAME="ClipControls" VALUE="-1">
<PARAM NAME="ScrollSmallChange" VALUE="1">
<PARAM NAME="ScrollLargeChange" VALUE="50">
<PARAM NAME="VerticalResolution" VALUE="0">
<PARAM NAME="HorizontalResolution" VALUE="0">
<PARAM NAME="NumPages" VALUE="0">
<PARAM NAME="Currentpage" VALUE="0">
<PARAM NAME="SilentMode" VALUE="-1">
<PARAM NAME="PdfDpiRendering" VALUE="100">
<PARAM NAME="pdfForceTemporaryMode" VALUE="0">
<PARAM NAME="imageForceTemporaryMode" VALUE="0">
<PARAM NAME="SkipImageResolution" VALUE="0">
<PARAM NAME="LockScreen" VALUE="0">
<PARAM NAME="ZoomMode" VALUE="1">
<PARAM NAME="SmoothingMode" VALUE="3">
<PARAM NAME="InterpolationMode" VALUE="7">
<PARAM NAME="PdfRenderingMode" VALUE="0">
<PARAM NAME="PdfBufferingMode" VALUE="0">
<PARAM NAME="RectBorderStyle" VALUE="1">
<PARAM NAME="RectDrawMode" VALUE="13">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableMouseWheel" VALUE="-1">
</OBJECT>
...
</HTML>


Best regards/ Evren
Loïc$2006306
Loïc

03/23/2007 :: 15:29

Registered

Hi,

Did you get any error message ?

Can you check the returned value of the DisplayFromFile method ?

Regards,

Loïc
back to forum