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 ...
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
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.