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 » Community » Newbie corner » Report & sch file
Re: Report & sch file [message #37618 is a reply to message #37615] Sat, 27 October 2012 00:29 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 266
Registered: March 2010
Experienced Member
Hello,

to add a report in a TabCtrl, use ReportView class.

this is a demo:

#include <CtrlLib/CtrlLib.h>
#include <Report/Report.h>

using namespace Upp;

class ReportInTabCtrl : public TopWindow {
public:
	typedef ReportInTabCtrl CLASSNAME;
	
	TabCtrl tab;
	Button bPrint;
	
	ReportView rv;
	Report r;

	ReportInTabCtrl()
	{
		tab.Add(rv.HSizePosZ(0, 0).VSizePosZ(0, 0), "Preview");
		tab.Add(bPrint.LeftPos(10, 60).TopPos(10, 20), "Print");
		
		Add(tab.HSizePosZ(10, 10).VSizePosZ(10, 10));	
		
		bPrint.SetLabel("Print");
		bPrint <<= THISBACK(BPrint);
		
		r.Header("[A2> Page $$P");
		r << "This is some [* QTF text";
		
		rv.Set( r);
	}
	
	void BPrint()
	{
		Print(r, rv.GetFirst(), "printing..");
	}
};


GUI_APP_MAIN
{
	ReportInTabCtrl().Run();
}



regards
omari.


regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ftheader.h: no such file or directory
Next Topic: Multi Layout App
Goto Forum:
  


Current Time: Thu May 09 04:19:04 CEST 2024

Total time taken to generate the page: 0.01594 seconds