Product: TIBCO Spotfire®
Exporting to PDF in a C# custom tool.
This article provides sample code in C# for exporting to PDF. C# Code:
PdfExportSettings pdfexpsettings = new Spotfire.Dxp.Application.Export.PdfExportSettings;
pdfexpsettings.Scope = ExportScope.AllPages;
pdfexpsettings.PageOrientation = PageOrientation.Landscape;
ExportScope has the possibilities listed here:
The same code using a script is not possible because of the way Python support has been implemented in Spotfire. See KB 40521 for details.
Disclaimer: The script code in this article is only a sample to be used as a reference. It is not intended to be used "As Is" in a Production environment. Always test in a Development environment. Make modifications to the script in accordance with your implementation specifications that best suit your business requirements. Refer to the API reference(s) cited in this article for usage of the classes and methods used in the script.