DYNAMIC CHANGE OF PAGE SIZE

good days !!!

Merry Christmas and happy new year for all !!

I need change the papersize property of a repor in runtime ..

I load the .fr3 with frx.loadfromfile( xxx ), and in the script ,
in event page1.beforeprint i want to do something
page1.papersize := DMPAPER_A5;

BUT,,, this does not work,,,

i can help me ?

Thanks ...


Comments

  • gpigpi
    edited 5:09AM
    Try to change paper size in main procedure of script
  • edited 5:09AM
    gpi wrote: »
    Try to change paper size in main procedure of script

    This is the result of the Attempt
    Page1.PaperSize := DMPAPER_A5; // NOT DECLARED IDENTIFIER DMPAPER_A5 ...



  • edited 5:09AM
    Try to change paper size in main procedure of script

    This is the result of the Attempt
    Page1.PaperSize := DMPAPER_A5; // NOT DECLARED IDENTIFIER DMPAPER_A5 ...

    DMPAPER_A5 is declared in Windows.pas
    You can use:
    Page1.PaperSize := 11;
    Or declare a constant.

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.