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 » Developing U++ » Bazaar » Very Simple Report Generator (Use QTF format)
Re: Very Simple Report Generator (Use QTF format) [message #37098 is a reply to message #37074] Tue, 21 August 2012 21:23 Go to previous messageGo to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 741
Registered: January 2008
Location: Moscow, Russia
Contributor

jibe wrote on Sat, 18 August 2012 03:04

Yes, I saw that. But if the example shows how to use ##BT and ##ET and let me guess how it works, there is nothing about ##BP and ##EP. I think that a lot of people would appreciate a short explanation about that !



##BT and ##ET - body repeatable block (begin and end) in table structure ( {{ .. :: .. :: .. .... .. }} ) - automaticaly find boundary of columns.

##BP and ##EP - body repeatable block (begin and end) in plain text (may be in contract or article, for ex.)

Additionally, We can create custom body repeatable block for nested table data. (for example ##LANGBT and ##LANGET for languages, person can speaking)
This operation is very simple:
	RepGenSubProc repLangs(rep, "##LANGBT","##LANGET");
	repLangs.RepGenSubProcBody = THISBACK(PrintResume_CalcLangBody);

and definition of PrintResume_CalcLangBody
void AnketaListDlg::PrintResume_CalcLangBody() {
#undef VAR
#define	VAR(x)		rep.SubstVar("##" #x,AsString(sql[ANL_##x]));
	Sql sql;
	sql * SqlSelect(SqlAll()).From(ANKETALANGUAGE).Where(ANL_ANKETAID == gANK_ID).OrderBy(ANL_LANGUAGE);
	while (sql.Fetch()) {
		rep.RepGenCalculateBodyBeforeSubst();
		VAR(LANGUAGE);
		VAR(FINDLEVEL);
		VAR(LEVEL);
		rep.RepGenCalculateBodyAfterSubst();
	}
}



##BT and ##ET can also create variable-columns reports.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Tue, 21 August 2012 21:30]

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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
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
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
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BarCode128: string to image (Candidate for upload to Bazaar)
Next Topic: Simple INI parser (15 mb in 4 s, DualCore 2500 Mhz)
Goto Forum:
  


Current Time: Sat Oct 31 00:11:01 CET 2020

Total time taken to generate the page: 0.04004 seconds