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:58PM
    Try to change paper size in main procedure of script
  • edited 5:58PM
    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:58PM

    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