Help - Search - Members - Calendar
Full Version: DYNAMIC CHANGE OF PAGE SIZE
Fast Reports forum > Fast Reports Products > FastReport 4.0
query spain
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 ...


gpi
Try to change paper size in main procedure of script
query spain
QUOTE(gpi @ Dec 30 2011, 07:29 AM) *
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 ...



Peta
QUOTE(query spain @ Dec 30 2011, 05:06 PM) *
QUOTE(gpi @ Dec 30 2011, 07:29 AM) *
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.