SSRS: Keep together ignored when generating von docx reports

Schulz, Grischa 1 Reputation point
2020-09-01T07:13:58.99+00:00

Hello,

we have problems creating docx documents with SSRS.

The main report contains several subreports.
One of the subreports contains of a tablix with some textboxes (as headlines) and another subreport for the details.
The inner subreport contains as well one tablix, this one with a rectangle to keep the details of one datarow together (placed in several textboxes). In the properties of the rectangle we set "kepp together" true.

Genarating a PDF works as expected.

When rendering as a docx, we have a page break between the headline from subreport1 and the first rectangle of subreport2.
Ther are some page breaks in a multiline textbos and between textboxes inside the rectangle.

Following is an abstract of the rport structure:

MainReport => body => subreport1
subreport1 => body => tablix1 => datarow of textboxes & subreport2
subreport2 => body => tablix2 => rectangle (keep together = true) => datarow of textboxes

Now my question: How can i afford, that word (docx) treats the "keep together" property of the rectangle as desired
and how can i avoid the first unnecessary page break before the first datarow of subreport2?

Thanks.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,913 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 36,116 Reputation points
    2020-09-01T09:44:37.11+00:00

    Hi,

    You may have a try.

    Set the ConsumeContainerWhitespace = True on the Report Properties default is set to false.

    If it doesn't work, here is an article for your reference.

    https://apps.support.sap.com/sap/support/knowledge/en/1212056

    Regards,

    Zoe


  2. Schulz, Grischa 1 Reputation point
    2020-09-07T14:57:37.063+00:00

    Hi Zoe,

    thanks for your response.
    Meanwhile we tried both without success.
    ConsumeContainerWhitespace didn't change the layout of the reports,
    setting Keeptogehter to false on all Items didn't change the docx, but made the pdf looking as bad as the docx.

    So we're still working on this issue, any other hint is highly appreciated.

    Thanks
    Grischa


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.