Hello
I am creating some crystal reports (for visual studio 2005) based on the content of certain .NET objects. I'm doing this in .NET 2.0.
For one of them I'm using a Cross-table to summarize the information of a bunch of objects. The actual data is numeric. Since these reports are meant to be flexible number formatting must be configured as defined by the requirements.
For example, sometimes the values will have to be rounded to 5 decimal places, sometimes two, ...
One way to do this in crystal reports is change the number format for the value field in the cross-table. However, this results in a "custom number format" as opposed to the "system default number format" (which takes the formatting from the operating system cultural settings). Once the custom number format is chosen, the decimal seperator, thousand seperator etc ... is defined for the report and it will never change, regardless of the user's regional settings. The system default settings usually have a rounding of 2 decimal places, but I want to be able to change this.
This is obviously a problem. I can see two easy choise: I define that only rounding with 2 decimal places is supported OR I define that the report will always use the same decimal seperator etc ... regardless of the regional settings of the user.
Neither options are acceptable.
I tried in .NET to loop through all elements of the report, defining the number format for all numeric fields. However, there seems no way to get into the properties of the fields in a crosstab programmaticall y. I have looked around and it seems simply impossible to have the flexibility I want in Crystal Reports.
If anyone has any ideas I will be VERY happy!
Thanks.
I am creating some crystal reports (for visual studio 2005) based on the content of certain .NET objects. I'm doing this in .NET 2.0.
For one of them I'm using a Cross-table to summarize the information of a bunch of objects. The actual data is numeric. Since these reports are meant to be flexible number formatting must be configured as defined by the requirements.
For example, sometimes the values will have to be rounded to 5 decimal places, sometimes two, ...
One way to do this in crystal reports is change the number format for the value field in the cross-table. However, this results in a "custom number format" as opposed to the "system default number format" (which takes the formatting from the operating system cultural settings). Once the custom number format is chosen, the decimal seperator, thousand seperator etc ... is defined for the report and it will never change, regardless of the user's regional settings. The system default settings usually have a rounding of 2 decimal places, but I want to be able to change this.
This is obviously a problem. I can see two easy choise: I define that only rounding with 2 decimal places is supported OR I define that the report will always use the same decimal seperator etc ... regardless of the regional settings of the user.
Neither options are acceptable.
I tried in .NET to loop through all elements of the report, defining the number format for all numeric fields. However, there seems no way to get into the properties of the fields in a crosstab programmaticall y. I have looked around and it seems simply impossible to have the flexibility I want in Crystal Reports.
If anyone has any ideas I will be VERY happy!
Thanks.
Comment