mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 07:32:37 +02:00
lazreport: fixed handling exception
git-svn-id: trunk@16550 -
This commit is contained in:
parent
545bdbd2b5
commit
99ab8f2d83
@ -801,8 +801,13 @@ begin
|
||||
Writeln('PaperSize is ',PaperSize);
|
||||
{$Endif}
|
||||
|
||||
PaperWidth:=fPrinter.PageWidth;
|
||||
PaperHeight:=fPrinter.PageHeight;
|
||||
try
|
||||
PaperWidth:=fPrinter.PageWidth;
|
||||
PaperHeight:=fPrinter.PageHeight;
|
||||
finally
|
||||
PaperWidth:=1;
|
||||
PaperHeight:=1;
|
||||
end;
|
||||
end;
|
||||
{$ifdef DbgPrinter}
|
||||
WriteLn('TfrPrinter.GetSettings FIN: PrinterChanged: ', PrinterChanged);
|
||||
@ -1099,9 +1104,12 @@ begin
|
||||
FPrinters.Assign(FPrinter.Printers);
|
||||
FPrinterIndex := FPrinter.PrinterIndex;
|
||||
end;
|
||||
GetSettings;
|
||||
FPrinters.Add(sDefaultPrinter);
|
||||
FDefaultPrinter := FPrinters.Count - 1;
|
||||
try
|
||||
GetSettings;
|
||||
finally
|
||||
FPrinters.Add(sDefaultPrinter);
|
||||
FDefaultPrinter := FPrinters.Count - 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
{
|
||||
@ -1123,8 +1131,13 @@ end;
|
||||
|
||||
initialization
|
||||
Prn := TfrPrinter.Create;
|
||||
Prn.Printer:=Printer;
|
||||
//ExportLista;
|
||||
try
|
||||
Prn.Printer:=Printer;
|
||||
except
|
||||
on E: Exception do begin
|
||||
debugln('lazreport: unit lr_prntr: ',E.Message);
|
||||
end;
|
||||
end;
|
||||
|
||||
finalization
|
||||
Prn.Free;
|
||||
|
@ -9,7 +9,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=iso-8859-1\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Drucken ..."
|
||||
|
||||
|
@ -4,7 +4,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Tulosta..."
|
||||
|
||||
|
@ -11,7 +11,7 @@ msgstr ""
|
||||
"X-Poedit-Language: French\n"
|
||||
"X-Poedit-Country: FRANCE\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Imprimer..."
|
||||
|
||||
|
@ -9,7 +9,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr ""
|
||||
|
||||
|
@ -10,7 +10,7 @@ msgstr ""
|
||||
"X-Generator: KBabel 1.11.4\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Spausdinti..."
|
||||
|
||||
|
@ -4,7 +4,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Imprimir"
|
||||
|
||||
|
@ -11,7 +11,7 @@ msgstr ""
|
||||
"X-Poedit-Language: Polish\n"
|
||||
"X-Poedit-Country: POLAND\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Drukuj..."
|
||||
|
||||
|
@ -4,7 +4,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr ""
|
||||
|
||||
|
@ -9,7 +9,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ideprinting:sdescrpfselection
|
||||
#: ideprinting.sdescrpfselection
|
||||
msgid "Print..."
|
||||
msgstr "Печать..."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user