Page 1 of 1

How can I get the URL for the chart from the middle tier?

Posted: Wed Feb 08, 2006 9:15 pm
by 8123676
From a class within a middle tier c# component I am creating a .ten file as follows

ch1.Export.Template.Save(sGraphFileName);

where sGraphFileName is \\servername\foldername\something.ten

This successfully creates a .ten file in the desired location.

I then attempt to run the following:

ch1.Import.Template.Load(sGraphFileName);

in the hope that this will create the png file. This works from the code behind page (.aspx.cs) however when executing it from a middle tier class I get error Object not set to an instance of an object.

Is there another way of creating the png from a middle tier component?

We need to be able to create the png file from the middle tier because of security issues when creating it from the code behind (or website). This is because we have a clustered server environment and when we create it from the website any access to it from a client creates a double hop with security which we dont allow.

Posted: Thu Feb 09, 2006 4:02 pm
by narcis
Hi Bev,

Could you please arrange and send us a simple example we can run "as-is" to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.