Print, keep image within pagewidth, possible ?

General TRichView support forum. Please post your questions here
Post Reply
Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

Print, keep image within pagewidth, possible ?

Post by Stef »

Images that are too large, are printed outside the right border.

Is there a simple way to prevent that, by scaling too large images ?

thanks,
DavidRM
Posts: 91
Joined: Mon Aug 29, 2005 5:18 pm
Location: Tulsa, OK
Contact:

Post by DavidRM »

As part of the printing process, just before assigning the RVE to the RVPrint for final formatting, I cycle through the RVE items and check the width and height of each image.

Prior to doing that, of course, I have to calculate the maximum width and height are possible (accounting for page margins). And when resizing, I keep the aspect ratio of width vs height the same.

-David
Stef
Posts: 90
Joined: Mon Aug 29, 2005 9:56 am
Contact:

Post by Stef »

thanks David,

that might be a good solution,
because mine main interest is for large documents,
which I generate one item at a time.

cheers,
Post Reply