Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Printersetup in Quickreport (https://www.delphipraxis.net/78281-printersetup-quickreport.html)

dleeming 2. Okt 2006 15:33


Printersetup in Quickreport
 
Hi,

Ich bin neu hier und auch einen Englander.

Ich brauch etwa hilfe..

Und zwar mit die Printersetup Funktion von Quickrep.

Ich ruf es auf so wie hier unten und wenn die Printerdialog angezeigt wird und ich auch Abbrechen klicke, es Drückt trotzdem.

Was mach ich Falsch.

Delphi-Quellcode:
procedure Tfrm_selrep_cust_mgt_fee_top.JvBitBtn1Click(Sender: TObject);
begin
     // Print Management Fee

     frm_rep_cust_mgt_fee.qrep_cust_mgt_fee.Printersetup;
     frm_rep_cust_mgt_fee.qry_rep_mgt_fee.Active := True;
     frm_rep_cust_mgt_fee.qry_company_banking_information.Active := True;

     frm_rep_cust_mgt_fee.qrep_cust_mgt_fee.Print;
end;
Mfg

Darren

marabu 2. Okt 2006 19:35

Re: Printersetup in Quickreport
 
Hi Darren, welcome to the club.

AFAIR canceling PrinterSetup() only drops the settings you made in that dialog. Since there is no result returned - in fact you are dealing with a procedure not a function - you must change your concept. What about Preview() instead of PrinterSetup() followed by Print(). Your user should be capable to decide on when to change settings and can do so from within the preview - and he also can close the preview without printing.

Kind regards

marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz