[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Category("Xceed Chart for ASP.NET")]
[Description("Retrieves the current server configuration of the control.")]
[Browsable(false)]
public ServerConfiguration ServerConfiguration {get; set;}
'Usage
Dim instance As ChartServerControl
Dim value As ServerConfiguration
instance.ServerConfiguration = value
value = instance.ServerConfiguration
Remarks
With the help the ServerConfiguration object you can change the server configuration of the chart at runtime. For example the location of the temp directory, the default browser response and other settings.
Example
The following lines of code instruct the chart to generate a PNG image.
' override any settings we may have inherited from the web config file
ChartServerControl1.ServerConfiguration.Responses.Clear()
Dim response As Response = New ImageResponse()
Dim jpegDescription As JPEGDescription = New JPEGDescription()
jpegDescription.Quality = 100
response.ImageDescription = jpegDescription
ChartServerControl1.ServerConfiguration.DefaultResponse = response
// override any settings we may have inherited from the web config file
ChartServerControl1.ServerConfiguration.Responses.Clear();
Response response = new ImageResponse();
JPEGDescription jpegDescription = new JPEGDescription();
jpegDescription.Quality = 100;
response.ImageDescription = jpegDescription;
ChartServerControl1.ServerConfiguration.DefaultResponse = response;
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2