Jump to content
Software FX Community

awekelun

Members
  • Posts

    5
  • Joined

  • Last visited

awekelun's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. To whom it may concern, I have just recently upgraded to Windows Vista and have a project that uses Chart FX 7 for 2005 to display some charts, the problem is that when I go to publish the project and browse to the page with the charts on it the page displays a login prompt and if I hit cancel the page displays red x's where the charts should be. I'm assuming this is a permissions issue but i haven't changed anything on the production server the only thing that has changed is the OS I'm developing on.
  2. I'm getting a red x in place of where my chart should be on my production web site, I have made sure that all my permission are set correctly on the sites directories. I don't know what else it could be any help would be greatly appreciated.
  3. I need help getting a constaint line in a chart that is inside of a datalist control. When I try to use the CustomGridLine function I keep getting a "System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." error during post back. This works fine when I add a chart to the form that is not inserted in the datalist control. See code below. Partial Class Chart Inherits System.Web.UI.Page Dim AddAssyLines As String Dim Chart As ChartFX.WebForms.Chart Protected Sub ChartBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChartBtn.Click AssyChkBox.Visible = False ChartBtn.Visible = False DataListRadar.Visible = True AddAssyLines = BuildValueList(AssyChkBox.Items, True) AssyLinesBTTlbl.Text = AddAssyLines Chart = DataListRadar.FindControl("Chart1") Dim custom1 As ChartFX.WebForms.CustomGridLine custom1 = New ChartFX.WebForms.CustomGridLine custom1.Value = 95 custom1.Color = System.Drawing.Color.DarkBlue custom1.Text = "Target 95%" custom1.Width = 2 Chart.AxisY.CustomGridLines.Add(custom1) End Sub Protected Function BuildValueList(ByVal items As ListItemCollection, ByVal itemMustBeSelected As Boolean) As String Dim idList As StringBuilder = New StringBuilder() For Each item As ListItem In items If itemMustBeSelected AndAlso (Not item.Selected) Then Continue For Else idList.Append(item.Value.ToString()) idList.Append(",") End If Next item Return idList.ToString() End FunctionEnd Class
×
×
  • Create New...