ReCrystallize Server can print Crystal Reports directly to printers that are configured on the web server. To print a report, add the

serverPrinter=

parameter to the URL or include it as a field when POSTing a form to ReCrystallize Server’s viewreport.aspx page.

The value assigned to serverPrinter should exactly match the name of the printer as defined in the Windows Printers folder or Windows Printers & Scanners, for example

ViewReport.aspx?reportName=library.rpt&author=Shakespeare&serverPrinter=HP LaserJet

where the printer on the web server is named “HP LaserJet”.

Note that this option does not affect user-initiated printing from the web browser and it cannot automatically print to a printer attached to a client PC.

Optional parameters:

Optional Parameter Effect
copies= Prints multiple copies of the same report.
fromPage= Specifies the first page of a range to be printed. If omitted, page 1 is used.
toPage= Specifies the last page of a range to be printed. If omitted, the last page is used.


Troubleshooting Printing Issues


By default, ReCrystallize Server runs in the context of the LocalSystem account to ensure that it can read and write all required files on the server. Printers that are available to other Windows user accounts may not be defined to the LocalSystem account, and therefore may not be available to ReCrystallize Server. To make the printers available to the LocalSystem account, a utility program named

ReCrystallizeServerPrinterFix.exe 

is available in the ReCrystallizeServer folder.

If ReCrystallize Server indicates that the named printer is not available, right-click

ReCrystallizeServerPrinterFix.exe 

and select Run As Administrator. All available printers will be copied in the Windows registry so that they are visible to LocalSystem and therefore available to ReCrystallize Server.

Alternatively, the IIS Application Pool named ReCrystallizeServer may be changed to another Identity such as NetworkService which normally has access to installed printers. Please note that changing the Application Pool’s Identity may prevent ReCrystallize Server from reading or writing some files. If errors or unexpected behavior occurs after making this change, modify file system permissions for the affected files or change the Application Pool Identity back to LocalSystem.

Last modified: 12 November 2021

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment