Recent

Author Topic: [SOLVED] TPrintDialog Properties Button  (Read 197 times)

spuds

  • New Member
  • *
  • Posts: 16
[SOLVED] TPrintDialog Properties Button
« on: June 05, 2026, 10:30:34 pm »
On the Windows platform I am able to change printer properties. Previous posts made on this forum helped me to write all the code required to do this and to execute this code form a tool bar button. What I can't do however is use the printDialog to change printer properties though the properties button. The properties button in Print dialog launches a properties dialog however the changes to the properties have no effect. I am looking for some way to change Printer properties through printDialog.

Two possibilities have occurred to me. The first is to make the properties button in printDialog a published property so that I am able to make the on Click event execute my code. I am not sure this is possible or how to achieve this as I am not a component developer. The second option is to just write my own Print Dialog form. This also presents it's own challenges in that I want it to look identical to the windows Print Dialog which displays graphic images to the left of the collate check box. There may also be other solutions/options that have not occurred to me.
« Last Edit: June 06, 2026, 01:40:17 am by spuds »

jamie

  • Hero Member
  • *****
  • Posts: 7768
Re: TPrintDialog Properties Button
« Reply #1 on: June 06, 2026, 12:34:44 am »
I could be wrong, but I believe you need to use the "Refresh" in the Printer class after making changes so the PRINTER class can update its properties locally.

 You could do this in the OnClose of the Dialog or somewhere like that.
The only true wisdom is knowing you know nothing

spuds

  • New Member
  • *
  • Posts: 16
Re: TPrintDialog Properties Button
« Reply #2 on: June 06, 2026, 01:30:20 am »
Thanks Jamie

A very simple and elegant solution. I actually did a Printer.Refresh using the DeviceMode record from the toolbar button. This was also thanks to all the helpful posts you made. It just did not occur to me (although it probably should have) to try this first.
 

 

TinyPortal © 2005-2018