Hi People,
I got a problem with the following code. I also use this object in VB and I have no problem.
What am I doing wrong?
<%
%>
<HTML>
<HEAD>
<TITLE>ActiveX Viewer</TITLE>
</HEAD>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript
ONLOAD="Initialize()">
<OBJECT ID="RpvReport"
CLASSID="CLSID:6449CBC9-951A-4C82-83F4-45E923D999CA"
WIDTH=100% HEIGHT=95%
CODEBASE="c:\Program Files\RPV\RpvReport.ocx">
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Initialize()
Dim Rpv1
Set Rpv1 = document.getElementById("RpvReport"
Rpv1.RpvFileName = "c:\RPV\InvoiceType5WWF0911021].39820277.rpv"
Rpv1.ViewRpvReport
End Sub
-->
</SCRIPT>
</BODY>
</html>
The problem appears to be in "Rpv1.RpvFileName = xxxx"
In VB I can say that and works fine. Any idea??
Thanks in advance.
I got a problem with the following code. I also use this object in VB and I have no problem.
What am I doing wrong?
<%
%>
<HTML>
<HEAD>
<TITLE>ActiveX Viewer</TITLE>
</HEAD>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript
ONLOAD="Initialize()">
<OBJECT ID="RpvReport"
CLASSID="CLSID:6449CBC9-951A-4C82-83F4-45E923D999CA"
WIDTH=100% HEIGHT=95%
CODEBASE="c:\Program Files\RPV\RpvReport.ocx">
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Initialize()
Dim Rpv1
Set Rpv1 = document.getElementById("RpvReport"
Rpv1.RpvFileName = "c:\RPV\InvoiceType5WWF0911021].39820277.rpv"
Rpv1.ViewRpvReport
End Sub
-->
</SCRIPT>
</BODY>
</html>
The problem appears to be in "Rpv1.RpvFileName = xxxx"
In VB I can say that and works fine. Any idea??
Thanks in advance.