Skip to Content
author's profile photo Former Member
Former Member

.Net Service - printing a CR-Report


i am using VisualStudio2008 to create a windows-service. (C#)

This service

- creates a PDF document by CReports

- should print a CR-Report to a named printer.

Creating the PDF works fine, but printing does not!

crypt.PrintOptions.PrinterName = printerName;

does not work. I always get the message "printer not found" at this point in the debugging-process.

The printername is verified to be correct (its in System.Drawing.Printing.PrinterSettings.InstalledPrinters).

This all works if i start the software that should print directly from my desktop.

If i start it from the service it is giving me above error ("printer not found");

I already tried starting the printing-program as "myUser" and the service does use "myUsers"-account to run.

Any help here?

THX in advance,


edit: to clarify the program flow:

(external action) -> service -> starts reporting software -> creates both PDF (works) and prints (which does not work)

Edited by: Cumulus7 on Oct 2, 2009 4:36 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 05, 2009 at 09:49 PM

    You don't mention what version of CR. But if it is CR 10.5 (ships with .NET 2008) ensure that you have applied SP1:

    If you are using CR 2008, apply SP2:

    If the SPs do not help, consider using the Process Monitor utility to see if it reports any access issues. Process Monitor can be downloaded from here:

    I assume this app does not view the reports? (it would be interesting to see what happens if you try to print from the viewer print button).


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2009 at 08:08 AM

    Has no one ever implemented a windows-service that prints a Crystal-Reports document?

    Favourably programmed in C#, but any language would help i guess.

    I would greatly appreciate any help on this matter.


    Markus Gayda

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.