Jump to content
Software FX Community

Using Html to read data from text files


User (Legacy)

Recommended Posts

Hi there, i was wondering if anyone could help.

I am using chartfx clientserver 5.0

Im using html to embed an active x component of chartfx, but seem to be

having problems passing text file through this to produce a chart. I am

writing the code under VB script, as html supports this. I have hard coded

data to VB script into html, and this seems to work fine, i.e charts are

produced, but the data i am working on is large and constantly changing, and

to script it would take forever.

heres some vb script inside html

<script for="window" event="onload" language="VBScript">

with document.all("mychart")

.Chart3D = FALSE

with .Axis(0)

.Format = "0"

.Title = "Works Operations"

end with

.Axis(2).Title = "Status"

.Series(0).PointLabels = TRUE

.OpenDataEx 1,1,3

.Axis(2).Label(0) = "val1"

.ValueEx(0, 0) = 100

.Axis(2).Label(1) = "val2"

.ValueEx(0, 1) = 100

.Axis(2).Label(2) = "val3"

.ValueEx(0, 2) = 100

.CloseData 1

.RecalcScale

end with

</script>

this code is fine, its jus when i try to pass a data file through it, i seem

to get problems.

Hope someone can help,

thanx.

Link to comment
Share on other sites

Hello,

ChartFX Client Server 5.0 is not licensed to be used within a Web page.

Please view license agreement

http://www.softwarefx.com/SFXProducts/CfxClientServer/licensing.asp.

Additionally many of the methods used within ChartFX Client Server 5.0 are

not compatible with a web environment. Printing is a good example of this.

If you need to create a web based application with ChartFX then you have

three options. ChartFX Internet 5.5, ChartFX.Net, and ChartFX for Web

Matrix.

Justin Trask

Tech. Support

561-392-2023

"Kaushik" <kaushik.patel@aspentech.com> wrote in message

news:spAqYIERCHA.1060@webserver1.softwarefx.com...

> Hi there, i was wondering if anyone could help.

> I am using chartfx clientserver 5.0

>

>

> Im using html to embed an active x component of chartfx, but seem to be

> having problems passing text file through this to produce a chart. I am

> writing the code under VB script, as html supports this. I have hard coded

> data to VB script into html, and this seems to work fine, i.e charts are

> produced, but the data i am working on is large and constantly changing,

and

> to script it would take forever.

>

> heres some vb script inside html

>

> <script for="window" event="onload" language="VBScript">

>

> with document.all("mychart")

>

> .Chart3D = FALSE

>

> with .Axis(0)

> .Format = "0"

> .Title = "Works Operations"

> end with

>

> .Axis(2).Title = "Status"

>

> .Series(0).PointLabels = TRUE

>

> .OpenDataEx 1,1,3

>

> .Axis(2).Label(0) = "val1"

> .ValueEx(0, 0) = 100

>

> .Axis(2).Label(1) = "val2"

> .ValueEx(0, 1) = 100

>

> .Axis(2).Label(2) = "val3"

> .ValueEx(0, 2) = 100

>

> .CloseData 1

>

> .RecalcScale

>

> end with

> </script>

>

> this code is fine, its jus when i try to pass a data file through it, i

seem

> to get problems.

>

>

> Hope someone can help,

>

> thanx.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...