CorrectScale(Scale: Double; Size: IGxSizeF): Double;
Scale. Scale.
Size. Size.
The CorrectScale method adjusts the scale relative to the size of express report displayed area.
To get express report parameters, use the IEaxAnalyzer.Options property.
Executing the example requires an express report with the EXPRESS_TABLE identifier.
Add links to the Metabase, Express, Drawing system assemblies.
Sub UserProc;
Var
MB: IMetabase;
EAX: IEaxAnalyzer;
Scale: Double;
Size: IGxSizeF;
Begin
MB := MetabaseClass.Active;
EAX := MB.ItemById("EXPRESS_TABLE").Edit As IEaxAnalyzer;
Scale := 0.50;
Size := New GxSizeF.Create(50, 100);
EAX.CorrectScale(Scale, Size);
(EAX As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the scale equal to 50% of displayed area specified size is set for the express report.
See also: