Skip to content

Commit 0db2838

Browse files
committed
delphi: fixup
1 parent 00d8b7d commit 0db2838

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Delphi/PDFReportGenerator.dpr

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ begin
5252

5353
AStream := TMemoryStream.Create;
5454
try
55-
// Export the report to PDF format and save it to a Stream object
55+
// Export the report to PDF format and save it to a memory stream
5656
AReport.ExportToPDF(AStream);
57-
// Write the content of the Stream object to a file
57+
// Write the content of the memory stream to a file
5858
AStream.SaveToFile(AOutput);
5959
Writeln('Report saved to: ', AOutput);
6060
finally
@@ -68,7 +68,6 @@ begin
6868
end;
6969
end;
7070

71-
7271
// The helper application entry point that parses command-line parameters and calls the export procedure
7372
begin
7473
var
@@ -86,9 +85,9 @@ begin
8685
var Key := Copy(AParam, 1, Pos('=', AParam) - 1).ToLower;
8786
var Value := Copy(AParam, Pos('=', AParam) + 1, Length(AParam));
8887

89-
if Key = 'ALayout' then
88+
if Key = 'alayout' then
9089
ALayout := Value
91-
else if Key = 'AOrderID' then
90+
else if Key = 'aorderid' then
9291
AOrderID := Value;
9392
end;
9493
end;
@@ -101,4 +100,3 @@ begin
101100
Writeln(E.ClassName, ': ', E.Message);
102101
end;
103102
end.
104-

0 commit comments

Comments
 (0)