1 of 1 people found this helpful
So far I have not found a way to control page breaks. Recently for a client I gave him a text field that he could put blank lines in to expand a section and move the next row to the next page.
In the inspector position tab at the bottom is a Sliding and Visibility section. You can use the Slide up, Slide left and resize enclosing part to have portals shrink when in Print preview.
Best practices has always been to try to avoid printing portals. You're not going to get then to expand or contract the way that you want.
Best bet - since you've got 30 portals that you want to print is to investigate the virtual list technique. Search here for info on it.
If you can combine all of your portals into a VL or variables and use them to print you'll have a lot more control. You could combine all of your items into a single merge block of text on a layout for printing and be able to control spacing better.
Printing portals is usually a world of pain. You may have discovered that already. On a form view you can have the portal expand with the window. You don't have that ability with a print layout. You also have limited control over the expansion of items in relationship to other elements on the layout.
Re your first question, remember that portals are not really intended for printing, only for display on screen. Your best course with printing is to design a separate print layout based on the table containing the records within the portal.
Re expanding portals, you can't make a portal expand or contract according to the records if contains, but if you toggle the portal top and bottom (autosizing in the Position Inspector) the portal will stretch vertically to reveal more rows when the window is enlarged.
Thank you all for the help. Disappointing but still, thank you.
In response to the page breaks, I think the balnk field is a great idea but my client doesn't think that will look professional enough. Instead I am just going to separate based off of the dimensions of legal paper. However, I am running into another issue. For some reason whenever I print, the text comes out multiple times larger than it looks on my screen. When it's shrunk down to legal page size and in preview mode it looks perfect; but as soon as I print it all the text gets gigantic. For instance, this text is size 6 on my layout but comes out looking like it's at least size 12. The size of the text is also causing text to take up more lines than I even have alloted in the size of the text box, hence the cutoff text towards the bottom. This is making it IMPOSSIBLE to figure out how to separate my layout objects to print correctly. Is this a common problem or am I doing something wrong?
I had a similar need: print the main table + many related tables (portals in FM).
The solution adopted has been to add all my portals, setting them with "Number of Rows" = 100.
I've also set the Sliding up based on: All Objects above + Also resize enclosing parts.
Works perfectly. The only limit is that 100 rows. Just evaluate a reasonable numer of rows to use in the portal settings. Lottle downside is that the more portal rows you set, the more space it'll take in Layot (design) mode.
Works great in Print Preview.