Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 04:34 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resizing images according to paper size

Hello,
I use Crystal Report XI Developer edition combined with Delphi 7. I created runtime a report that displays images. With CrViewer the preview is fine but if I print it the images don't fit the page. I would like to write some code so that the images are resized according to the papersize A3, A4, letter and so on and they always fit the page.
Can somebody help me? Thanks

 
Old March 24th, 2006, 06:43 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm trying this way.

 printdialog1.execute;
 picture.width := printer.pagewidth;

and to this point it works; if I choose different paper formats the printer.pagewidth changes but...the last line

 crreport.printout(False,1,False,1,1);

ruins everything; if with printdialog I choose A3 che crreport.printout prints in A4; it completely ignores what I chose.

 
Old March 24th, 2006, 08:22 AM
Registered User
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

maybe this helps?

http://aspalliance.com/509

 
Old March 28th, 2006, 06:08 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I didn' find the information I need; I don't know what's so wrong with my code. I evend installed a hotfix provided by businessobjects that should correct the problem but I can't see any changes. Has anybody ever faced such a problem?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with custom paper size adrineh Crystal Reports 0 August 26th, 2006 03:21 AM
how to set the paper size in javascript sundarisekaran J2EE 1 July 15th, 2004 04:42 PM
Setting paper size using PrtdevMode Fehrer Access 5 December 16th, 2003 04:35 PM
NEED HELP on prtDevMode in setting the paper size Fehrer Access VBA 0 December 10th, 2003 07:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.