revprintfield and RIGHT tabalign?

dunbarx at aol.com dunbarx at aol.com
Fri Feb 14 12:00:09 EST 2020


So I tried it. Works fine, though you have to use gadgetry to print only the field of interest.
on mouseUpopen printing to pdf ("/users/yourPathNameHere/desktop/xxx"& ".pdf")print this cdclose printingendmouseUp
Craig


-----Original Message-----
From: dunbarx--- via use-livecode <use-livecode at lists.runrev.com>
To: use-livecode <use-livecode at lists.runrev.com>
Cc: dunbarx <dunbarx at aol.com>
Sent: Fri, Feb 14, 2020 11:52 am
Subject: Re: revprintfield and RIGHT tabalign?

This is done with "revPrintField", where it is only in the print dialog that I can divert the process to make a PDF.
What is the story with "open printing to "PDF"...?


-----Original Message-----
From: Klaus major-k via use-livecode <use-livecode at lists.runrev.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Klaus major-k <klaus at major-k.de>
Sent: Fri, Feb 14, 2020 11:17 am
Subject: Re: revprintfield and RIGHT tabalign?

Hi Richard,

added a test stack to the report and some more infos.

> Am 14.02.2020 um 17:09 schrieb Richard Gaskin via use-livecode <use-livecode at lists.runrev.com>:
> 
> Klaus wrote:
> 
> > Hm, I applied the fix here, but now the last column is completely GONE
> > (not visible in the printout)!?
> Hmmm...It worked when I tested here, but I can imagine a scenario where the tabstops may result in a boundary outside the bounds of the field, such as if your field is wider than the field used in the printed page.
> For that you may need to add one last tabstop to make sure right-aligned text isn't rendered outside the object's rect.

OK, will try that!

> > And if the TABALIGN was not repected, why did the columns (NOT the
> > TOTAL Line) appear correctly aligned?
> 
> tabAlign is like textAlign but for a given column (tabstop), not to be confused with tabStops, which govern the boundaries of columns.

Go figure! :-D

> Left alignment is the default so those columns render well without modification.

Yes, but as you can see in my picture, you DID take a look, didn't you 8-),
the third columns ARE in fact right aligned but only the TOTAL... lines are not!

> -- 
> Richard Gaskin

Best

Klaus

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


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list