Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luqman - 24 Apr 2008 12:08 GMT
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
Mark Rae [MVP] - 24 Apr 2008 12:47 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Luqman - 24 Apr 2008 13:22 GMT
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

>> I am using Visual studio 2008 and ASP.Net 3.5
>>
[quoted text clipped - 22 lines]
> That's why many websites provide a "print version" of web pages which the
> user can print manually if required...
Mark Rae [MVP] - 24 Apr 2008 13:37 GMT
[top-posting corrected]

>>> I am using Visual studio 2008 and ASP.Net 3.5
>>>
[quoted text clipped - 27 lines]
> 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_Automatically_Printing_Crystal_Reports_in_ASPNET.3

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

musosdev - 24 Apr 2008 13:46 GMT
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

> [top-posting corrected]
>
[quoted text clipped - 40 lines]
> Here's one:
> http://aspalliance.com/509_Automatically_Printing_Crystal_Reports_in_ASPNET.3

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.