Visual Basic (Declaration) | |
---|---|
Public Overridable Property ImageUrl As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As FileImageRender Dim value As String instance.ImageUrl = value value = instance.ImageUrl |
C# | |
---|---|
public virtual string ImageUrl {get; set;} |
If ImageUrl is empty, these names are automatically manufactured by the web chart control.
This example saves the chart image to a file.
C# | Copy Code |
---|---|
this.FpChart1.ImageRender = new FarPoint.Web.Chart.FileImageRender(); FpChart1.ChartImageType = FarPoint.Web.Chart.ImageType.Jpeg; FpChart1.JpegQuality = 98; FarPoint.Web.Chart.FileImageRender fileImageRender = this.FpChart1.ImageRender as FarPoint.Web.Chart.FileImageRender; fileImageRender.ImageUrl = "test.jpg"; |
Visual Basic | Copy Code |
---|---|
Me.FpChart1.ImageRender = New FarPoint.Web.Chart.FileImageRender() FpChart1.ChartImageType = FarPoint.Web.Chart.ImageType.Jpeg FpChart1.JpegQuality = 98 Dim fileImageRender As FarPoint.Web.Chart.FileImageRender = TryCast(Me.FpChart1.ImageRender, FarPoint.Web.Chart.FileImageRender) fileImageRender.ImageUrl = "test.jpg" |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family