views:

417

answers:

1

Hello ,

Can a crystal report be scaled to fit page?

I'm hoping to achieve something similar to Microsoft Excel's Scale To Fit feature wherein a large spreadsheet can be scaled to fit a 8.5"x 11" page. (On MS Excel 2007 goto Page Layout > Scale To Fit).

Im searching of a way to make a large report fit into a smaller page during print. for example a report designed in Legal(8.5"x 14") page must be able to shrink when print previewed for Letter(8.5"x 11") page.

In my crystal report, it should be scaled to fit the page by default. I was thinking maybe theres a Crystal Report Setting or C# code technique that I missed out.

Any hint or link to the right direction is appreciated.

Thanks!

+1  A: 

Hi, This not quite that you need, but I hope it can be helpfull. I use FastReport .NET and with this reporting tool a can do it from C#, by following code:

report.PrintSettings.PrintMode = PrintMode.Scale;
report.PrintSettings.PagesOnSheet = PagesOnSheet.One;
report.PrintSettings.PrintOnSheetHeight = 210; // paper height in millimeters 
report.PrintSettings.PrintOnSheetWidth = 148; // paper width in millimeters
programer256