.netCHARTING v10.5 Documentation
Example 


UseFile Property
Gets or sets a value indicating whether the generated image is saved as a file in the TempDirectory folder or streamed directly to the browser.
Syntax
'Declaration
 
Public Property UseFile As Boolean
'Usage
 
Dim instance As Chart
Dim value As Boolean
 
instance.UseFile = value
 
value = instance.UseFile
public bool UseFile {get; set;}
Remarks
.netCHARTING supports streaming images in addition to returning a reference to a generated file. There are differences in the way the control can be used between these two image return methods. When using a file reference, you are free to treat the page as you normally would, including HTML and any other web content on the page.

If you are streaming the image back, only the control call should exist on the page because no other HTML will render. This is not a limitation of .netCHARTING but rather specific to the HTTP implementation which serves each request separately (as such a request to a web site with 3 images is actually 4 unique requests and the browser does the job of assembling those 4 items into the web page you see.

Becauase streaming images does not allow HTML, setting url and tooltip properties of elements on the chart will have no effect.
Example
Chart.UseFile = true;
Chart.UseFile = true
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

See Also