different page sizes in one report

I've created a single master band report with one picture.
One page of the print have one image.
Pictures can be of different sizes.

How do you get the size of each page match the size of the image?

Example: The first page is 10 x 10 cm, the second page is 10 x 20 cm, the third is 20 x 20 cm.
This print is finally exported to pdf.

Changing the page size in OnBeforePrint has no effect.
Changing the page size in OnBeginDoc changes the size of all pages


Comments

  • gpigpi
    edited 2:34AM
    You may change TfrxReportPage size before preparing of report or after preparing of report, not during repor's preparing. Do you want to show one MasterData band on the page?
  • edited 2:34AM
    gpi wrote: »
    You may change TfrxReportPage size before preparing of report or after preparing of report, not during repor's preparing. Do you want to show one MasterData band on the page?
    1. MasterData on Page
    1. Image on MasterData
    Unknown number of pictures.
    Each image of other dimensions.
    Each page has paper dimensions according to image dimensions. Max size = A4
  • gpigpi
    edited 2:34AM
    Try to build composite report, create report for each image, set TfrxReportPage size before preparing of report

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.