| RMC_Draw2Clipboard function. | ||
| Draws a chart into the clipboard | ||
| Syntax | ||
| nResult (LONG) = RMC_Draw2Clipboard( ByVal nCtrlId (LONG), Optional ByVal nType (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control, which shall be copied to the clipboard. | ||
| nType (LONG) | ||
|
RMC_BMP (Default): a bitmap (CF_BITMAP) is copied to the clipboard. RMC_EMF: an Enhanced Metafile (CF_ENHMETAFILE) is copied to the clipoard. RMC_EMFPLUS: does obviously not work (at least I had no success). | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| RMC_ERROR_CLIPBOARD | ||
| Error while opening the clipboard. | ||
| RMC_ERROR_EMF | ||
| Error while creating the EMF file. | ||
| Remarks | ||
| You can call RMC_Draw2Clipboard either any time after you called RMC_Draw (for instance if your user clicked on an available button) or "stand alone", without painting on the screen. In this case parameter nExportOnly in RMC_CreateChart() must be TRUE. Then, after the necessary function calls for designing your chart, you call RMC_Draw2Clipboard, followed by RMC_DeleteChart()! | ||