Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » page numbering
Re: page numbering [message #5270 is a reply to message #5261] Tue, 12 September 2006 10:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
String  Report::FormatHF(const char *s, int pageno)
{
	String result;
	while(*s) {
		if(s[0] == '$' && s[1] == '$') {
			s += 2;
			if(*s == 'P') {
				result.Cat(Format("%d", pageno + 1));
				s++;
			}
			else
			if(*s == 'D') {
				result.Cat(Format(GetSysDate()));
				s++;
			}
		}
		else
			result.Cat(*s++);
	}
	return result;
}



OK?

Mirek
 
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: How to insert and display *.png file in UWord and/or qtf??
Next Topic: report / qtf to pdf saving
Goto Forum:
  


Current Time: Mon May 13 00:42:20 CEST 2024

Total time taken to generate the page: 0.01976 seconds