dotnetCHARTING Send comments on this topic.
UseFile Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : 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

Visual Basic (Declaration) 
Public Property UseFile As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim value As Boolean
 
instance.UseFile = value
 
value = instance.UseFile
C# 
public bool UseFile {get; set;}

Example

C#Copy Code
Chart.UseFile = true;
    
Visual BasicCopy Code
Chart.UseFile = true

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.

See Also

© 2010 All Rights Reserved.