473,651 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing From a WebService No printers are installed.

ASP.NET 3.5

I am trying to print from a Webservice on Windows 2003 box, but I am getting
the following error when I try to print
I have tried the following solution but it did not help
http://support.microsoft.com/?kbid=184291
(I have a local and a network printer installed)

Is there a fix for this problem or should I be using different solution for
printing on the server?

The Error:

System.Drawing. Printing.Invali dPrinterExcepti on: No printers are installed.

at System.Drawing. Printing.Printe rSettings.GetHd evmodeInternal( )

at System.Drawing. Printing.Printe rSettings.GetHd evmode()

at System.Drawing. Printing.PageSe ttings.GetPaper Size(IntPtr modeHandle)

at System.Drawing. Printing.PageSe ttings.get_Pape rSize()

at
CrystalDecision s.CrystalReport s.Engine.PrintO ptions.FindPape rSize(PrinterSe ttings
printer, PaperSize size)

at
CrystalDecision s.CrystalReport s.Engine.PrintO ptions.CopyTo(P rinterSettings
printer, PageSettings page)

at
CrystalDecision s.CrystalReport s.Engine.Format Engine.PrintToP rinter(Int32
nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

Thank You

Peter
Mar 16 '08 #1
1 7568
When your server runs the ASP.Net code, it runs in a separate user account (not one that that you log into)... that user account probably doesn't have any printers installed, eventhough the user accont you log in with on the server does. (I'm not sure exactly which account it is but you can Google it).
Jun 27 '08 #2

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

Similar topics

1
2579
by: Sven Erik Matzen | last post by:
Hi, We have a server side application that should be able to print to network printers. The problem: How can I setup printers for the IUSR_SRV-... account in a way that I can use them from a .NET webservice? CU, Sven
1
3259
by: alb120 | last post by:
I implementing Internet Printing; but it fails: http://w23ksv/printers/ gives error on EI Version 6.0.2800.1106 (XP) "Server object error 'ASP 0193 : 80020009' OnStartPage Failed /printers/ipp_util.inc, line 74 An error occurred in the OnStartPage method of an external object. "
1
3107
by: Maileen | last post by:
Hi, I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and physical port LPT1 :( could you help me please ? thx, Maileen. '---- to print report on network printer --- ' RSP = stored procedure
1
1212
by: MrMike | last post by:
Hi. I have a webform which I need to print automatically to a specific printer once it is opened. I've searched all around but I can't find the code to achieve ths. Basically I assume I just some code in the Page_Load event that fires to print the webform when it loads. Could someone please assist me? Thanks.
2
2884
by: Jurjen de Groot | last post by:
I'm about to start a new ASP.NET application, this application will generate several types of documents (PDF HTML XML-DOC) wich have to be printed at the client-side... (probably on different printers A3 and A4 type) At this time I'm trying to figure out what would be the best way to accomplish this : 1. printing through HTML in a IE windows will result in page title & nr as header and URL + Date as footer, wich is far from acceptable....
2
4103
by: J | last post by:
Hello all, I am currently trying to create a printing webservice for internal use. Basically, this webservice would accept the name of a file and try to print that file to a particular printer. I was thinking of using WMI to access the printers installed on the machine hosting the webservice. It what I described possible? Can you access the printers on a machine via WMI or as there security issues that would prevent this? If you...
4
16797
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's Tip to these Topics. The Tip will actually consist of several Tips which I feel are very useful for all Users, from Newbies to Experts. In order to utilize the code contained within these Tips, you must have Access 2002 or later. How can I...
6
4556
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, I have a web application that prints a form using PrintDocument on the server. Currently it is set up to print to the default printer (on the server). My users would like to be able to select the printer (there are several on the network that the server can use). How can I bring up a print dialog box in the client browser that offers the
18
11290
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing classes, for each of the checked rows in the GridView. This works fine in the Visual Studio 2005 development environment on localhost. But, when I move the page to the web server, I get the error "Settings to access printer...
0
8357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8803
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7298
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.