FixEmfLines: Boolean;
FixEmfLines: boolean;
The FixEmfLines property determines a type of the metafile created on export.
If FixEmfLines is set to True, the type of the created metafile is EmfTypeEmfOnly, otherwise it is EmfTypeEmfPlusDual. Metafile type affects the appearance of dashed lines exported to EMF. Some problems (illustrator defect) arise when the EmfTypeEmfPlusDual metafile is opened in Adobe Illustrator CS5; if the EmfTypeEmfOnly metafile is used, it opens correctly. That is why metafile type can be selected by the user.
The default value is True.
The property is outdated, use IPrxReportExporter.EmfType.
Executing the example requires a regular report with the OBJ55 identifier. Add links to the Metabase and Report system assemblies.
Sub Macro;
Var
Mb: IMetabase;
Rep: IPrxReport;
Exp: IPrxReportExporter;
Begin
Mb:= MetabaseClass.Active;
Rep:= mb.ItemById("OBJ55").Bind As IPrxReport;
Exp:= New PrxReportExporter.Create;
Exp.Report := Rep;
Exp.FixEmfLines := False;
Exp.ExportToFile("c:\0.emf", "emf");
End Sub Macro;
After executing the example the report is exported to metafile in the EmfTypeEmfPlusDual format.
Executing the example requires a regular report with the OBJ55 identifier. Add a link to the Report system assembly.
Imports Prognoz.Platform.Interop.Report;
…
Public Shared Sub Macro(Params: StartParams);
Var
Mb: IMetabase;
Rep: IPrxReport;
Exp: IPrxReportExporter;
Begin
Mb:= Params.Metabase;
Rep:= mb.ItemById["OBJ55"].Bind() As IPrxReport;
Exp:= New PrxReportExporter.Create();
Exp.Report := Rep;
Exp.FixEmfLines := False;
Exp.ExportToFile("c:\0.emf", "emf");
End Sub;
After executing the example the report is exported to metafile in the EmfTypeEmfPlusDual format.
See also: