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 / December 2007

Tip: Looking for answers? Try searching our database.

I am getting network printer when running my web project through IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jawaid alam - 28 Dec 2007 05:58 GMT
Hi all forum Member,

I am facing very tropical type of problem. I devoloped a intranet web
project. I want to print crystal report by selecting network printer.

I accessed all network printer in dropdownlist in crystal report page.

when i run crystal report page directly by set as startup page.
Dropdownlist shows all network printer. but when i run my project
through IIS Dropdownlist shows only localhost printers. its not showing
network printers.

i used this code to access all network printer in dropdownlist

Imports System.Drawing.Printing

DropDownList1.Items.Add("---Select Printer---")
           Dim pkInstalledPrinters As String
           ' Find all printers installed
           For Each pkInstalledPrinters In
PrinterSettings.InstalledPrinters
               DropDownList1.Items.Add(pkInstalledPrinters)
           Next pkInstalledPrinters

           ' Set the dropdownlist to the first printer in the list

           DropDownList1.SelectedIndex = 0

Anybody if aware of this kind of problem
Please Suggest me as far as possible

Thank you
jawaid alam
Mohamad Elarabi [MCPD] - 28 Dec 2007 10:34 GMT
This might have something to do with the fact that locahost resolves to
127.0.0.1 which is not the same network your network printers are on. That is
the only thing I can think of. Try publishing the site and setting it up on
your local IIS service and browse to it by your machine name instead of
localhost. If that worked then I won't worry too much about it since you'll
never go to production on http://localhost.
Please let me know your findings. Thanks,

Signature

Mohamad Elarabi
MCP, MCTS, MCPD.

> Hi all forum Member,
>
[quoted text clipped - 31 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Boguslaw Faja - 28 Dec 2007 12:58 GMT
jawaid alam pisze:

> Hi all forum Member,
>
[quoted text clipped - 7 lines]
> through IIS Dropdownlist shows only localhost printers. its not showing
> network printers.

What kind of authentication do you use? Maybe IIS user doesnt have
access to printers?

br

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.