revprintfield and RIGHT tabalign?

Klaus major-k klaus at major-k.de
Fri Feb 14 12:29:20 EST 2020


Hi Richard,

> Am 14.02.2020 um 18:13 schrieb Richard Gaskin via use-livecode <use-livecode at lists.runrev.com>:
> 
> Klaus wrote:
> 
> >> Am 14.02.2020 um 17:53 schrieb Richard Gaskin:
> >> Do you have another image showing the PDF output where any portions
> >> of any column are right-aligned while other columns are left-aligned?
> >
> > oh my, how embarrassing! :-/
> > Sorry, obviously I did look too long at my picture, you are of course
> > completely right, all columns are left aligned.
> 
> No worries.  With me it's useful to double-check.  As you know from the forums, I often get busy and reply after reading just the last few posts, which puts myself at a disadvantage of critical info was included earlier in the thread.  I've done that more than a few times. :)

now as you mention it... ;-)

> >> If you do that would seem a deeper issue, perhaps in the engine,
> >> since nothing in revPintingLibrary currently supports differing
> >> column alignments.
> >> Indeed, based on what we can read in the code, adding the one line to
> >> set the tabAlign resolves the issue.
> >
> > No, after applying your fix, the right aligned collumn is completely
> > gone/not printed!?
> >
> >> In your case, bringing the last tabstop in a bit, or perhaps adding a
> >> trailing tabstop after the ones you have in place, should account for
> >> the additional margins present in the print stack to have that last
> >> column visible.
> >
> > I added a dummy tabstop after my right aligned third column, but that
> > did not change anything.
> >
> > I have a workaround with "print this cd", so lets wait and see what
> > the mothership says...
> 
> Shouldn't be needed in this case.

I need a solution now, so I will use print this cd for the moment.

> The revPrintField command is just script, and we know that printing the card directly does what we want. Now we just have to identify the differences between the field on your card and the field in the offscript printing stack revPrintField creates and we can put a fix in your hands right now, and leave the engine team focused on the engine.
> 
> One difference I see is that the margins of the printing field in the PDF appear larger, leaving less room for content.
> What happens if you set those margins to 0?

Then everything looks like it should!
But who has a marginless printer? 8-)

So what shall I do now to make my stack work correctly with revprintfield?

> If that doesn't solve it feel free to email me the stack you want to print and I'll see what scripting needs to be added to revPrintingLibrary to handle it well.

I added my stack to the bugreport!
<https://quality.livecode.com/show_bug.cgi?id=22574>

> -- 
> Richard Gaskin

Best

Klaus

--
Klaus Major
https://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list