Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Print labels in PDF
Re: Print labels in PDF [message #1761 is a reply to message #1744] Tue, 21 October 2008 14:37 Go to previous messageGo to previous message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
I almost done, just one last thing:
The user filters the persons to be printed in the list1 transaction, from there a button prints the details of each person, but I've modified _cm_output_multi so that with the first call to _cm_output_multi, all the selected labels are printed in pairs.
Therefore what I'm getting right now is that all the labels are printed as many times as records are selected in list1.

So what I've done is define a variable called 'first_print=true' in the person class, and then:
	function _cm_post_fetchRow ($rowdata){
		if ($this->first_print){
			$this->first_print = false;
			return $rowdata;
		}else{
			return null;
		}
	}


Is this the correct way to achieve it?

[Updated on: Tue, 21 October 2008 14:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help in New Window
Next Topic: PDF Document Margin Setup
Goto Forum:
  


Current Time: Tue Aug 06 19:28:16 EDT 2024

Total time taken to generate the page: 0.01137 seconds