When I print a report, i get the line number from an option button rather than the label.
Any ideas?
thanks!
Rob
Printing from Option buttons
-
- Site Admin
- Posts:110
- Joined:Sun Jul 18, 2010 5:21 pm
- Location:Aalst, Belgium
- Contact:
Re: Printing from Option buttons
Hi Rob,
What you see on the report depends on the data field expression, of course
If you're printing data from a stack, using the qrtReports_PrintReportForStack command, you would use an expression of the form:
If you're printing data from a database cursor, using the qrtReports_PrintReportForStack command, and the database column is an index number, the first solution that comes to mind, is storing the text of the option button into a global variable "gMyOptions", passing this variable as the fourth parameter and then use an expression of the form:
If this doesn't do the trick, don't hesitate to elaborate and post extra questions!
Jan Schenkel.
What you see on the report depends on the data field expression, of course
If you're printing data from a stack, using the qrtReports_PrintReportForStack command, you would use an expression of the form:
Code: Select all
the label of button "MyOptionButton"
Code: Select all
qrtReports_PrintReportForCursor theLayoutFile, theCursorId, thePreviewFlag, "gMyOptions"
Code: Select all
line theLineNumber of gMyOptions
Jan Schenkel.
Quartam Developer Tools for LiveCode
http://www.quartam.com
http://www.quartam.com