Visual Basic (Declaration) | |
---|---|
Public Property UseFile As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool UseFile {get; set;} |
C# | Copy Code |
---|---|
Chart.UseFile = true; |
Visual Basic | Copy Code |
---|---|
Chart.UseFile = true |
.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.
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.