Jump to content
Software FX Community

PersonalizeEventHandler


User (Legacy)

Recommended Posts

I tried to save the chart file from user customization back to a location on 

the server when user select the "Save My Chart" action on the Chart control.

Apparently, the PersonalizeEventHandler never get executed. Am I missing

something? Here is the sample codes

protected void Page_Load(object sender, EventArgs e)

{

Chart1.ToolBar.Visible = true;

Chart1.Personalized += new

PersonalizeEventHandler(Chart1_Personalized);

}

public void Chart1_Personalized(object sender, PersonalizeEventArgs e)

{

if (e.Action == PersonalizeAction.Save)

{

Chart newChart = new Chart();

newChart.Import(e.Stream);

newChart.Export(FileFormat.BinaryTemplate,

@"C:\Projects\ChartFX.VS2005\ChartFX\Export\MyChart.template");

}

}

Thank you for your help!

Link to comment
Share on other sites

Setting the RenderFormat to "Image" (AJAX) works but the UI is not ideal. 

Many of the functionalities provided by the .Net control is not present when

using Image render format. A good example is the Axes Settings ->Options

page. Is there a way to include this when using Image rendering format?

Also, how do you set up full trust when using .Net rendering format. My IE

browser trusted sites include all our internal servers (domain) and

localhost. I tried to run it via localhost and full domain name but it still

did not work. Please help! Thanks.

We have been using ChartFX Internet 5.5 for many years and would like to

preserve all functionalities found in the ActiveX chart control. That´s why

the .Net rendering format and the ability to save the template back to the

server is important to us.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:v4vR6c%235GHA.3844@webserver3.softwarefx.com...

> If you are using the .NET Client Control, you need FullTrust in order of

> the client to execute a callback.

>

> If you are using the AJAX UI, you don´t need anything special. If this is

> the case please provide us with more details.

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

The .NET Control does provide more UI than the image.

Unlike ActiveX, the level of trust for .NET controls is controlled through

the administrative tools (client computer) under Microsoft .NET Framework

Configuration. You can control the trust per zone (Intranet, Trusted Sites,

Intranet), per assembly or per strong name. For more information please

refer to MSDN.

You may also find the following KB article useful:

Q6141001. Security settings required by the .NET client control

URL:

http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/614/1/001.htm?_r=1

--

Francisco Padron

www.chartfx.com

"Yoong Chew" <yoong.chew@fmr.com> wrote in message

news:LsMf1xK7GHA.3844@webserver3.softwarefx.com...

> Setting the RenderFormat to "Image" (AJAX) works but the UI is not ideal.

> Many of the functionalities provided by the .Net control is not present

> when using Image render format. A good example is the Axes

> Settings ->Options page. Is there a way to include this when using Image

> rendering format?

>

> Also, how do you set up full trust when using .Net rendering format. My IE

> browser trusted sites include all our internal servers (domain) and

> localhost. I tried to run it via localhost and full domain name but it

> still did not work. Please help! Thanks.

>

> We have been using ChartFX Internet 5.5 for many years and would like to

> preserve all functionalities found in the ActiveX chart control. That´s

> why the .Net rendering format and the ability to save the template back to

> the server is important to us.

>

> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

> news:v4vR6c%235GHA.3844@webserver3.softwarefx.com...

>> If you are using the .NET Client Control, you need FullTrust in order of

>> the client to execute a callback.

>>

>> If you are using the AJAX UI, you don´t need anything special. If this is

>> the case please provide us with more details.

>>

>> --

>> Francisco Padron

>> www.chartfx.com

>>

>

>

Link to comment
Share on other sites

Thanks for the info!

According to the article you listed, I should not need to set anything to

full trust when using MS VS 2005. Please note that I am viewing the page via

"View in Browser" in my VS 2005. All the functionalities in the .Net control

works fine except for event handlers such as PersonalizedEventHandler and

HitTestEventHandler. The event handlers got executed when I am using Image

RenderFormat, not .NET.

I also enabled "Full trust" for all assemblies in my ChartFX70\Download area

or all assemblies with the same assembly public key.

In addition, all the intranet and trusted site zones have also been given

"full trust". Unfortunately, none of the event handlers got executed.

Your help in resolving this issue is greatly appreciated. Thank you.

"Software FX Support" <noreply@softwarefx.com> wrote in message

news:s1dpHdL7GHA.3388@webserver3.softwarefx.com...

> The .NET Control does provide more UI than the image.

>

> Unlike ActiveX, the level of trust for .NET controls is controlled through

> the administrative tools (client computer) under Microsoft .NET Framework

> Configuration. You can control the trust per zone (Intranet, Trusted

> Sites, Intranet), per assembly or per strong name. For more information

> please refer to MSDN.

>

> You may also find the following KB article useful:

>

> Q6141001. Security settings required by the .NET client control

> URL:

> http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet62&Source=http://support.softwarefx.com/kb/614/1/001.htm?_r=1

>

>

>

> --

> Francisco Padron

> www.chartfx.com

>

>

> "Yoong Chew" <yoong.chew@fmr.com> wrote in message

> news:LsMf1xK7GHA.3844@webserver3.softwarefx.com...

>> Setting the RenderFormat to "Image" (AJAX) works but the UI is not ideal.

>> Many of the functionalities provided by the .Net control is not present

>> when using Image render format. A good example is the Axes

>> Settings ->Options page. Is there a way to include this when using Image

>> rendering format?

>>

>> Also, how do you set up full trust when using .Net rendering format. My

>> IE browser trusted sites include all our internal servers (domain) and

>> localhost. I tried to run it via localhost and full domain name but it

>> still did not work. Please help! Thanks.

>>

>> We have been using ChartFX Internet 5.5 for many years and would like to

>> preserve all functionalities found in the ActiveX chart control. That´s

>> why the .Net rendering format and the ability to save the template back

>> to the server is important to us.

>>

>> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message

>> news:v4vR6c%235GHA.3844@webserver3.softwarefx.com...

>>> If you are using the .NET Client Control, you need FullTrust in order of

>>> the client to execute a callback.

>>>

>>> If you are using the AJAX UI, you don´t need anything special. If this

>>> is the case please provide us with more details.

>>>

>>> --

>>> Francisco Padron

>>> www.chartfx.com

>>>

>>

>>

>

>

Link to comment
Share on other sites

> According to the article you listed, I should not need to set anything to

> full trust when using MS VS 2005.

Full trust is required in order for the Client control to communicate with

IE

(unmanaged application). Doing a Postback or Callback requires this

communication.

After extensive testing of many scenarios we have been unable to reproduce

the problem you describe.

We have added the event handler as you do in the Form_Load and as long as

the .NET Framework is granting full trust to the client control the vent is

fired without a problem. We have tried with and without

UseCallbacksForEvents.

Please post a sample application that reproduces the problem.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...