Select Printer Urgent 2
Dear Nico,
I use the version 6.22
Any property not work (after printer, before printer etc.)
I try
try
ppLabelZebra.Print;
ppLabelZebra.SavePrinterSetup := True;
finally
saveprintername(ppLabelZebra.PrinterSetup.PrinterDescription) or
saveprintername(ppLabelZebra.PrinterSetup.PrinterName)
end;
ever show default printer.
why ?
Best Regards,
Franco.
I use the version 6.22
Any property not work (after printer, before printer etc.)
I try
try
ppLabelZebra.Print;
ppLabelZebra.SavePrinterSetup := True;
finally
saveprintername(ppLabelZebra.PrinterSetup.PrinterDescription) or
saveprintername(ppLabelZebra.PrinterSetup.PrinterName)
end;
ever show default printer.
why ?
Best Regards,
Franco.
This discussion has been closed.
Comments
After the user selects a printer, you will need to access the printer object
to find which printer they selected. Try using the OnPrintDialogClose event
to access this value. Something like the following...
procedure TForm1.Button1Click(Sender: TObject);
begin
ppReport1.Print;
ppReport2.ShowPrintDialog := False;
ppReport2.PrinterSetup.PrinterName := FPrinterName;
ppReport2.Print;
end;
procedure TForm1.ppReport1PrintDialogClose(Sender: TObject);
begin
FPrinterName := ppReport1.Printer.PrinterName;
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Not work the event (any)
Franco.
my testing, this worked correctly.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
When you trace your code, which line is failing? I'm going to need more
information on what is happening with your code to understand the problem.
I'm sorry, we do not have older versions of ReportBuilder available to test
with. I would recommend downloading and installing the latest trial version
available for the version of Delphi you are using and testing with that.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com