Jump to content
Software FX Community

printing


User (Legacy)

Recommended Posts

Is there a way to print a chart from the client side using the

SoftwareFX.ChartFX.Internet.MainClient .net control using javascript? I

tried to get a reference to the object in javascript with

document.getElementById('chart1'). I then attempted to call the

chart1.Printer.Print(); method to print the graph unsuccessfully. If it is

possible a simple example would be helpful.

Thanks,

Glenn Hard

Link to comment
Share on other sites

Hello,

Here is a small sample that I had made previously using vbscript. It should

be easy enough for you to convert to javascript. By the way you will need

to turn off the main client feature.

JT

Software FX

Tech. Support

"Glenn Hard" <glennhard@thenexsysgroup.com> wrote in message

news:Z2dvIK0ODHA.2860@webserver1.softwarefx.com...

> Is there a way to print a chart from the client side using the

> SoftwareFX.ChartFX.Internet.MainClient .net control using javascript? I

> tried to get a reference to the object in javascript with

> document.getElementById('chart1'). I then attempted to call the

> chart1.Printer.Print(); method to print the graph unsuccessfully. If it

is

> possible a simple example would be helpful.

>

> Thanks,

> Glenn Hard

>

>

Link to comment
Share on other sites

Have you tried chart1.Chart.Printer.Print() ?, when using MainClient you

have to use the Chart property to get the "real" chart object. Note that

MainClient is just a thin container but it considerably speeds up the first

"chart" request in a browser session.

Regards,

JC

Software FX Support

"Glenn Hard" <glennhard@thenexsysgroup.com> wrote in message

news:Z2dvIK0ODHA.2860@webserver1.softwarefx.com...

> Is there a way to print a chart from the client side using the

> SoftwareFX.ChartFX.Internet.MainClient .net control using javascript? I

> tried to get a reference to the object in javascript with

> document.getElementById('chart1'). I then attempted to call the

> chart1.Printer.Print(); method to print the graph unsuccessfully. If it

is

> possible a simple example would be helpful.

>

> Thanks,

> Glenn Hard

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...