This sample demonstrates printing and exporting the diagram as images.
This example shows how to print the diagram and how to export the diagram as image (*.jpg, *.png, and *bmp) and in SVG format. The exportDiagram method can be used to export the diagram. The exportDiagram method takes the exporting options (file formats, mode of export, and the region to export) as input. The print method can be used to print the diagrams.