View Single Post
  #2  
Old April 23rd, 2006, 03:35 AM
PastMember PastMember is offline
Blocked From MTU.Community
 
Join Date: Mar 2001
Location: Farmington, MI
Posts: 153
Admin:

Have your programmers create a "hot zone" like the one that was described before:


---------- SNIP FROM INSTRUCTIONS SENT TO YOU --------------
>At this point, we need to see if this line of text will actually fit in
>one column on the page. To do this, we are going to check the physical
>length of the title+artist+bookid against how it will print on the users
>printer. We use the device independant measurment of "twips" to do this
>and store the results
[CODE SNIP]
>Next, we add these lengths together to see if they exceed 4900. If they
>don't, then we don't make any changes because it will fit just fine.
>
>However, if it EXCEEDS 4900 then we need to break the line into 2 parts to
>make it easier to read in the book by adding a line break and a tab

-------------- END OF SNIP -----------------

Adjusting the twip measurement of 4900 to a SMALLER number will cause a line to break sooner.

Since numbers are being cut off at the column edge, there must not be any current measurement check of line length in place OR it is not implemented correctly.

You already have the instructions and code, it appears it was never implemented. BTW, it is THIS section of code that requires that a user have a printer driver installed on their machine. If they don't (and a hotzone is implemented) you will get a "Printer Error" message and crash.

(Beavis, you should've known this! I'll bet you could've answered it with a one-liner.)