Printing

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Ben-Web
Posts: 1
Joined: Wed Mar 30, 2011 2:38 pm

Printing

Post by Ben-Web » Fri Apr 01, 2011 9:12 am

Hi!
I'm using LiveCode to create report from MySQL everything work fine, except that I don't understand how can i print via "layout" like explain in the user guide <8.10.1 Printing a complex layout> page 287-288. I have a main stack name "Main", I've create an other new main stack name "Layout" with the 4 rectangles "header, body, footer1 and footer2", now i want to import into the header the logo and date... How can i manage it ??? do i have to create other stack or card ?? i try adding a new card with name "header graphics" with the logo but i have an error on code <set the defaultStack to stack "header graphics"> ?
can you help me please ???
Ben

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Printing

Post by bangkok » Fri Apr 01, 2011 5:11 pm

Here is an example.

The idea is to separate the stack where you get your data, and the stack where you print those data.

mainstack of the example : you type your data into fields
substack : a script paste those datas into the proper fields, with the layout (with other texts, images whatever) you want, and print the card
Attachments
PRINT_EXAMPLE.zip
(16.65 KiB) Downloaded 195 times

Post Reply