User (Legacy) Posted May 13, 2005 Report Share Posted May 13, 2005 Hi, I am using a UserLegendBox. It reflects the current parameters of the chart. When I save the chart (Personalization) and re-load the chart and import the saved chart, I get to see the previous parameters in the legend box. The new parameters are not displayed. This is because, the save paramaters (old ones) overwrite the new ones once I call the Import() method. I need : - Which is the FileMask/TemplateMask property that is used to retain Legend data. - If I do not want to save the legend data using Personalization, which flag is to be turned off ( a sample piece of code would be of great help). Also, I have another problem. I have Y axis having currency data.Using the following code, I display the currency symbol correctly: AxisX.LabelsFormat.Format = AxisFormat.Currency AxisX.LabelsFormat.Culture = preferredCurrencyCI Where preferredCurrencyCI is the System.Globalization.CultureInfo object. Initially it displays correctly (say Euro). However, on re-load of the saved chart, the currency displayed is $. I presume this behaviour is related to personalization. Which property I need to take care off (set/reset) so that the axis labels data is not retained. It should always display what is displayed thru code and not the retained/saved value Thanks, Pankaj Attachments.zip Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 14, 2005 Author Report Share Posted May 14, 2005 Any update on this? This is urgent for me. "Pankaj Sabnis" <pankaj.sabnis@businessengine.com> wrote in message news:pdvXJZ4VFHA.2004@webserver3.softwarefx.com... > Hi, > > I am using a UserLegendBox. It reflects the current parameters of the chart. > When I save the chart (Personalization) and re-load the chart and import > the saved chart, I get to see the previous parameters in the legend box. The > new parameters are not displayed. This is because, the save paramaters (old > ones) overwrite the new ones once I call the Import() method. > > I need : > > - Which is the FileMask/TemplateMask property that is used to retain Legend > data. > - If I do not want to save the legend data using Personalization, which flag > is to be turned off ( a sample piece of code would be of great help). > > > Also, I have another problem. I have Y axis having currency data.Using the > following code, I display the currency symbol correctly: > AxisX.LabelsFormat.Format = AxisFormat.Currency > AxisX.LabelsFormat.Culture = preferredCurrencyCI > > Where preferredCurrencyCI is the System.Globalization.CultureInfo object. > > Initially it displays correctly (say Euro). However, on re-load of the saved > chart, the currency displayed is $. I presume this behaviour is related to > personalization. Which property I need to take care off (set/reset) so that > the axis labels data is not retained. It should always display what is > displayed thru code and not the retained/saved value > > Thanks, > Pankaj > > Link to comment Share on other sites More sharing options...
Software FX Posted May 16, 2005 Report Share Posted May 16, 2005 When you say personalization are you talking about the Personalization button in the toolbar or are you doing your own Export/Import ? The legend box (and its contents) is saved when FileMask.Tools is selected. The chart's Culture is always serialized. The FileMask property does not offer a very granular division of properties, you will not find a FileMask flag for every single property of the chart. I think what you need to do is write some code to preserve the values you want and restore then after the chart is imported. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.