IEnvironment.NoPromptDBConnect
IEnvironment

property NoPromptDBConnect: WordBool;

Type Library
TeeChartx

Description
Default False. When set to true, enables login parameters to be placed in DSN connection string such as that required with Microsoft's Active Server Page scripting.

Example [VBScript]:

<!-- Create the ActiveX object -->

<OBJECT RUNAT=Server

classid="clsid:008BBE7E-C096-11D0-B4E3-00A0C901D681"

codebase="TeeChart.ocx#version=4,0,0,0"

id=TChart1

TYPE="application/x-oleobject"

width=500

height=250

align=center

hspace=0

vspace=0

>

</OBJECT>

<!-- Fill and save the Chart on the server -->

<SCRIPT Language="VBScript" RUNAT=Server>

SUB FillSave()

TChart1.AddSeries(1)

TChart1.Environment.NoPromptDBConnect = True

TChart1.Series(0).DataSource = "DSN=MyDSN;UID=MyLoginName;PWD=MyPassword; sql=SELECT Type, SUM(Value) sumvalues from Sales where Value > 25 group by Type"

TChart1.Series(0).LabelsSource = "Type"

TChart1.Series(0).YValues.ValueSource = "sumvalues"

TChart1.Series(0).CheckDatasource

TChart1.Export.SaveToFile "c:\tempfiles\mychart.tee"

END SUB

</SCRIPT>