Skip to Content
avatar image
Former Member

Printing a CR w/ VS 2015 Windows Service is printing many copies when it should only print 1 page

Hello,

I have a crystal report template that is populated with data in a windows service. When the service sends the job to the printer, the printer queues up the job as having many pages. In the printer queue I'm seeing that for one report it's printing 54 pages when it should only print a single page. The report is landscape.

Is there a specific setting that I need to apply in the code to force that only a single page gets printed?

I've been looking at the code in the RAS2010_Printing application that Don Williams wrote but I'm not seeing any obvious solutions to this particular problem.

Thank you,

Michael Helduser

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    This only happens with one of my reports that I'm printing in landscape page orientation. The other report template is printing fine.

    I have one template that appears to be doing this. It repeats the same page and prints that same page and same data either 48 or 54 times. I know that from looking at the print job queue for the printer. What might be causing the report to generate all of those copies. It's only one print job but 48 or 54 pages of copies of the same single page report.

    Any ideas on what might cause something like this?

    This report like the other that prints correctly was created in CR Version 10.

    Thank you,

    Michael Helduser

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 27, 2017 at 09:46 PM

    Hi Michael,

    I have another app that has the printer plus ability to set log on info:

    https://blogs.sap.com/2016/02/17/how-to-parameters-in-crystal-reports-for-visual-studio-net/

    You can test it in that app. Run in debug mode because it is looking to set parameter values so you can comment out those lines.

    So the reports do not have saved data, that is why it's prompting...

    Don

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2017 at 08:27 PM

    Wow... that's a new one... Never heard of that before...

    When you say Windows Service is it the basic winspooler service or some third party print manager?

    If you send out a 2 page report how many pages get printed?

    Are you using a real printer or using a Remote Session and the (Redirected 2 ) drivers?

    CR requires the printer to be available and installed on the local PC when printing.

    Don

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      It's on CR Version 10 so I need to get access to that designer. I just spoke with SAP support and they don't have the old installers for that version. I suppose I could try to see if I can fix the issue in the designer for CR 2016. I'm seeing if the customer can find the old CR Version 10 installer.

      I unchecked the No Printer checkbox and attempted to click the SetPrinter button and it made the printer the printer that I'm trying to print to on the server.

      I then tried the POController button and it errors out that it can't connect to the database. I think it's trying to connect to the database that was used when the report was initially created. I'll need to get into the report template and repoint it to the correct server and database for this test to work.

      What is the oldest version of Crystal that is available for download and install? I realize version 10 isn't available for download but what would be the next version up from that which would be available to install?

      Thanks,

      Mike