1 Reply Latest reply on Mar 31, 2008 6:28 AM by GerryIsHere

    Printing dynamic text partially working

    GerryIsHere Level 1
      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


        • 1. Printing dynamic text partially working
          GerryIsHere Level 1
          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)