Printing
Posted: Tue Nov 17, 2009 8:06 pm
Hi all,
I have a small (?) problem I ope someone can help me fix.
I am printing a complex layout, so I followed the instructions I found in the user guide. Everything seems to be ok except the margins. I have tried to set them up, but it does not recognize the settings.
This is my code
on mouseUp
open card "GuardarMap" of stack "Guardar" --this is where I have the "header"
hide stack "Guardar"
set the printerOutput to "device"
set the printerName to the first line of the availablePrinters
set the printPaperOrientation to "landscape"
set the printPaperScale to 0.5
set the printMargins to 100,100,100,100 -- I tried several values but nothing works
open printing
set the defaultStack to "Guardar" -- the header
print this card from the topLeft of group "MapHeader" of card "GuardarMap"\
to the bottomRight of group "MapHeader" of card "GuardarMap" into \
the rect of group "MapHeader" of card "GuardarMap"
put the bottom of group "MapHeader" of card "GuardarMap" into tHeaderBottom
set the defaultStack to "Estratego"-- the body
set the printTextAlign to center -- I tried also this, but I am not printing text, so I dont know
print this card from the topLeft of field "Green" of card "BrainMap"\
to the bottomRight of field "Green" of card "BrainMap" into \
0,tHeaderBottom,the right of field "Green" of card "BrainMap", \
the bottom of field "Green" of card "BrainMap" + tHeaderBottom
close printing
end mouseUp
any suggestion will be welcomed
Marta
I have a small (?) problem I ope someone can help me fix.
I am printing a complex layout, so I followed the instructions I found in the user guide. Everything seems to be ok except the margins. I have tried to set them up, but it does not recognize the settings.
This is my code
on mouseUp
open card "GuardarMap" of stack "Guardar" --this is where I have the "header"
hide stack "Guardar"
set the printerOutput to "device"
set the printerName to the first line of the availablePrinters
set the printPaperOrientation to "landscape"
set the printPaperScale to 0.5
set the printMargins to 100,100,100,100 -- I tried several values but nothing works
open printing
set the defaultStack to "Guardar" -- the header
print this card from the topLeft of group "MapHeader" of card "GuardarMap"\
to the bottomRight of group "MapHeader" of card "GuardarMap" into \
the rect of group "MapHeader" of card "GuardarMap"
put the bottom of group "MapHeader" of card "GuardarMap" into tHeaderBottom
set the defaultStack to "Estratego"-- the body
set the printTextAlign to center -- I tried also this, but I am not printing text, so I dont know
print this card from the topLeft of field "Green" of card "BrainMap"\
to the bottomRight of field "Green" of card "BrainMap" into \
0,tHeaderBottom,the right of field "Green" of card "BrainMap", \
the bottom of field "Green" of card "BrainMap" + tHeaderBottom
close printing
end mouseUp
any suggestion will be welcomed
Marta