Chart / Import and Export / Export / Printing a Chart
In This Topic
    Printing a Chart
    In This Topic

    NOV Chart for .NET has an integrated print exporter that allows you to preview the generated content and to adjust the printer settings such as margins, page fitting, page orientation, etc. This functionality is exposed by the NChartPrintExporter type. The following code shows how to display a print dialog, which allows the user to print a chart:

    Printing a chart with a print preview
    Copy Code
    NChartPrintExporter printExporter = new NChartPrintExporter(chartView.Content)
    printExporter.ShowDialog(chartView.DisplayWindow, true);
    

    To skip the print preview and show the native print dialog directly, use the Print method of the print exporter:

    Printing a chart directly
    Copy Code
    NChartPrintExporter printExporter = new NChartPrintExporter(chartView.Content)
    printExporter.Print;
    
    See Also