Printing Problem Under 5.5.1
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 116
- Joined: Mon Apr 30, 2007 3:33 pm
Printing Problem Under 5.5.1
Greetings All,
I recently upgraded a program from version 4.6.4 to 5.5.1. Under windows I have encountered a printing problem. I have a field with tabs and vertical lines. When I print the card, the border of the field is printed OK, but there is also a box around every single line in the field. It looks like live code is printing a table inside the border of the field containing my text. This does NOT happen under the Mac version.
Also, windows spacing is off again. It's almost like "formatforprinting" isn't working any more.
Can anyone help?
Thanks,
John Miller
I recently upgraded a program from version 4.6.4 to 5.5.1. Under windows I have encountered a printing problem. I have a field with tabs and vertical lines. When I print the card, the border of the field is printed OK, but there is also a box around every single line in the field. It looks like live code is printing a table inside the border of the field containing my text. This does NOT happen under the Mac version.
Also, windows spacing is off again. It's almost like "formatforprinting" isn't working any more.
Can anyone help?
Thanks,
John Miller
Re: Printing Problem Under 5.5.1
printing depends a lot on how stuff is actually done in code.. it's not easy to tell what your problem is without seeing the code or even the way the wrong printouts look. Does the same problem appear when you print into a pdf instead of to a printer? Do you have zero width columns? There's a new feature that draws tables into a field when you use a zero width column as first column.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
-
- Posts: 116
- Joined: Mon Apr 30, 2007 3:33 pm
Re: Printing Problem Under 5.5.1
Yes, the same thing happens when I print to a pdf file.
It does appear that a table is being drawn inside my field, but the first tab is set to 50, not 0. Also, this only happens with windows, not macs.
Is there any documentation about what printing commands were changed in versions 5, 5.5 and 5.5.1? Everything works great in 4.6.4.
John
It does appear that a table is being drawn inside my field, but the first tab is set to 50, not 0. Also, this only happens with windows, not macs.
Is there any documentation about what printing commands were changed in versions 5, 5.5 and 5.5.1? Everything works great in 4.6.4.
John
-
- Posts: 116
- Joined: Mon Apr 30, 2007 3:33 pm
Re: Printing Problem Under 5.5.1
I stand corrected. The lines do NOT appear when printing to a pdf file.
-
- Posts: 116
- Joined: Mon Apr 30, 2007 3:33 pm
Re: Printing Problem Under 5.5.1
OK! I'm making some progress. The vgrid of my field is set to true. If I set this parameter to false, the problem disappears. This must be some kind of bug. Setting the grid of a field under version 4.6.4 did NOT cause a table to be printed inside the field.
Anybody have any ideas on how to fix this?
Thanks - John
Anybody have any ideas on how to fix this?
Thanks - John
Re: Printing Problem Under 5.5.1
So it is (as I suspected) the new in-field table view that bit you.
The new feature works like this: if you set the vGrid of the field, and have tabstops set for only part of the text of the field (not the whole field as was the only way previously) it will create a grid within your field, similar to this:

Now of course that would also show up in your field _before_ you print it. So most likely the introduction of this new feature has caused problems with your existing code. I suggest to post a shortened example code, and/or pictures of the faulty printouts, otherwise no one will be able to actually help you
edit: you can also set the vGrid and hGrid of only one or more lines of a field, producing a proper table, not only vertical lines. That's why they made it of course. My example is more about showing how the new feature can produce unexpected results.
The new feature works like this: if you set the vGrid of the field, and have tabstops set for only part of the text of the field (not the whole field as was the only way previously) it will create a grid within your field, similar to this:

Now of course that would also show up in your field _before_ you print it. So most likely the introduction of this new feature has caused problems with your existing code. I suggest to post a shortened example code, and/or pictures of the faulty printouts, otherwise no one will be able to actually help you

edit: you can also set the vGrid and hGrid of only one or more lines of a field, producing a proper table, not only vertical lines. That's why they made it of course. My example is more about showing how the new feature can produce unexpected results.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode