?
Solved

Send Print jobs through IIS

Posted on 2011-09-30
2
Medium Priority
?
274 Views
Last Modified: 2012-05-12
I have a web application that prints a label to a network printer. The C# Code is simple:

                var prnDocument = new PrintDocument {PrinterSettings = {PrinterName = "Network Printer"}};
                prnDocument.PrintPage += PrintOrderLabels;
                prnDocument.Print();

private void PrintOrderLabels(object sender, PrintPageEventArgs e)
        {
 var fnt = new Font(FontFamily.GenericSerif, 10);
 float yPos = 10;
            float xPos = 25;
            e.Graphics.DrawString("Hello", fnt, Brushes.Black, xPos, yPos);
}

When I'm debugging in vs2010, i can print to the network printer all night. When I deploy my app in IIS, i cant print. I dont get an error and there is nothing in the event logs. I was using this exact same code to print to another network printer and it worked fine. I think there is a setting in IIS i havent changed in order to print to the new printer. The admin who setup the first printer is on vacation, so I dont know what he did in order to make the first printer work. Does anyone know how I can make the new printer print through IIS?
0
Comment
Question by:troycomp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
dj_alik earned 1500 total points
ID: 36896027
1. setup drivers if network printer on server  and set shared name
2. set IIS pool identity to local system

 
0
 

Author Closing Comment

by:troycomp
ID: 36982291
abandoned the project
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question