Merged Cells in one row when exporting to excel

Stimulsoft Reports.NET discussion
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Merged Cells in one row when exporting to excel

Post by IskandarAir »

Hi,

Please consider that it is not about StiText that throws this error, Which is in article you mentioned - since in regualar row ( without Style for even row), this error is not seen.

What can be an issue for Styled-even row? What property of it creates this bug?

Thank you
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Merged Cells in one row when exporting to excel

Post by HighAley »

Hello, Iskandar.

Sorry, maybe we don't understand your issue.
Could you describe it more detailed with samples?
What is wrong with the Excel sheet that we get from Report sample.mrt file?

Thank you.
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Merged Cells in one row when exporting to excel

Post by IskandarAir »

Hi,

I have attached the .mrt file. please try to generate excel file with it. You will see that even-row-style has problem of merged cells (but not odd-row-style in which the article you mentioned is implemented and the problem there is not seen).
I have attached the generated excel file (with different data, though, the error can be seen).

Regards,
Iskandar A
Attachments
merged-cells.xlsx
(159.8 KiB) Downloaded 146 times
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Merged Cells in one row when exporting to excel

Post by IskandarAir »

Hi,

Is there any updates regarding this term?

Regards,
Iskandar A
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Merged Cells in one row when exporting to excel

Post by Lech Kulikowski »

Hello,

usually, if a component has nothing (no color, no border, no text), it is not exported at all and you get a lot of empty cells in a row.

but if the band has a background color (specified in the even style), then it is exported as a container (under the components). Textboxes with text appear at the beginning of the line — there is one, and at the end, textboxes are empty — they are not exported, but under them there is a piece of band with a background, so it gives the merged cells.

in this case, there are options:
- set the style not for the band, but for each textbox
or
- for empty textboxes, specify at least one space, for example
{string.IsNullOrEmpty (Products.ProductName)? "": Products.ProductName}

Thank you.
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Merged Cells in one row when exporting to excel

Post by IskandarAir »

Dear Lech,

Thank you. i think we will prefer first option

Regards,
Iskandar
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Merged Cells in one row when exporting to excel

Post by Andrew »

Hello,

Okay, thank you for the reply. Let us know if you need additional clarification.
Post Reply