Using https in url for SeriesTextSource filename

TeeChart for ActiveX, COM and ASP
Post Reply
marksonbase
Newbie
Newbie
Posts: 10
Joined: Wed May 12, 2004 4:00 am

Using https in url for SeriesTextSource filename

Post by marksonbase » Fri Feb 04, 2005 10:37 pm

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

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Feb 17, 2005 9:24 am

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
Steema Support

Post Reply