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

printer installation error

1
i have installed printer in my computer and when i run web site from debugging printing works, but when i publish my web site and run it from iis it couse an error
System.Drawing.Printing.InvalidPrinterException: No printers are installed

ehat should i do, pease help me.
thanks
Dec 19 '11 #1
1 2583
Frinavale
9,735 Expert Mod 8TB
The most important thing to understand doing any type of web development is the concept of Server-Side-Code and Client-Side-Code.

Server side code is executed on a web server. It dynamically generates HTML (and maybe JavaScript) that is sent to the browser so that the browser can display information to the user.

The client side code is any code that is displayed in the browser. It is the HTML and JavaScript that the browser is using to display data to the user.

Any C# or VB.NET code that you have as part of your ASP.NET application is executed on the server. So, if you use the System.Drawing.Printing namespace in your C# or VB.NET code, it will attempt to connect to a printer on the server to print something. That means that the web server has to be connected to the printer and that your ASP.NET application has to be running under an account that has permissions to access the printer. It also means that, if the printing was successful, the person using your web application will not see the print out (since it physically printed off a printer attached to the web server).

If you want the end user to be able to print something, then you need to use client-side code to achieve this. JavaScript is a client side scripting language that lets you run code (like printing) in the browser.

So, I recommend you look into using the JavaScript print() method and also look into creating a printing style sheet so that content prints in a printer friendly way... in the way you want it to print.... on the end user's printer.

-Frinny
Dec 19 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: CH3 | last post by:
Hi, I've not done any programming for years, but I would like to write a simple program/script to help with something at work. We have several print servers for our 2000+ users, and whenever we...
1
by: Mark Anderson | last post by:
I am trying to install a new software application (QuickBooks Pro) which requires that the Microsoft .Net Framework 1.1 be loaded first. Every time I try to install .Net 1.1, it gives me the...
5
by: azgoddess1 | last post by:
During the installation I get these error messages: ***** SQL1390C The environment variable DB2Instance is not defined or is invalid An error ocured while loading the command "C:\Program...
4
by: cboccio | last post by:
Hi everybody !! I am new in DB2 database word, and I am trying to install a DB2 Personal Edition in my notebook to study it, but I have some problems during the installation. I have the...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
1
by: Yi Xing | last post by:
I log into the machine remotely. How do I check the Mac OSX version number under command line? Thanks. hiaips rosedb0 at gmail.com Wed Aug 16 01:23:10 CEST 2006 * Previous message: MySQLdb...
0
by: vermarajeev | last post by:
How do I check whether any printer is installed on my windows or linux systems???? Basically I'm working on printing options and want to pop up a message to the user if there is no default printer...
2
by: =?Utf-8?B?UmV5bm9sZHNVc2Vy?= | last post by:
Is there a way from within a C# app to create a printer? I am looking to automate the creation of (possibly) dozens of printers, to prevent having to go through the "Add Printer Wizard" so many...
1
by: sureshbalajiv | last post by:
When I am trying to installa the Epson TM-U220 Printer driver in Windows XP, I am getting this error, If any one can help out to solve this problem. Error:- System Call error, The specified...
2
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.