473,406 Members | 2,217 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,406 software developers and data experts.

ASP.Net 3.5 - Retrieving List of Local Printers on Client Machine ?

I am using Visual studio 2008 and ASP.Net 3.5

How can I fill a combo with List of Local Printers, installed on Client
Machine ?

If I have to buy any Activex Control from Internet, please do recommend.

Best Regards,

Luqman


Jun 27 '08 #1
4 6059
"Luqman" <pe*******@cyber.net.pkwrote in message
news:e9***************@TK2MSFTNGP05.phx.gbl...
I am using Visual studio 2008 and ASP.Net 3.5

How can I fill a combo with list of local printers, installed on client
machine ?
You can't, at least, not natively...
If I have to buy any ActiveX control from the Internet, please do
recommend.
A couple of things about ActiveX controls:

1) They work in Microsoft Internet Explorer only, so are no use at all for a
public web site.

2) You will almost certainly need to ramp the browser security right down
just to get them to work.

However, even if you were able to fill a combo with a list of local
printers, what would you do with this information? You certainly won't be
able to let the user select a printer and then somehow automatically print
to it - all modern browsers are designed specifically to prevent this type
of direct interaction between web sites and the client machine's hardware.

That's why many websites provide a "print version" of web pages which the
user can print manually if required...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
Hi,

I want this facility for my Intranet Application, running in my Office, so
that user can print the Crystal Report through ASP.Net, directly to his
local default printer.

Currently they can do so, by installing Crystal Printing Control (a thin
client activex) which shows their local printer.

But the problem starts, when the report is designed for Landscape Printing
and User has to change the Printing Style from Portrait to Landscape every
time in Printing Preferences.

I hope you understand what I mean.

Even I get some help, how Crystal Printing Control of ASP.Net can be used in
code, will also be beneficial for me.

Best Regards,

Luqman


"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eo**************@TK2MSFTNGP06.phx.gbl...
"Luqman" <pe*******@cyber.net.pkwrote in message
news:e9***************@TK2MSFTNGP05.phx.gbl...
>I am using Visual studio 2008 and ASP.Net 3.5

How can I fill a combo with list of local printers, installed on client
machine ?

You can't, at least, not natively...
>If I have to buy any ActiveX control from the Internet, please do
recommend.

A couple of things about ActiveX controls:

1) They work in Microsoft Internet Explorer only, so are no use at all for
a public web site.

2) You will almost certainly need to ramp the browser security right down
just to get them to work.

However, even if you were able to fill a combo with a list of local
printers, what would you do with this information? You certainly won't be
able to let the user select a printer and then somehow automatically print
to it - all modern browsers are designed specifically to prevent this type
of direct interaction between web sites and the client machine's hardware.

That's why many websites provide a "print version" of web pages which the
user can print manually if required...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3
"Luqman" <pe*******@cyber.net.pkwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

[top-posting corrected]
>>I am using Visual studio 2008 and ASP.Net 3.5

How can I fill a combo with list of local printers, installed on client
machine ?

You can't, at least, not natively...
>>If I have to buy any ActiveX control from the Internet, please do
recommend.

A couple of things about ActiveX controls:

1) They work in Microsoft Internet Explorer only, so are no use at all
for a public web site.

2) You will almost certainly need to ramp the browser security right down
just to get them to work.

However, even if you were able to fill a combo with a list of local
printers, what would you do with this information? You certainly won't be
able to let the user select a printer and then somehow automatically
print to it - all modern browsers are designed specifically to prevent
this type of direct interaction between web sites and the client
machine's hardware.

That's why many websites provide a "print version" of web pages which the
user can print manually if required...

I want this facility for my Intranet Application, running in my Office, so
that user can print the Crystal Report through ASP.Net, directly to his
local default printer.
You didn't mention any of this in your original post...
Even I get some help, how Crystal Printing Control of ASP.Net can be used
in code, will also be beneficial for me.
I don't have much experience of Crystal, but there are dozens of articles on
the web about this...

Here's one:
http://aspalliance.com/509_Automatic...ts_in_ASPNET.3
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
You should be able to do it by hand, if the printers on your Office network
are installed in the ActiveDirectory (if you have AD), then you can just
query against that with DirectoryServices and fill the combo/list from that.

HTH

"Mark Rae [MVP]" wrote:
"Luqman" <pe*******@cyber.net.pkwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

[top-posting corrected]
>I am using Visual studio 2008 and ASP.Net 3.5

How can I fill a combo with list of local printers, installed on client
machine ?

You can't, at least, not natively...

If I have to buy any ActiveX control from the Internet, please do
recommend.

A couple of things about ActiveX controls:

1) They work in Microsoft Internet Explorer only, so are no use at all
for a public web site.

2) You will almost certainly need to ramp the browser security right down
just to get them to work.

However, even if you were able to fill a combo with a list of local
printers, what would you do with this information? You certainly won't be
able to let the user select a printer and then somehow automatically
print to it - all modern browsers are designed specifically to prevent
this type of direct interaction between web sites and the client
machine's hardware.

That's why many websites provide a "print version" of web pages which the
user can print manually if required...
I want this facility for my Intranet Application, running in my Office, so
that user can print the Crystal Report through ASP.Net, directly to his
local default printer.

You didn't mention any of this in your original post...
Even I get some help, how Crystal Printing Control of ASP.Net can be used
in code, will also be beneficial for me.

I don't have much experience of Crystal, but there are dozens of articles on
the web about this...

Here's one:
http://aspalliance.com/509_Automatic...ts_in_ASPNET.3
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #5

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

Similar topics

3
by: Prasad Patil | last post by:
Hi, I have a webform, The link on the webform should call the exe program installed on the client machine when the user click the link on the webform. It should run the exe installed on the...
3
by: WM Chung | last post by:
Hello all, My dotnet application configuration is that the client, Web server and database all reside in 3 different computers. There is a function which can browse a file and read in the...
7
by: Dean McCarten | last post by:
I Need to Retrieve the UNC Path of Mapped Drives on a Client Machine's (NT4 + y2k) on my Network, but I have been unsuccessful so far and I find seem to find a way to do this, any idea anyone I...
0
by: Syed Aun Ali | last post by:
i am running an asp.net application on a IIs server with some clients connected through local network and Tcp/ip.i want to send data from a textbox control on a aspx page of a client machine to a...
0
by: Richard Thayne | last post by:
I am trying to find a way to allow a client user to select a local printer to print to in my page or just list the local printers to them. Thanks
1
by: gnusmsa | last post by:
ASP.NET 2.0 (C#) application Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged into server as a domain user that is in the...
5
by: lmttag | last post by:
ASP.NET 2.0 (C#) application Intranet application (not on the Internet) Using Windows authentication and impersonation Windows Server 2003 (IIS6) Server is a member server on a domain Logged...
1
by: Gopala Raghavan | last post by:
I have compiled the sample application 'Localdata' in Visual Studio 2005 and published it IIS 5. The data files are located on the C Drive of this machine which is called DEV15. When I run it from my...
11
by: BiffMaGriff | last post by:
Hello, .Net 2.0 I am creating a windows forms application for deployment on a client's machine. The program works fine on my local but the output on the client machine is wrong. Since the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.