Description
Determines the destination of all graphs generated by the RDK. Graphs may be returned as bitmap or metafile images, sent to .BMP, .WMF, or .JPG files on disk, or generated in Microsoft Excel. The default is to return a bitmap image. If you return a bitmap or metafile image, the resulting picture is the return object of the graphing call (for example the Graph method of the RDKResult object). If you specify the destination as a .BMP, .WMF, or .JPG file, be sure to specify set the DestinationFile property to the path of the file you wish to create. If you specify Microsoft Excel as the destination, the ExcelServer, ExcelServerVisible, and ExcelServerAutoClose properties control how the RDKX will launch, display, and close Excel. Keep in mind if you are using the Microsoft Excel graphing engine, not all graph default properties can be respected, since the Excel graphing capabilities are not as flexible as the other destination types.
Syntax
object.Destination
Arguments
None.
Return Value
(RDKGraphDestination) – one of the values:
| RDKBitmapImage |
| RDKMetafileImage |
| RDKBMPFile |
| RDKWMFFile |
| RDKJPGFile |
| RDKExcel |
Example
'Return a metafile image into the PictureObject Picture1 on a form:
RDKApp.GraphDefaults.Destination = RDKMetafileImage
Set Picture1.Picture = RDKApp.Outputs(1).Results.Graph(RDKCurveTypeDensity)
'Create a .BMP file:
With RDKApp.GraphDefaults
.Destination = RDKBMPFile
.DestinationFile = "C:\MyPicture.BMP"
End With
RDKApp.Outputs(1).Results.Graph RDKCurveTypeDensity
'Send the graph to Excel:
RDKApp.GraphDefaults.Destination = RDKExcel
RDKApp.Outputs(1).Results.Graph RDKCurveTypeDensity