FullLengthTitle: Boolean;
FullLengthTitle: boolean;
The FullLengthTitle property determines whether the title is trimmed on exporting if its width exceeds the width of the workspace.
The property is relevant on exporting the objects having a separate title and a workspace.
If the FullLengthTitle property is set to True, the export is executed to fit the entire title. The workspace display is aligned to center relative to the title.
By default, the FullLengthTitle property is set to False, and the title is trimmed. The title and workspace images are aligned to the left edge.
Executing the example requires that the repository contains an ETL task with the ETL identifier.
Add links to the Andy, Etl, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
ETL: IEtlTask;
Wsp: IWxWorkspace;
View: IWxView;
Exporter: IWxViewExporter;
Begin
MB := MetabaseClass.Active;
// Get workspace
ETL := MB.ItemById("ETL").Bind As IEtlTask;
Wsp := ETL.Workspace;
View := Wsp.CreateView;
// Export
Exporter := New WxViewExporter.Create;
Exporter.WxView := View;
Exporter.FullLengthTitle := True;
Exporter.ExportToFile("C:\CurrentWS.jpg", "JPG");
End Sub UserProc;
On executing the example the ETL task workspace is exported. The title is exported to be entirely visible.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Etl;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
ETL: IEtlTask;
Wsp: IWxWorkspace;
View: IWxView;
Exporter: IWxViewExporter;
Begin
MB := Params.Metabase;
// Get workspace
ETL := MB.ItemById["ETL"].Bind() As IEtlTask;
Wsp := ETL.Workspace;
View := Wsp.CreateView();
// Export
Exporter := New WxViewExporter.Create();
Exporter.WxView := View;
Exporter.FullLengthTitle := True;
Exporter.ExportToFile("C:\CurrentWS.jpg", "JPG");
End Sub;
See also: