Hi,
I want to manually change decimal precision from .net. And then print. For excel export i can do but that is not looks look. Because I had to set the decimal precision at first in the report and then only possible. but i don’t want to manually set.
Can you give us some details on what exactly you need to achieve? Do we talk about the Excel export? Or reports in general? Do you want to change the precision for all numbers? Or only specific ones?
I want to use in Report Preview in C#. there has 3 tables. and I want to change the precision of all numbers before using LL.print();
There’s an option in the C++ header file for this:
#define LL_OPTION_DEFAULT_DECIMALS (351 ) /* default: settings from registry/2. ATTENTION: global option */
You can also use it from C# by setting LL.Core.LlSetOption(351, [NumberOfDecimals])
. This will affect all unformatted numbers. However, I’d strongly suggest to handle this via the report design as it can have very unexpected consequences if users can edit reports or already have custom reports in place.