Page 7 of 7

Re: Looking for Help on a Project

Posted: Fri Jul 07, 2017 11:28 am
by Klaus
Hi David,
bidgeeman wrote:For some weird reason the images are now simply loading straight into my main stack?????
This was working fine a week ago. Can anyone advise what the problem could be?
unfortunately this syntax "import paint ... onto card XYZ..." is not valid.

Try something like this:

Code: Select all

...
set the defaultfolder to it       
put the files into myListOfFiles  
filter myListOfFiles with "*.png"

## !!!
lock screen
go cd "Nums" of stack "imageload"
repeat for each line myFile in myListOfFiles            
    import paint from file myFile into card "Nums" of stack "ImageLoad"           
end repeat  
## Now unlock screen and go back to where you came from      
 ...
Best

Klaus

Re: Looking for Help on a Project

Posted: Fri Jul 07, 2017 11:34 am
by bidgeeman
Thanks once again Klaus.
Now if only I could get it to print Landscape :(

Bidge

Re: Looking for Help on a Project

Posted: Sat Jul 08, 2017 12:28 am
by bidgeeman
I have attached a stack that is supposed to print in Landscape and in Portrait. For some reason I cannot get it to print in Landscape mode at all, no matter what I do. Can someone please look at the stack and tell me if there are any errors that might be causing the problem?

Many thanks
Bidge

Re: Looking for Help on a Project

Posted: Sat Jul 08, 2017 3:11 am
by bidgeeman
Hello.
I have figured a workaround for this Landscape problem. Take a snapshot of the Landscape image area, place it on another card, rotate it 90 degrees and print it via portrait mode.

Can someone help me out with the correct syntax for placing a snapshot onto another card?

Code: Select all

export snapshot of image "Print" of stack "ImageArea" as JPEG to image "PR" of stack "PrintRoom"
I keep getting learner errors.

Thanks
Bidge

Re: Looking for Help on a Project

Posted: Sat Jul 08, 2017 3:30 am
by jameshale
According to the dictionary the PrintPaperOrientation has to be set BEFORE calling open printing.
You have...

Code: Select all

on mouseUp
   focus on nothing
   open printing with dialog
   if the result is "Cancel" then exit mouseUp
   set the printPaperOrientation to "landscape"
   set the printMargins to 0,0,0,0
   set the printPaperSize to "595,842"
   set the printScale to 1
   print stack "ImageArea"
   close printing
end mouseUp 
Perhaps it should be..

Code: Select all

on mouseUp
   focus on nothing
   set the printPaperOrientation to "landscape"
   set the printMargins to 0,0,0,0
   set the printPaperSize to "595,842"
   set the printScale to 1
   open printing with dialog
   if the result is "Cancel" then exit mouseUp 
   print stack "ImageArea"
   close printing
end mouseUp

Re: Looking for Help on a Project

Posted: Sat Jul 08, 2017 3:33 am
by bidgeeman
Thanks jameshale.
THAT WORKED!!!!! Thank you so much!

Many thanks
Bidge