Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 how to Change CategoryValues Heading
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

syedshanu

17 Posts

Posted - 06 Aug 2007 :  21:46:00  Show Profile  Reply with Quote
Hai I have Purchase the Developer version of SPC Chart and all its works fine but in my control chart i load data from data base the heading is like sample#1,sample#2
but i need to change this as i like ex 1,2 and etc

please help me in this regards.

this is my sample code of simulate data
Private Sub SimulateData()
Try
Dim notesstring As [String] = ""
Dim icount As Integer
Dim chk As Integer
Dim chk1 As Integer
chk = 0
chk1 = chk
For icount = 0 To spcDataArray.Length - 1
' Dim test As DoubleArray = New DoubleArray(1)
'ChartCalendar initialized with current time by default
Dim timestamp As ChartCalendar = CType(startTime.Clone(), ChartCalendar)
' Dim test As DoubleArray = New DoubleArray(1)
Dim test As DoubleArray = New DoubleArray(2) 'Me.ChartData.SimulateMeasurementRecord(30)
' test = Me.ChartData.SimulateMeasurementRecord(System.Convert.ToDouble(repeaddataset.Tables(0).Rows(icount).Item(3).ToString()))
If icount < spcDataArray.Length - 1 Then
test.Item(0) = System.Convert.ToDouble(spcDataArray(chk).ToString())
' Else
test.Item(1) = System.Convert.ToDouble(spcDataArray(chk + 1).ToString())
chk = chk + 2
Dim s As String
s = spcDataArrayengnum(icount).ToString() & vbCrLf & spcDataArrayengnum(icount + 1).ToString()
Me.ChartData.AddNewSampleRecord(timestamp, test, s)
startTime.Add(ChartObj.MINUTE, timeincrementminutes)
End If
Next
Catch ex As Exception
End Try
End Sub 'SimulateData

shanu

quinncurtis

1164 Posts

Posted - 07 Aug 2007 :  12:24:42  Show Profile  Reply with Quote
We include a simple routine to change the default sample row header string "Sample #" in your case. Unfortunately that was not made public so you can't access it. That is a bug and we have since fixed it and uploaded a fixed version of the QCSPCChart library to our web site. You can update your software by just downloading and reinstalling the software again using your original download links.

The way it works is that you just set the static property: SPCControlChartData.DefaultSampleRowHeaderPrefix before the call to the InitSPC... method. In the example below the string is set to the null "" string. It MUST be called before the InitSPC.. method.


' VB
SPCControlChartData.DefaultSampleRowHeaderPrefix = ""
' Initialize the SPCTimeVariableControlChart 
Me.InitSPCTimeVariableControlChart(charttype, numsamplespersubgroup, numdatapointsinview, timeincrementminutes)
.
.
.

// C#
SPCControlChartData.DefaultSampleRowHeaderPrefix = "";
// Initialize the SPCTimeVariableControlChart 
this.InitSPCTimeVariableControlChart(charttype,  
numsamplespersubgroup, numdatapointsinview, timeincrementminutes);
.
.
.


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07