Problem with revPrintText
Posted: Sun Sep 16, 2012 1:16 am
I've created a one card stack ,with one field on it, to test printing from a field.
The field is named "Info" and contains styled text such as tabs stops, bold type, and various colors of type.
The field prints perfectly when I use the revPrintField command from the message box. However, I want to add a footer to the page and according to the user manual, the command to use in this case is revPrintText in conjunction with the htmlText function.
The dictionary entry for revPrintText has the following example:
If I understand correctly, this code should print the field "Info", put the word "Info" in the header. and the time and date in the footer. But when I copy and paste the line into the message box and execute it, I get the following error message:
Message execution error:
Error description: Function: error in function handler
Hint: revPrintText
Any ideas about what's going wrong?
The field is named "Info" and contains styled text such as tabs stops, bold type, and various colors of type.
The field prints perfectly when I use the revPrintField command from the message box. However, I want to add a footer to the page and according to the user manual, the command to use in this case is revPrintText in conjunction with the htmlText function.
The dictionary entry for revPrintText has the following example:
Code: Select all
revPrintText (the htmlText of field "Info"),"Info",the time && the date
Message execution error:
Error description: Function: error in function handler
Hint: revPrintText
Any ideas about what's going wrong?