This topic contains 4 replies, has 3 voices, and was last updated by Ghiara Mimmo 3 years, 7 months ago.
-
AuthorPosts
-
April 19, 2017 at 9:03 am #10122
Hi to all,
i am a Omnis developer with little time and I have a problem I can not solve.
The problem is: I can not calculate the length of the area where it is printed records. I try to be more precise. The print is of an invoice. The item ‘description’ field can be one line or multiple lines. If it is multiple lines I can not stop printing the record section so that, the print is veri bad formatted.
It is posible calculate how many line the report print end take it under control, to stop printing current page and continue to print in a new page?
Thank’s
MimmoApril 21, 2017 at 12:29 am #10125Hi Mimmo,
try using a positioning section with $pagemode equal to kFitonpage, so the report automatically will start a new page if the section go beyond the bottom border (of the page).
Bye
Rocco
April 24, 2017 at 8:34 am #10126Thank’s Rocco, but i must print an inovoice, with in th footer of the page I must print total or similar. I cann’ot control the record area. Is i print only record the record area ends in the midddle of the page and the area between the end of the records and the start of the footer is empty what’s really bad to see in an invoice. I can fill this blank space with blank record printing, but I can not calculate how many records I have to print. If I have an invoice with three articles but each article has a description of several rows, the printing of the empty redords ends up on the totals in the footer. I do not know I explained it well.
If you have any suggestions, thank youJune 6, 2017 at 11:50 am #10190Hi Ghiara. I am not sure what the problem is here. I think either you are trying to stop a record section overflowing onto the next page, or you are trying to print the totals at the foot of the first page. Rocco suggested something to help with the first problem.
If you have the second problem (you want to place the totals at the bottom of the first page), then just set the Totals section to $startmode=kFromBottomMargin. It should not be necessary to calculate the number of record sections printed or the size of them.
You do not say which version of Omnis you are using – that might make a difference to the advice given.
June 21, 2017 at 10:02 am #10304Thanks Gav
The version is 8.0.2.3 you are right about you need to count the lines in the print, but I was inspired by an example I found on the net
Greetings-
This reply was modified 3 years, 7 months ago by
Ghiara Mimmo.
-
This reply was modified 3 years, 7 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.