Hi, I want to change some printer settings before printing. (By default, my printer prints only one side and color, but I want to print double-sided and grayscale). I am using a TPrintDialog. When it is displayed, I use the properties button to access the printer properties dialog box that I attached below. Then, I modify the desired options, I accept and send my document to the printer, but the document is printed in color and on one side only, anyway.
Is there something that I am forgetting? Does this dialog work correctly?
This is the code (very simple):
with PrintDialog1 do
begin
Copies := 1;
MinPage := 1;
MaxPage := doc.PageCount;
PrintRange := prAllPages;
if Execute then
begin
// Send data to Printer
end;
end;
Edit: this test was made on Windows 8. I will test on Windows 10 and Linux, too.