KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Printing a 4D Chart area programmatically without a dialog
PRODUCT: 4D Chart | VERSION: 2003.4 | PLATFORM: Mac & Win
Published On: August 12, 2004

Compatible with 4D 2003.x

To print a 4D Chart area without requesting any intervention by a user, use the following command, CT PRINT. CT PRINT is similar to selecting the File menu, followed by Print. However; this command allows the developer the option to display the Print Setup dialog box. Merely pass the third parameter a 0 and the Print Setup dialog will be suppressed. For more information about the command, please refer to the documentation:
https://www.4d.com/docs/CMU/CMU14555.HTM

Example:
CT PRINT (ChartArea;0;0)