Print Break
Paul Dupuis
paul at researchware.com
Sun Aug 26 10:59:51 EDT 2018
On 8/25/2018 2:44 PM, Knapp Martin via use-livecode wrote:
> I'm migrating a project from LC 6.6.5 to LC 9. In the app I have a routine that prints a few cards per page then issues a "Print Break" command that has worked fine for years in LC 6 but in LC 9 I'm getting an execution error on it (print: card or stack must be open to print it). If I take the command out everything prints fine with no errors, though without page breaks where I need them.
>
> Anybody know what I'm missing?
Nothing as far as I can tell. In LC 9.0.0 under Windows 8.1, I created
small stack with 2 cards each with a colored graphic on them (1 red and
1 blue) and added thefollowing stack script:
*command*doPrint
*open*printingwithdialog
*print*cd1
*print**break**-- with this commented out, both print on 1 page*
*print*cd2
*close*printing
*end*doPrint
With print break commented out, both cards print on 1 page. With it in
place, I get 2 pages of output. So for my test at least, print break
appears to be working as advertised. (again under LC900 Win 8.1)
More information about the use-livecode
mailing list