Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect page-break in Smartform

Former Member
0 Kudos

Hi,

We are using a smartform for invoice print out. We want to have a running total on every page of the output. I created a separate window at the bottom of each page to print the running total. I'm using a TABLE to print

the invoice item and I created a program node to compute for the running total using the item amount.

It seems like the smartform is not issuing the page break correctly. During debug, the smartform is printing an item in page 1 (SFSY-PAGE still shows page 1) but during output, this item is being printed in page 2. Since we have already accounted for the item amount in the

running total, our running total ended up higher than expected (because the item that is suppose to be printed in page 1 ended up being printed in page 2).

I also try a different approach using the Footer event and I'm still geting the same issue. I have looked for some OSS notes and did not find any that relates to my issue. Can you please help.

Thanks,

Apollo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hai

Check the following

Table control will draw lines till last record only.

You can do like this... Use table control but do not use the lines of table control... Make all the borders invisible... and use a overlap window in that draw a template...

Regards

Sreeni

3 REPLIES 3

Former Member
0 Kudos

Hai

Check the following

Table control will draw lines till last record only.

You can do like this... Use table control but do not use the lines of table control... Make all the borders invisible... and use a overlap window in that draw a template...

Regards

Sreeni

0 Kudos

Sreeni,

Thanks for your reply. One of the columns that we're printing is the material long description from the material master (include text). We can not use a template since it has a fixed height. Tables on the other hand can have dynamic column height. I tried using a LOOP and under the LOOP is a TEMPLATE and this works. But then again, we need to have the dynamic column height capability of the TABLE.

Do you think that this is a bug in the SMARTFORM? It seems like that the TABLE line is not being considered when computing the remaining height.

Thanks,

Apollo

0 Kudos

Hi Apollo,

I have the same problem, Have you found a solution for that?

Kind Regards,

Eduardo