Chart FX-Printing the Chart
Another major consideration is the number of pages that are needed to print a chart. When you have a chart with a large number of points (Scrollable) and you print that chart, Chart FX will print as many pages as necessary. The Compress property forces Chart FX to print the chart in just one page by recalculating the appropriate values so that all the points can be fixed in one page. Please note the printed chart may have a different look if you use the Compress property before printing. Below is the API used to compress and print a chart:
When the Print method is called with no parameters, Chart FX will print the entire chart. To print selected pages of a chart, the nFrom and nTo parameters can be passed to the chart when the method is called. This will print only the specified range of pages for the chart. If the nTo parameter is configured to zero, Chart FX will print from the specified nFrom page to the end of the chart. And if both the nFrom and nTo parameters are set to –1, only the screen shown is printed (used to print a zoomed area of a chart).
If you would like to prompt the user with a print dialog, you may do so by calling the PrintDialog method. The print dialog allows the user to select the printer to be used, specify the print range and configure the number of copies to be printed. This property also uses a Boolean parameter called fromTo. When set to “True" users can modify the print range. When set to “False", the print range options are not available to the user. The API below will prompt the user with a print dialog: