Picture in DetailBlock: keep on page but not the DetailLines

Discussion forum about all things Report Builder (all versions).
Jsfmllr
Germany
Posts: 69
Joined: 17 Nov 2019, 16:08
Location: Munich, Bavaria, Germany

Picture in DetailBlock: keep on page but not the DetailLines

Post by Jsfmllr » 06 Dec 2016, 08:23

Hello,
in a report, there is a DetailBlock, that contains a picture, that is filled from an InputItem. The first DetailLine extends across the whole width of the page. the subsequent DetailLines are indented. The picture should be located to the left of the DetailLines. The number of Detailines is not restricted ( 1 - n ), but could be lower than the size of picture. How can I tell the next DetailBlock to start after the picture? How can I tell the picture to 'keep on page' - that is to launch a pagebreak?
TIA
Sepp

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Picture in DetailBlock: keep on page but not the DetailLines

Post by Jeff Luther » 06 Dec 2016, 18:35

Sepp -- I think I understand most of what you are asking, though if I'm wrong some sort of image of what you want the layout to look like would be helpful. Let me reply to a couple things you wrote:
The first DetailLine extends across the whole width of the page.
That is, the picture should be left-justified in the Detail Block and under this first line, correct?
the subsequent DetailLines are indented. The picture should be located to the left of the DetailLines.
Yes, the picture should be to the left of the Detail lines as I've shown below. As you wrote in the quote previously, this first line is the full width of the Detail Block and under this first line, correct?

Code: Select all

                                          page width
|------------------------------------------------------------------------------------|
SOME TITLE LINE OF TEXT THAT EXTENDS THE FULL WIDTH OF THE PAGE.......................
|------------------|  DETAIL LINES 1...
|    PICTURE       |  LINES 2
|                  |  LINES 3
|                  |  LINES 4
|------------------|  LINES 5
                      LINES 6
                      ETC. 
If this is what you want, then that's 3 input items:
1 - TITLE_FIRST_LINE_ITEM
2 - PICTURE_ITEM
3 - DETAIL_LINES_ITEM (and in Properties/Behavior set Line Wrapping = Dynamic)

Set the Detail Block to be kept On Page and RB should start a new page if all that above won't fit on the current page.
How can I tell the next DetailBlock to start after the picture?
This is what's confusing: Previously you had written that you want the detail lines to start to the right of the picture. ("The picture should be located to the left of the DetailLines.")
How can I tell the picture to 'keep on page' - that is to launch a pagebreak?
RB does not have a Properties option for the picture to Keep: On Page. Nor does it for the detail item. It's the Detail Block itself which will be kept on the page. If Keep: On Page is set for the Detail Block, then RB will calculate whether the contents (lines + picture, I belive) can be displayed on what remains of the current page, and if not it generates a new page and starts there.

I'd recommend you put together a test case -- app + qrp -- for yourself that you can to work out the details. And your own drawing like I've shown above to help us understand what you want, if that image above is not correct.
Jeff Luther @ PC Design
Palm Springs, California

Jsfmllr
Germany
Posts: 69
Joined: 17 Nov 2019, 16:08
Location: Munich, Bavaria, Germany

Re: Picture in DetailBlock: keep on page but not the DetailLines

Post by Jsfmllr » 07 Dec 2016, 09:41

Hello Jeff,

TNX for response.
You are absolutely right: this "image above" is wrong. You did exactly understand what output we want.
Sadly there is no "Keep: on page" for a picture - but we are fine with a "Keep: on page" for the whole DetailBlock.

kind regards

Sepp

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: Picture in DetailBlock: keep on page but not the DetailLines

Post by Jeff Luther » 07 Dec 2016, 17:45

we are fine with a "Keep: on page" for the whole DetailBlock
I am glad to read you found something that will work for you, Sepp. That's how you would want it anyway, I would think: Force RB to have the entire title/picture/details on a single page. That's what Keep: On Page for the Detail Block does.
Jeff Luther @ PC Design
Palm Springs, California

Return to “General Discussion Report Builder”

Who is online

Users browsing this forum: [Ccbot] and 0 guests