Information générale
Catégorie:
Gestionnaire de rapports & Rapports
I understand that. But let's say that on an 8.5 X 11 inch piece of paper, I have a section in the middle of the page that's three inches tall for a narrative section. But there is other stuff on the page below the narrative section that must be printed. So I cannot just set the memo area to expand as necessary. Of course I can have less than 3 inches of text print in the form, but I cannot exceed that 3 inches if the user enters two pages worth of text.
What I have to do is figure out how much text will fit in the designated 3 inches, and then take the rest and output it on one or more subsequent pages. I can't just do a word count or a character count and arbitrarily creating the breaking point. The user could have entered only a modest amount of words but many carriage returns (or other problems I haven't thought of).
The problem in its simple form is this: How can I determine how much loose text can fit (print) into a designated rectangle without breaking up a word?
I'm just wondering if there's code around that does something like this already so I can avoid writing it from scratch.
Thanks,
Guy
>You can use a standard report for printing. Somewhere in the report objects, there is an option for using either a fixed height, or to expand according to contents. This latter is what you have to avoid.
>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement