简体   繁体   中英

Merged cells when exporting to Excel (ReportBuilder)

I am using Report Builder (15.03) with Delphi XE3 for reports generating purposes.

In the Print Preview screen there is a printer icon on the left top corner. Clicking on it opens the Print dialog where there is "Print to File" option. Selecting the "XLS Report File" type there will exports the report to Excel file. However if the column width is big enough it will export it into merged cells in Excel. You can see on my second screenshot cells from E till F are merged.

I started face this issue only after we upgraded our Report Builder to XE3 version. In Delphi 5 version there was no problem.

Has anyone faced the same issue before? Is there any way to avoid the cells merging in this case?

Thank you.

在此处输入图片说明

在此处输入图片说明

Regards,

Alexey

The cells merging can be switched of by setting:

ppReport1.XLSSettings.MergeAdjacentCells := False;

(by default it is True).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM