Printing Problem Under 5.5.1

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Printing Problem Under 5.5.1

Post by johnmiller1950 » Mon Jul 09, 2012 8:49 pm

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Printing Problem Under 5.5.1

Post by BvG » Mon Jul 09, 2012 10:06 pm

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

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Printing Problem Under 5.5.1

Post by johnmiller1950 » Mon Jul 09, 2012 10:50 pm

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

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Printing Problem Under 5.5.1

Post by johnmiller1950 » Tue Jul 10, 2012 3:51 pm

I stand corrected. The lines do NOT appear when printing to a pdf file.

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Printing Problem Under 5.5.1

Post by johnmiller1950 » Tue Jul 10, 2012 6:03 pm

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Printing Problem Under 5.5.1

Post by BvG » Thu Jul 12, 2012 2:30 pm

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:
Image

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

Post Reply