Blank Page Footer leaves space in Crystal Report - footer

Problem:
I have a multiple page footers which are suppressed conditionally, but even after hiding the page footer, it leaves space and whole formatting is vague now in my Crystal Report.
Is there any way to remove extra blank space from Report when Page Footer is hidden?
I have tried using "Suppress Blank Section" option, but then also no help.
Crystal Report version - 2008

To give a better answer. I'd need more details of the footer contents & conditions for suppression. That said, I would try the following:
Set the footer contents to also be conditionally hidden/suppressed with the same logic used in the footer section itself.
If that doesn't solve your problem, try debugging by removing all footer contents. If "suppress if blank" functions correctly after this, then your problem is that one of the items in the footer is not actually blank.
If the footer still isn't suppressed, try going into design mode, zoom wayyyy out, and see if there might be something outside of the visible page template in the footer section that is causing the section to not be blank... if page dimensions or settings were changed at some point, or you placed a lot of items in the report at the same time, CR will sometimes cause items to be outside of the dimensions of the page template, but still within the section.
Those steps aside, there's not much we do without specific details. Try giving an example of the desired behavior, and desired conditions to trigger that behavior, and we can advise further.

If your objective is to have varying footers and display only a single one based on the conditional suppressions, then what you want is the "Reserve Minimum Page Footer".
To find this option, open the Section Expert and select "Page Footer" (the parent to Page Footer a,b,c etc.) Under the 'Common' tab you should find the "Reserve Minimum Page Footer" option.
What this does, is instead of reserving space equal to the sum height of all your footers, it reserves space equal to the height of your biggest footer. Which isn't perfect, but it is better. (And if all your footers are about the same height, it is perfect. If you had varying sizes, you will still have some blank space when displaying a short footer, and that blank space will be BELOW the footer, so I would adjust all footer sections to be the same size, and shift the content to the bottom of the section.)
The problem with this though, and this is the problem I am having and am yet to solve, is when you want to display multiple footers, it will still only use the space that is reserved, which is the height of the single largest footer, anything else that is displayed overflows below the page.
I am yet to find a solution that will dynamically adjust the height of the footer based on what is displayed in the footer.

Related

Vaadin large table scrolls inside table (and underneath header) instead of scrolling page

Vaadin Version: 23.3.3
I have a fairly complex Vaadin table, ~100 rows, each of which contains ~12 columns, each column containing a layout with ~10 elements. The table is not lazy in any way, and is configured to show all rows at once.
It takes the browser 5+ seconds just to render the table after the request is complete (a topic for a different question) but even once the table is rendered I experience some weirdness when scrolling.
When holding the mouse outside the table, or using the scroll bar, the page always scrolls as expected. But when I hold the mouse inside the table I get inconsistent results. If I have first scrolled the page all the way to the bottom then there appears to be no issue regardless of mouse position. But If I have yet to scroll to the bottom, then the table scrolls in place, pushing rows underneath the header (see screenshot). It's as if the browser/vaadin is not yet completely aware of the size of the table?
Is there something I need to be doing to force vaadin to render the entire page?
Edit: Upon some further testing I noticed even stranger inconsistencies. My table cells have two possible layouts depending on user actions. One is simple, containing: div > span > span. The other is more complex, containing a div > span > span + vaadin-icon + tooltip. The issue only appears when the table is rendered with the "simple" layout. Something about the added vaadin-icon and tooltip seems to make vaadin draw the table without scroll issues.

can I use VirtualScrollStrategy for flex box with wrapping

I have implemented Angular Material's virtual scrolling for fixed sized items. Now I want to use it with non-fixed items. The challenge is twofold:
The items contain a text that is wrapping around multiple lines. Thus, the height of an item depends on (a) the length of the text and (b) the width of the item's container. The latter depends on the width of the browser window.
The items are displayed in a flex box in wrap-around mode. Thus, there are multiple items in each row, the number depending on the width of the browser viewport.
My question is: Can that be achieved by implementing a custom VirtualScrollStrategy? If so, how would I approach it? Are there examples anywhere?

Showing Keyboard causes the cell row containing active text field hides under its section footer

I just successfully set up content inset adjustment to make visible, dealing with the keyboard of iPhone, of the active text field on a cell row managed by a tableViewController (dynamic table view and different custom cell types - some from XIB and others from code). Well... almost success; except for the below issue:
a section footer doesn't move up the same extent of the rows of the section so that often the footer makes the active text field invisible. A user has to scroll the table view a bit to show the row with the active text field (strangely the footer stays floating above the rows in scrolling).
Anyone has seen such weird thing before? Is it the section footer moving with the section rows together as an integral unit? How can the footer stay floating above the scrolling rows of the section? Please shed me some light and I even don't know where/how to start debugging such issue.
Thanks folks for editing my post. After many hours of struggling, I finally find the reason from reading pages of Apple document, which is of enum UITableView.Style having two cases:
.plain : Section headers and footers are displayed as inline separators and float when the table view is scrolled.
https://developer.apple.com/documentation/uikit/uitableview/style/plain
.grouped: Section headers and footers do not float when the table view scrolls.
https://developer.apple.com/documentation/uikit/uitableview/style/grouped
Apple should rename the enum to HeaderFooterStyle instead to make our finding easier (another example of clarity over brevity)
I hope someone else bumping into the headache might find the post useful.

RichText label or 'flow' layout for text in iOS (Xamarin/MonoTouch)

I am trying to repduce a similar sort of layout as in the screenshot below from the Digg app..
Notice that each list entry has a title in bold followed by the source, posted time and finally if there is enough space the start of the description line.
The question is what is the best way to achieve this in iOS? With some posts having longer titles than others I cannot simply say that the title label is 40px high and then place the Source label at 45 as the title will sometimes be longer and sometimes shorter.
Do I have to calculate the height of the label based on its contents before arranging the layout or is there some better way of doing this in iOS so that the views 'below' are automatically moved down?
Another alternative would be some sort of rich text label that I could add all the text to and have it automatically wrap round moving the later text down but I cannot find any sort of control in standard iOS / Xamarin (MonoTouch).
Any pointers would be greatly appreciated?
If you are using a storyboard the simplest way to achieve this result is to define different prototype cells. For example, you could define four different prototype cells, each one with a different layout like those shown in the example picture you provided. You can dequeue the appropriate cell based on the content you want to display so there is no need to adjust the layout in the code.
If you are doing everything in code, it's a lot more complicated since you have to build your own "layout engine" to adjust size and position of the views in your cell. You can have a look at XibFree or use MonoTouch.Dialog as suggested in the comments.

SmartGWT turning off title wrapping makes row too wide

I have a VLayout with two DynamicForms in it . The titles of the first one are short enough to not get wrapped. The second one has longer titles, so I use it like setWrapItemTitles(false);
Turns out that the second form gets to be wider than the first one, even when there is a lot of extra space in the row, enough to fit the titles and keep the original width. This looks bad when having forms grouped.
Is there a way to avoid wrapping but not add so much extra space that is not used?
A workaround I found is to manually setting enough space for the title to make it fit will not cause the wrapping and will not add additional unused offset.
setTitleWidth(150); //Or enough width
However I would prefer a less "hardcoded" solution if available.

Resources