473,387 Members | 1,834 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,387 software developers and data experts.

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.InvalidPrinterException: No printers are installed.

at System.Drawing.Printing.PrinterSettings.GetHdevmod eInternal()

at System.Drawing.Printing.PrinterSettings.GetHdevmod e()

at System.Drawing.Printing.PageSettings.GetPaperSize( IntPtr modeHandle)

at System.Drawing.Printing.PageSettings.get_PaperSize ()

at
CrystalDecisions.CrystalReports.Engine.PrintOption s.FindPaperSize(PrinterSettings
printer, PaperSize size)

at
CrystalDecisions.CrystalReports.Engine.PrintOption s.CopyTo(PrinterSettings
printer, PageSettings page)

at
CrystalDecisions.CrystalReports.Engine.FormatEngin e.PrintToPrinter(Int32
nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

Thank You

Peter
Mar 16 '08 #1
1 7548
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
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...
1
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...
1
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...
1
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...
2
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...
2
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....
4
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...
6
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...
18
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...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.