You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. SetTab method |
Top Previous Next |
Declaration procedure SetTab(NewPos: double; NewJustify: TPrintJustify; NewWidth: double; NewMargin: double; NewLines: byte; NewShade: byte);
Category
Description This method adds a tab setting.
See also TBaseReport Class, ClearTabs, ResetTabs
Example (Delphi) ClearTabs; SetPen(clBlack, psSolid,1, pmCopy); SetTab(0.5,pjCenter,3.5,0, BOXLINEALL,0); SetTab(NA, pjCenter,1.0,0, BOXLINEALL,0); SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0); SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0); Bold := true; Tab(-2,NA,-2,-2,NA); Print('Name'); Tab(NA,NA,-2,-2,NA); Print('Number'); Tab(NA,NA,-2,-2,NA); Print('Amount 1'); Tab(NA,-2,-2,-2,NA); PrintLn('Amount 2'); Bold := false;
Example (C++Builder) rp1->ClearTabs(); rp1->SetPen(clBlack, psSolid,1, pmCopy); rp1->SetTab(0.5,pjCenter,3.5,0, BOXLINEALL,0); rp1->SetTab(NA, pjCenter,1.0,0, BOXLINEALL,0); rp1->SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0); rp1->SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0); rp1->Bold = true; rp1->Tab(-2,NA,-2,-2,NA); rp1->Print("Name"); rp1->Tab(NA,NA,-2,-2,NA); rp1->Print("Number"); rp1->Tab(NA,NA,-2,-2,NA); rp1->Print("Amount 1"); rp1->Tab(NA,-2,-2,-2,NA); rp1->PrintLn("Amount 2"); rp1->Bold = false;
|
You are reading help file online using chmlib.com
|