Print card from 0,50 prints nothing on page

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
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Print card from 0,50 prints nothing on page

Post by jalz » Wed Dec 16, 2015 4:53 pm

Hi Guys,

I have the following code below. Im trying to print a card, 50 pixels/points down from the top. So found the "print card from" command which I though would work. However it just prints a blank page. Any ideas what I could be doing wrong? The "print card" command prints everything out and I'm trying to avoid to top.

Thanks
Jalz

Code: Select all

   open printing
   repeat with x = 1 to the number of cards
 
  --This works, prints the whole card    
   print card

   -- This does not work.
   print this card from 0,50 to 575,600
   end repeat
   close printing

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Print card from 0,50 prints nothing on page

Post by dunbarx » Wed Dec 16, 2015 6:52 pm

Hi.

I bet nothing is wrong.

What happens if you "print card x" from...?

Craig Newman

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: Print card from 0,50 prints nothing on page

Post by jalz » Wed Dec 16, 2015 7:00 pm

Hi Craig,

Tried that, it just prints a blank page. Yet I know there is content in that printable area. In fact my whole page has got a number of objects dispersed all around the page, so it should catch something.

Thanks
Jalz

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Print card from 0,50 prints nothing on page

Post by dunbarx » Wed Dec 16, 2015 8:40 pm

Hi.

You are saying that:

Code: Select all

repeat with y = 1 to the number of cds
print cd y --or print from here to there
end repeat
Prints nothing? But if you navigate to a card and print (from here to there), you always get something?

Craig

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: Print card from 0,50 prints nothing on page

Post by jalz » Thu Dec 17, 2015 12:10 am

Hi Craig, I think its working now…. thanks, time to do more testing

Post Reply