Home General

Generating PDF opens Acrobat Reader

Hi;

we are using D7 and RB 15.02

Fcartas.Recpagesp.PDFSettings.Title := 'Recordatorio de pago '+Qrecibos.fieldbyname('re_pol').asstring+' ('+StringReplace(Qrecibos.fieldbyname('re_num').asstring, '/', '-', [rfReplaceAll, rfIgnoreCase])+')';

Fcartas.Recpagesp.ShowPrintDialog :=False;
Fcartas.Recpagesp.ShowCancelDialog :=False;
Fcartas.Recpagesp.ModalCancelDialog :=False;

Fcartas.Recpagesp.Print;
With that code, we generate a PDF file; the first time we execute that code the file is created without problem, but the following times we execute it, Acrobat reader is open to show the file.

Why?

PS.
if we remove the "false" lines, it shows Printer's dialog
Sign In or Register to comment.