Forum Discussion

garythomannCoGC's avatar
garythomannCoGC
Impactful Individual
4 years ago
Solved

Report Builder pdf export treating headers as static

Issue with report running and looking fine in preview but when exported to PDF the shrunk header portions do not work anymore.

 

On the Page Header section have setup two sections; one for printing on the first page and another section for every page printing.

Initially had an enclosing container rectangle object for both of these sub-sections.  The blank space in the PDF output relates to the first page only objects area.  

 

For all objects within the container the properties are as follows:

<object>.Hidden =IIf(Globals!PageNumber <> 1, True, False)   or the other way round for the other sub-section.

<object>.CanShrink, .CanGrow  set to True.    Unfortunately these properties are not available with the Rectangle object.  Why?  Where can we vote for this feature?

Report.ConsumeContainerWhitespace is set to True

Are there other properties that need to be set for this to work maybe?

PageHeader.Height   property   Is this a fixed value?   I mean is this the issue that is fixed when exported to PDF as the Print Layout button toggled to ON shows.

 

This works in preview.   Please note that I have tested removing the Rectangle containers with the same pdf export result of blank space where the headers exist.

 

Have tried some of the relevant ideas from this post  How to get rid of blank pages in PDF exported from SSRS 

9 Replies