TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yogesh sharma
NA
7
13.6k
System.Drawing.Printing.PrinterSettings.InstalledPrinters is not getting network printer list
Aug 9 2011 9:12 AM
Hi,
I am using
System
.
Drawing
.
Printing
.
PrinterSettings
.
InstalledPrinters to get network printer list in WCF service hosted in IIS. But this is not giving network printer list . Same is giving network printer list if use in desktop application.
I am using following code to get printer list using WCF service hosted in IIS.
string []
installedPrinters
=
new
string
[
System
.
Drawing
.
Printing
.
PrinterSettings
.
InstalledPrinters
.
Count
];
System
.
Drawing
.
Printing
.
PrinterSettings
.
InstalledPrinters
.
CopyTo
(
installedPrinters
, 0);
Reply
Answers (
7
)
Stream in WCF
Polling Duplex