473,508 Members | 2,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invalid Printer Specified

I have a web application running on IIS 6 with .net 2,I am using
ReportDocument object model in crystal reports to print some reports, I am
not using the report viewer control, it is all in the code, the user just
press a custom link, and then the report is printed.

Here are the printing methods

PrintOptions printOptions = report.PrintOptions;
printOptions.PrinterName = printerName;
printOptions.PaperOrientation = PaperOrientation.Portrait;
printOptions.PaperSize = PaperSize.PaperA4;
printOptions.PrinterDuplex = PrinterDuplex.Simplex;
report.PrintToPrinter(numberOfCopies, false, 0, 0);

Now my problem is the report prints as long as the (IIS process user) whose
identity is used to run the w3wp, is phisically logged on the IIS server, but
if no user is logged on I got the “Invalid Printer specified” error.

I tried to add the printer to the default user account on IIS server using
ther article in here
http://g.msn.com/9SE/1?http://suppor...=2&CS=AWP&SR=2

And also add it explicity to (IIS process user) but the same erorr is still
in place

Any ideas will be mostly appreciated .

Jun 5 '06 #1
1 6181
Hello,

For a Crystal Report related issue, you may post in their forum or contact
they support:

http://www.businessobjects.com/support/default.asp

Thank you for understanding!
Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 5 '06 #2

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

Similar topics

2
3434
by: qumpus | last post by:
My program right now generates USPS style shipping label using System.Drawing.Graphics. It works fine except that the printer prints really slowly. I want to make my program take advantage of true...
1
11847
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32...
6
10462
by: Ioannis Demetriades | last post by:
Hi, I need to change the printer's font to "control" -a printer font, and then send a sequence of characters to the printer. My problem is that I cannot change the printer's font. Can this be...
0
2004
by: a_man | last post by:
Hi everyone Im writing an application in c# and I want to print directly to a printer with some printer specific commands than only the printer understands. Below is my code. I have an arraylist...
2
11060
by: ExitusLSU | last post by:
Is there a way to change the DEFAULT printer settings for an installed printer? I want it to change the printer settings for a specified printer at the whole OS/Windows level, not just for the...
3
3469
by: george | last post by:
Hi group, I am new to this group and since I didnt find anything on Internet related to my problem I wanted to know if anyone know or may help me. What I have to do is: - Monitor a Network...
2
1796
by: =?Utf-8?B?Qm9vazIwNDc=?= | last post by:
I am stumped. I lost my printer about a week ago and cannot reinstall it. When I try it tells me that the specified print monitor cannot be found. I have a Dell computer with Windows XP and a...
8
2869
by: Phil Stanton | last post by:
Using Access 2000 (Yes I know there is no Printer specified) and an MDE File (Yes I know I can't open a report in design view). Is there any way using VBA of temporarily changing the report's...
10
3352
by: bhughes2187 | last post by:
Hey all, The access app I am creating, pulls a .dbf file into a table in access. The name of the printer to be printed to is contained in that file/table. How would I cycle through the list of...
0
7225
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,...
0
7123
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
7326
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,...
0
7383
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...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
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 projectplanning, coding, testing,...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.