473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Acceessing client site dll in vbscript at client site

Hi i have one dll on client site,i want to use it in aspx page, on clinet site
Is it possible or not .Please tell me the solution
Please email me at in******@hotmail.com

Regarda
Indi
Jun 13 '06 #1
4 2495
Not clear...

You can't use a client side server side (is this what you mean by "aspx
page").

You could use this DLL client side (from JavaScript code rendered by the
ASPX page and sent to the client) as long as security allows this (for
example Microsoft.XMLHttp). If not you may have to adjust security settings
(for example putting the site in the trusted zone)...

Describing what you are trying to do may help...

--
Patrice

"client site dll in vbscript" <client site dll in vbscript
@discussions.microsoft.com> a écrit dans le message de news:
43**********************************@microsoft.com...
Hi i have one dll on client site,i want to use it in aspx page, on clinet
site
Is it possible or not .Please tell me the solution
Please email me at in******@hotmail.com

Regarda
Indi

Jun 13 '06 #2
Hi:
I am on local intranet.I have one dll installed on each client machine,which
takes some parameter and print out the report.I have one asp.net
application.In that on one aspx page there is Print button.On clicking this,i
want code to run in javascript or vbscript to make object of dll,call its
function and pass the parameter nad gets job done.But when i am using
createobject() in vbscript then is is telling automation cannot create object.
I am not sure ,what is basic procedure to run the dll.
Please tell me the solution
Regards
Indi

"Patrice" wrote:
Not clear...

You can't use a client side server side (is this what you mean by "aspx
page").

You could use this DLL client side (from JavaScript code rendered by the
ASPX page and sent to the client) as long as security allows this (for
example Microsoft.XMLHttp). If not you may have to adjust security settings
(for example putting the site in the trusted zone)...

Describing what you are trying to do may help...

--
Patrice

"client site dll in vbscript" <client site dll in vbscript
@discussions.microsoft.com> a écrit dans le message de news:
43**********************************@microsoft.com...
Hi i have one dll on client site,i want to use it in aspx page, on clinet
site
Is it possible or not .Please tell me the solution
Please email me at in******@hotmail.com

Regarda
Indi


Jun 14 '06 #3
Is the DLL registered correctly on each client machine ? (use regsvr32 if
needed). You can also use a local vbscript file to test if instanciation
works correctly...

If the DLL is property registered client side this is because by default a
web site can't create a non safe object (one that could print out, save/read
files etc...). (but IMO it fails silently so I would rather think for now
that the DLL is not correctly registered). In this case a possible solution
is to put your site in the trusted zone. This way the user will have a
prompt when the web page tries to instanciate this non safe object. You can
customize the zone settings so that this prompt doesn't show up any more.

--
Patrice

"client site dll in vbscript"
<cl*********************@discussions.microsoft.com > a écrit dans le message
de news: 88**********************************@microsoft.com...
Hi:
I am on local intranet.I have one dll installed on each client
machine,which
takes some parameter and print out the report.I have one asp.net
application.In that on one aspx page there is Print button.On clicking
this,i
want code to run in javascript or vbscript to make object of dll,call its
function and pass the parameter nad gets job done.But when i am using
createobject() in vbscript then is is telling automation cannot create
object.
I am not sure ,what is basic procedure to run the dll.
Please tell me the solution
Regards
Indi

"Patrice" wrote:
Not clear...

You can't use a client side server side (is this what you mean by "aspx
page").

You could use this DLL client side (from JavaScript code rendered by the
ASPX page and sent to the client) as long as security allows this (for
example Microsoft.XMLHttp). If not you may have to adjust security
settings
(for example putting the site in the trusted zone)...

Describing what you are trying to do may help...

--
Patrice

"client site dll in vbscript" <client site dll in vbscript
@discussions.microsoft.com> a écrit dans le message de news:
43**********************************@microsoft.com...
> Hi i have one dll on client site,i want to use it in aspx page, on
> clinet
> site
> Is it possible or not .Please tell me the solution
> Please email me at in******@hotmail.com
>
> Regarda
> Indi


