Yes, pretty much all three. I have separate cards, and on one there are images that the user should be able to tap on. From there I would like to change cards to a different card where the image will be displayed, and have the ability to send that image to a printer connected via WiFi and print it.what exactly do you have problems with?
Let the user select an image file?
"Putting" that user selected image into another image object?
Printing the "other" card with the image?
All of the three?
Best
Klaus
Printing in LiveCode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Printing in LiveCode
Re: Printing in LiveCode
Okie Dokie
Best
Klaus

Code: Select all
...
## Let the user select a JPEG or PNG image file
answer file "Please select an image file:" with type "Image files|png,jpg|"
## User cancelled
if the result = "Cancel" then
exit to top
end if
## IT contains the path to the image.
## Since IT will change when you least exspect it, put IT into a variable immediately!:
put it into tImageFile
set the filename of image "the one that will not get printed" to tImageFile
## Now "transfer" the image to the other stack that will get printed, just set its filename to the same path:
set the filename of image "the one that WILL get printed" of cd "print card" of stack "the other stack, if any..." to tImageFile
## Now you can print that card, as already shown by Jaque on the previous page of this thread :-)
...
Klaus
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Printing in LiveCode
If you download my stack and crack open the script of the "Print" button you
will see that it ONLY prints the picture in the graphic . . .
will see that it ONLY prints the picture in the graphic . . .