Page 1 of 1

Using https in url for SeriesTextSource filename

Posted: Fri Feb 04, 2005 10:37 pm
by 9082453
When trying to obtain SeriesTextSource data from a filename that is an SSL URL, the graph fails to load any data. The same code works just fine on a non-SSL connection. Is it not possible to load data via HTTPS? I am using version 5.0, so is this also an issue with version 6?

Mark

Posted: Thu Feb 17, 2005 9:24 am
by Marc
Hello Mark,

We tried placing the following code into the SeriesTextSource form of the large TeeChart VB demo project and ran it successfully to populate the Chart. It has been checked with TeeChart AX v5 and v6.

Please check your code against the following, or run the test here to confirm that you can import the TeeChart test sample from steema.com.

Code: Select all

Private Sub Command3_Click()
  TChart1.Series(0).asSurface.IrregularGrid = True
  TChart1.Axis.Left.Increment = 0.01
  With SeriesTextSource1
  
    ' AddField AName refers to the Series ValueList name
    ' The AIndex refers to the Column index of the text file
    ' beginning with Column 1
    With TChart1.Series(0)
      For i = 0 To .ValueLists.Count - 1
        SeriesTextSource1.AddField .ValueLists.Items(i).Name, i + 1
      Next i
    End With
    
    .Series = TChart1.Series(0)
    If InStr(CStr(5.3), ",") > 0 Then
      .LoadFromURL "https://www.steema.com/files/public/SampleData.txt"
    Else
      .LoadFromURL "https://www.steema.com/files/public/SampleDataPoint.txt"
    End If
    
    .Active = True
  End With
End Sub
Regards,
Marc Meumann