ExportHyperlinkOpenURLAction: Boolean;
ExportHyperlinkOpenURLAction: boolean;
The ExportHyperlinkOpenURLAction property determines whether hyperlinks are exported on exporting report to PPTX (*.pptx) and HTML (*.html) format.
Available values:
True. Default value. Report text is exported with hyperlinks.
False. Report text is exported without hyperlinks.
Executing the example requires a regular report with the REGULAR_REPORT identifier.
Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("REGULAR_REPORT").Bind As IPrxReport;
Exp := New PrxReportExporter.Create;
Exp.Report := Report;
Exp.ExportHyperlinkOpenURLAction := False;
Exp.ExportToFile("C:\Report.pptx","pptx");
End Sub UserProc;
After executing the example regular report is exported to the Report.pptx file, the output file will not contain hyperlinks.
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.Report;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
Exp: IPrxReportExporter;
Begin
MB := Params.Metabase;
Report := MB.ItemById["REGULAR_REPORT"].Bind() As IPrxReport;
Exp := New PrxReportExporter.Create();
Exp.Report := Report;
Exp.ExportHyperlinkOpenURLAction := False;
Exp.ExportToFile("C:\Report.pptx","pptx");
End Sub;
See also: