Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with an OCX

Status
Not open for further replies.

Peepain

Programmer
May 15, 2002
43
AR
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=&quot;Initialize()&quot;>

<OBJECT ID=&quot;RpvReport&quot;
CLASSID=&quot;CLSID:6449CBC9-951A-4C82-83F4-45E923D999CA&quot;
WIDTH=100% HEIGHT=95%
CODEBASE=&quot;c:\Program Files\RPV\RpvReport.ocx&quot;>
</OBJECT>

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
Sub Initialize()
Dim Rpv1
Set Rpv1 = document.getElementById(&quot;RpvReport&quot;)
Rpv1.RpvFileName = &quot;c:\RPV\InvoiceType5WWF0911021].39820277.rpv&quot;
Rpv1.ViewRpvReport
End Sub
-->
</SCRIPT>
</BODY>
</html>

The problem appears to be in &quot;Rpv1.RpvFileName = xxxx&quot;
In VB I can say that and works fine. Any idea??

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top