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 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.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Drawing;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
EAX: IEaxAnalyzer;
Scale: Double;
Size: GxSizeF = New GxSizeFClass();
Begin
MB := Params.Metabase;
EAX := MB.ItemById["EXPRESS_TABLE"].Edit() As IEaxAnalyzer;
Scale := 0.50;
Size.Create(50, 100);
EAX.CorrectScale(Scale, Size);
(EAX As IMetabaseObject).Save();
End Sub;
See also: