Share via


Chart.GetImage Method (Chart.ImageType, out Boolean)

Returns a metafile of the chart in the specified format using the Office Web Components.

Namespace: Microsoft.ReportingServices.ReportRendering
Assembly: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

Syntax

'Declaration
Public Function GetImage ( _
    type As ImageType, _
    <OutAttribute> ByRef hasImageMap As Boolean _
) As MemoryStream
public MemoryStream GetImage (
    ImageType type,
    out bool hasImageMap
)
public:
MemoryStream^ GetImage (
    ImageType type, 
    [OutAttribute] bool% hasImageMap
)
public MemoryStream GetImage (
    ImageType type, 
    /** @attribute OutAttribute() */ /** @ref */ boolean hasImageMap
)
JScript does not support passing value-type arguments by reference.

Parameters

  • type
    An Chart.ImageType enumerator value indicating the format for the returned chart image.
  • hasImageMap
    [out] A Boolean value indicating whether the image has an image map.

Return Value

A MemoryStream object containing a metafile with the image in the specified format.

Remarks

New:5 December 2005

Currently supported image types are EMF or PNG.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Chart Class
Chart Members
Microsoft.ReportingServices.ReportRendering Namespace