[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Quartam Software Forums •Printing from Option buttons
Page 1 of 1

Printing from Option buttons

Posted: Wed Aug 11, 2010 12:28 pm
by arkstar
When I print a report, i get the line number from an option button rather than the label.
Any ideas?

thanks!
Rob

Re: Printing from Option buttons

Posted: Thu Aug 12, 2010 9:41 pm
by JanSchenkel
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:

Code: Select all

the label of button "MyOptionButton"
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

Code: Select all

qrtReports_PrintReportForCursor theLayoutFile, theCursorId, thePreviewFlag, "gMyOptions"
and then use an expression of the form:

Code: Select all

line theLineNumber of gMyOptions
If this doesn't do the trick, don't hesitate to elaborate and post extra questions!

Jan Schenkel.