Print Page | Close Window

Change default Print to ALL pages

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Tips and Tricks
Forum Discription: Have you learned some great tricks to share with the group? Post them here!
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1172
Printed Date: 19 Apr 2024 at 5:58am


Topic: Change default Print to ALL pages
Posted By: bdean
Subject: Change default Print to ALL pages
Date Posted: 13 Aug 2007 at 8:20pm
CR .NET Viewer Tip - When trying to print to pdf the export window will popup with the Page Range selected by default.  In most cases it is desirable to print ALL pages.  To have "ALL" selected by default you will need to edit the export.js file.
 
Find the following sections of code:
 
 
<input type=\"radio\" id=\"radio1\" name=\"isRange\" value=\"all\"
 
<input type=\"radio\" id=\"radio2\" checked name=\"isRange\" value=\"selection\"
 
move the "checked" from the radio2 to the radio1 as follows:
 
<input type=\"radio\" id=\"radio1\" checked name=\"isRange\" value=\"all\"
 
<input type=\"radio\" id=\"radio2\" name=\"isRange\" value=\"selection\"
 

It is important to only change the export.js files which are in crystalreportviewers115 directories. You may break functionality of other Crystal Reports .NET applications if you change the wrong export.js files.

Hope this helps...stumbled onto this when trying to find out why the export function wasn't working on my deployment server.



Print Page | Close Window