Print Page | Close Window

Template scaling for A4 and Letter

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1542
Printed Date: 21 Apr 2025 at 2:33am


Topic: Template scaling for A4 and Letter
Posted By: jennm
Subject: Template scaling for A4 and Letter
Date Posted: 22 Oct 2007 at 10:11am

Hello all,

Just a quick little question regarding the paper size for a crystal report template.  I have created a template that is letter sized but I also want it to scale down for A4.  In my VB code I have

crOrderPrintout.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperLetter

or

crOrderPrintout.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4

based on the country selected. 

Now my A4 report gets chopped off.  I can certainly take my current template, save it as someting else, change the paper size and based on country use that template but I'm wondering if there's something I can do in my code to make the letter report fit on the A4 paper.  If I save it to a PDF, open up in Adobe and print from there, it gives me the option of page scaling but the user won't be opening up the report, it will get sent to the printer automatically.

Thanks for any suggestions!




Replies:
Posted By: BrianBischof
Date Posted: 22 Oct 2007 at 2:43pm
I don't know how to make CR scale to paper size. The only thing I can think of is to go into the object model and change the x coordinates of the report objects that get cut off.

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: jennm
Date Posted: 22 Oct 2007 at 3:16pm
I did some more playing around and I found something that seemed to work.  In the designer if I check out the Page Settings, I clicked the "Adjust Automatically".  And voila!  It works. :)


Posted By: amithashenoyks
Date Posted: 20 Jan 2011 at 6:19pm
Hello,
 
Please i got soemthing to do the similar what u have explained,in your post.When i do the changes wat u said in design,it throws error " the request could not be submitted for background processing"
Please Help....:(



Print Page | Close Window