Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 13th, 2004, 05:06 PM
Registered User
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Problems

I have created a VERY basic ActiveX control that I want to incorporate into a web page. There is only one function that I have made public that simply takes a line of text in String format and then prints that line to the printer.
Public Sub printMe(strPrint As String)
    Print strPrint
End Sub
I have a basic ASP page where I set up my OBJECT tag with the appropriate class id.
<OBJECT id="printObject" classid="clsid:1980B305-E472-462E-B28C-09FAE07BD878"></OBJECT>

<script language="vbscript">
printMe "This should work."
I need the code to call my function within the control. What do I need to do next to get at my function. I am at a total loss.

Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX : getting PARAM value in activeX src smaraux Visual Studio 2005 1 March 4th, 2008 12:31 PM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
Problems calling ActiveX via localhost Kristinn ASP.NET 1.0 and 1.1 Basics 1 March 30th, 2005 05:36 PM
ActiveX Problems bborza VS.NET 2002/2003 0 December 13th, 2004 04:53 PM
Please HELP !!! ActiveX johnjohn Classic ASP Professional 0 November 16th, 2004 12:45 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.