Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | fix compilation about report generation |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
31215eec71cc707ac9c72504a9211f0d |
User & Date: | G018869 2012-07-11 12:24:41 |
2012-07-12
| ||
15:32 | updated documentation about ORM features of mORmot, when compared to other implementations check-in: 9675d194ab user: G018869 tags: trunk | |
2012-07-11
| ||
12:24 | fix compilation about report generation check-in: 31215eec71 user: G018869 tags: trunk | |
12:23 |
| |
Changes to SQLite3/Samples/MainDemo/FileClient.pas.
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
...
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
sPictureN = '%s Picture';
procedure TFileRibbon.CreateReport(aTable: TSQLRecordClass; aID: integer; aReport: TGDIPages;
AlreadyBegan: boolean=false);
var Rec: TSQLFile;
Pic: TBitmap;
s: string;
PC: PChar;
P: TSQLRibbonTab;
begin
with aReport do begin
// initialize report
Clear;
BeginDoc;
Font.Size := 10;
................................................................................
RestoreSavedLayout;
// write global header at the beginning of the report
DrawTitle(P.Table.CaptionName+' : '+Caption,true);
NewHalfLine;
AddColumns([6,40]);
SetColumnBold(0);
if Rec.SignatureTime<>0 then begin
PC := Pointer(Format(sSignedN,[Rec.SignedBy,Iso2S(Rec.SignatureTime)]));
DrawTextAcrossColsFromCSV(PC,$C0C0FF);
end;
if Rec.fCreated<>0 then
DrawTextAcrossCols([sCreated,Iso2S(Rec.fCreated)]);
if Rec.fModified<>0 then
DrawTextAcrossCols([sModified,Iso2S(Rec.fModified)]);
if Rec.fKeyWords='' then
|
|
|
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
...
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
sPictureN = '%s Picture'; procedure TFileRibbon.CreateReport(aTable: TSQLRecordClass; aID: integer; aReport: TGDIPages; AlreadyBegan: boolean=false); var Rec: TSQLFile; Pic: TBitmap; s: string; PC: PWideChar; P: TSQLRibbonTab; begin with aReport do begin // initialize report Clear; BeginDoc; Font.Size := 10; ................................................................................ RestoreSavedLayout; // write global header at the beginning of the report DrawTitle(P.Table.CaptionName+' : '+Caption,true); NewHalfLine; AddColumns([6,40]); SetColumnBold(0); if Rec.SignatureTime<>0 then begin PC := Pointer(StringToSynUnicode(Format(sSignedN,[Rec.SignedBy,Iso2S(Rec.SignatureTime)]))); DrawTextAcrossColsFromCSV(PC,$C0C0FF); end; if Rec.fCreated<>0 then DrawTextAcrossCols([sCreated,Iso2S(Rec.fCreated)]); if Rec.fModified<>0 then DrawTextAcrossCols([sModified,Iso2S(Rec.fModified)]); if Rec.fKeyWords='' then |