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 January 28th, 2005, 11:54 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using ActiveX DLL in ASP

Hi, all,
I create a ActiveX DLL using VB,
I create a html file to use it like:
<OBJECT ID="AssessmentBasisReport" viewastext .........>, it works file if I double-click the file in the explorer, the url is : C:\Inetpub\wwwroot\test\AutoWordVB\TestActiveXDLL. html, but If I run it as: localhost\test\AutoWordVB\TestActiveXDLL.html, I got the message that "internet explorer has block this site from using an activeX control in a unsafe manner..............", what will I do to let it works????

Andraw


 
Old January 28th, 2005, 01:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Change your browser security settings. The browse can restrict activeX controls.

Brian
 
Old January 28th, 2005, 01:43 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,

Thanks for your reponse, how to change the setting, I already change security to low, and all the security setting for internet to "Enable" from tool->internet option.

What will do next???????

And also, in my local machine, I install word, but when I create word object in the client-side vbscript, always get error msg say activex component can't create object "word.application", why??
<script language=vbscript>
  Set oApp = CreateObject("Word.Application")
</script>
I got this idea from following website.

http://support.microsoft.com/kb/q285176/

URGENT!!!!!!!!!!!!!!!!!

Andraw


 
Old January 28th, 2005, 04:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try custom actually, and there should be a button that goes into each setting specifically. You may actually need a setting of none. unsafe activex can cause problems.

It's not just easy to support office apps, you need to understand this: http://support.microsoft.com/kb/257757. The user running the app needs privileges set up in dcomcnfg utility.

Brian
 
Old January 28th, 2005, 06:21 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,

Thank you!
After I change the setting, I can create the word object now.
Now I have another problem that bother me long time.
From the following like: http://support.microsoft.com/kb/q285176/
it said we can using activeX control to generate word automation in the client-side, are these possible:
1: in the activeX control using VB, can I open a word document based on the word template that is stored in the server machine by passing it's URL?
2: How can I insert picture into the word file while the picture is stored in the server? I use it's url, the error is "not a valid file name", I use server.mapPath(), but in the client side, it will look for it in path "C:\inetpub\wwwroot." at the local machine.
Any idea?

Andraw

 
Old January 28th, 2005, 06:24 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, all,

Sorry, the artical I mensioned is in the following link:
http://support.microsoft.com/kb/286023/en-us

Andraw


 
Old January 31st, 2005, 10:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

No idea. Sorry.

Brian
 
Old February 2nd, 2005, 09:40 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, all,

Another question, when use activex component in ASP. After I change the security "Download unsigned ActiveX controll" to Enable, why did some computer ask you "the activex component may not safe, do you want to install it?" ,if I say yes, the component will be download and work fine. But some computer even didn't ask you, always block download unsigned component, why? how can I handle this kind of problem??????????????
How to make activex control signed???????
Any help and hint are very appreciate!

Andraw


 
Old February 3rd, 2005, 08:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I don't know how you sign it, look on the web for that response, or maybe an activeX book. What do you mean some computer, do you mean another computer on the network? Browser settings only work for that specific computer; it's not server settings. That's the problem with activex components and javascript; they can be turned off.

Brian
 
Old February 3rd, 2005, 10:15 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,

Thanks for your repsonse. I try several computers, the dll work fine in my computer, after I change the setting of the other computer with window 2000 xp professional version 2002, service pack 2, but not work on service pack 1, it even didn't ask me if you want to install the activex control, I don't know why. do you have some idea about this?

I know it's not a good way to let client change the security setting, so it's better to add digital sign or digital certificate to you dll control to make it trusted by other computer, but I have no idea about this, can somebody tell me how?????????/
Andraw






Similar Threads
Thread Thread Starter Forum Replies Last Post
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
ActiveX DLL Joann Beginning VB 6 6 January 25th, 2007 08:50 PM
creating an activex dll amc VB Components 7 June 25th, 2004 05:10 PM
Distribution of ActiveX DLL james gold Pro VB 6 6 September 10th, 2003 11:13 AM





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