Custom reporting - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

This example shows how to use Crystal Reports on the server side to produce a formatted pdf file representing the data you have requested. We have defined a template that is provided and very easy to add images and other content.

Selecting the options pictured above results in the report shown below.

This is all produced on the server side. There are several MethodDefs on the ISPFAdHocReport interface that can be used to display a custom report. For this example, we added a new interface called IExCustomAdhocReport and changed the ClassDef to realize the new interface and got it to imply ISPFAdHocReport.

So when the MethodDefs are called (using ToInterface), the software knows from the specialization file that IExCustomAdhocReport is more specialized and calls that first.

Included in the project is sample Crystal Report (*.rpt) file that can be modified using the integrated Crystal Reports user interface. There is a document included in the server side training project that describes how this has been done.