Printing a field content

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Printing a field content

Post by Mag »

I'm trying this code but nothing appens...

Code: Select all



on printOutputField
   open printing with dialog as sheet
   if the result is "Cancel" then exit printOutputField 

   revPrintField field (the name of field "outputField") -- Prints the text in the field using the field's text properties.
   close printing
end printOutputField


I'm sure I do something wrong but I do not know what, any idea? :oops:
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Printing a field content

Post by Klaus »

Hi Mag,

looks like one FIELD too much:
...
## revPrintField field (the name of field "outputField")
revPrintField the name of field "outputField"
...


Best

Klaus
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Printing a field content

Post by Mag »

Thank you so much Klaus. Now it works great. :D
Post Reply