Page 1 of 1

Printing a field content

Posted: Fri Apr 12, 2013 11:41 am
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:

Re: Printing a field content

Posted: Fri Apr 12, 2013 11:48 am
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

Re: Printing a field content

Posted: Fri Apr 12, 2013 12:17 pm
by Mag
Thank you so much Klaus. Now it works great. :D