Jump to content

QExport4XLSX numeric format and styles not applied correctly in UniGUI (Delphi 12)


Recommended Posts

Posted

Hello,

I am exporting a dataset using QExport4XLSX in a UniGUI application (Delphi 12).

Dataset contains:
- integer fields (PLU_NUMBER)
- double precision fields (quantities, prices, values)

Issues:

1. Numeric formatting is inconsistent:
   - 0 values appear without decimals
   - formatting like '0.000' is ignored in some cases

2. When using OnGetDataParams and setting:
   UseStyle := True;
   Style.NumericFormat := '0.000';

   → Excel file becomes corrupted or repaired on open

3. Style properties (Font, BackgroundColor, Border) are not applied at all

4. Column formatting in Excel remains "General"

At the same time:
- UniGridExcelExporter produces perfect layout but lacks correct decimal formatting
- QExport produces correct numeric format sometimes but breaks styles / layout

Question:
What is the correct way to:
- enforce numeric format (0.000 / 0.00)
- apply styles safely
- avoid Excel repair errors

Is there a known limitation or required configuration?

Thank you.

Posted

Hello,

I am using:

uniGUI Complete Professional
Version: 1.95.0.1610

Delphi: 12 (RAD Studio 12)

Exporter used: TUniGridExcelExporter

Let me know if you need additional details.

The issue is that numeric fields (double precision) are exported
without respecting DisplayFormat (e.g. 0.000, 0.00),
while layout and grouping are correct.

Posted
On 3/20/2026 at 6:35 PM, GNC said:

Exporter used: TUniGridExcelExporter

We are working on improving the Excel export to preserve styles as much as possible.

image.png.41123b3d08b6ca7a334063c1029d2f37.png

image.thumb.png.c8e4e691dfcf24f61177901dc59c3261.png

Posted

Dear [Sherzod / UniGUI Team],

Thank you for your response and for sharing the screenshots.

The improvements you are working on look very promising, and it is good to know that Excel export formatting is being actively enhanced.

In our case, we observed that formatting (especially numeric formats and styles) is not fully preserved with the current UniGridExcelExporter. For our production reports, we have temporarily implemented an alternative approach to ensure precise formatting.

We will definitely keep an eye on upcoming updates, as improved native support in UniGUI would be very valuable for us.

Thank you again for your efforts and support.

Best regards,
George Ckakarov

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...