Skip to main content
March 29, 2008
Question

Printing dynamic text partially working

  • March 29, 2008
  • 1 reply
  • 179 views
Hi there!

I implemented a printing function which is working nice even for multiple pages.

Problem is as follows...
Say we have a text 100 lines long.
Each page can hold 80 lines.
We should have:
Page 1 = from line 1 to line 80
Page 2 = from line 81 to line 100

Instead, I get:
Page 1 = from line 1 to line 80
Page 2 = from line 20 to line 100 !!!
i.e. lines 20 to 80 are printed twice!

I think problem is in maxScroll but can't find the mistake...
Please, help me find it!!! It's very urgent (deadline is Monday 31st, 4:00PM EDT)

Many thanks in advance.

Best regards,
Gerry


This topic has been closed for replies.

1 reply

March 31, 2008
It's me again...

Here is a simplified version of my code which doesn't change the result but which is only using recognized properties in AS2 (I got rid of "viewableRows" which was questionable...)

The only problem is:
How to make the second (or the third, the fourth, etc) page start printing at line (row) 81 instead of 20?

I think the script "believes" that it must print 80 lines whichever the text is.
To do so, it prints the FIRST 80 lines on page one then it prints the LAST 80 lines of the text.
Is it a schizo script? :-)

Gerry



In real world, printFld has fixed dimensions (525, 650) and is automatically populated by other functions (text is always the result of a search and the search functions automatically format the text and send it to this field)