Jun 14 '06 #4
Hi:
I made one classlibrary libsum in vb.net,In that there is one class
clsSum.In that i have written on simple function Add.I make dll
libsum.dll.When i am using regsvr32 libsum.dll ,then it is telling libsum.dll
loaded,
DllRegisterserver entry point not found,the file can not be registered.I
guess that does not make any difference.Now i made a web application WebSum
on localhost.I added localhost as trusted sites in Interner
explorer setting.Now i define libsum.dll as object in aspx page like this
<OBJECT ID="VSTwain1" WIDTH=1 HEIGHT=1
CLASSID="http://localhost/websum/libsum.dll"
CODEBASE="http://localhost/websum/libsum.dll">
</OBJECT>

I placed libsum.dll in root folder of the websum application.

Now in javascript function.
In alert(VSTwain1)
i am getting [object]

But when i am accessing VSTwain1.Add method
Then it is giving eror message object does not support this property or
method.

Note:
websum is web based application
libsum.dll is class library with project name as libsum and class name as
clsSum
and function as Add()

I hope u have understood the problem.

Please tell me the solution

Regards
Indi

"Patrice" wrote:
Is the DLL registered correctly on each client machine ? (use regsvr32 if
needed). You can also use a local vbscript file to test if instanciation
works correctly...

If the DLL is property registered client side this is because by default a
web site can't create a non safe object (one that could print out, save/read
files etc...). (but IMO it fails silently so I would rather think for now
that the DLL is not correctly registered). In this case a possible solution
is to put your site in the trusted zone. This way the user will have a
prompt when the web page tries to instanciate this non safe object. You can
customize the zone settings so that this prompt doesn't show up any more.

--
Patrice

"client site dll in vbscript"
<cl*********************@discussions.microsoft.com > a écrit dans le message
de news: 88**********************************@microsoft.com...
Hi:
I am on local intranet.I have one dll installed on each client
machine,which
takes some parameter and print out the report.I have one asp.net
application.In that on one aspx page there is Print button.On clicking
this,i
want code to run in javascript or vbscript to make object of dll,call its
function and pass the parameter nad gets job done.But when i am using
createobject() in vbscript then is is telling automation cannot create
object.
I am not sure ,what is basic procedure to run the dll.
Please tell me the solution
Regards
Indi

"Patrice" wrote:
Not clear...

You can't use a client side server side (is this what you mean by "aspx
page").

You could use this DLL client side (from JavaScript code rendered by the
ASPX page and sent to the client) as long as security allows this (for
example Microsoft.XMLHttp). If not you may have to adjust security
settings
(for example putting the site in the trusted zone)...

Describing what you are trying to do may help...

--
Patrice

"client site dll in vbscript" <client site dll in vbscript
@discussions.microsoft.com> a écrit dans le message de news:
43**********************************@microsoft.com...
> Hi i have one dll on client site,i want to use it in aspx page, on
> clinet
> site
> Is it possible or not .Please tell me the solution
> Please email me at in******@hotmail.com
>
> Regarda
> Indi


Jun 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mstjean | last post by:
Beginning to look at the mechanics of deployment at our site for our new project, our first in .NET. Management insists all apps will run from the network, not from desktops and we've managed to...
9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
3
by: Rationalman | last post by:
I'm new to ASP, and need to do something that should be straightforward. I want to access the database in my vbscript function on the serverside, when someone clicks a button on the cient side....
4
by: HD | last post by:
Hi, I was wondering if there is a way of verifying information that is in the registry of the user's computer??? Or is there a way of checking if a file is on the c:\ of the user's computer?? I...
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
10
by: sonny | last post by:
Is there a way to do it? thx...sonny
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
7
by: Mike Rand | last post by:
I am having a really hard time trying to get some client side code hooked up in VS2005, ASP 2.0. The code is in an .inc file (vbscript). The first problem I am encountering is the ASP.NET page...
1
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.