Contents Previous Next


Destination Property (BDKGraphDefaults Object)

Description

Determines the destination of all graphs generated by the BDK. 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 BDKResult 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 BDKX 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

(BDKGraphDestination) – one of the values:

BDKBitmapImage
BDKMetafileImage
BDKBMPFile
BDKWMFFile
BDKJPGFile
BDKExcel

Example

'Return a metafile image into the PictureObject Picture1 on a form:
BDKApp.GraphDefaults.Destination = BDKMetafileImage
Set Picture1.Picture = dist.Graph(BDKCurveTypeDensity)
'Create a .BMP file:
With BDKApp.GraphDefaults
    .Destination = BDKBMPFile
    .DestinationFile = "C:\MyPicture.BMP"
End With
dist.Graph BDKCurveTypeDensity
'Send the graph to Excel:
BDKApp.GraphDefaults.Destination = BDKExcel
dist.Graph BDKCurveTypeDensity