Recent

Author Topic: [Solved] Default filename in PrintDialog  (Read 329 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 543
    • Double Dummy Solver - free download
[Solved] Default filename in PrintDialog
« on: August 11, 2022, 06:45:33 pm »
In the PrintDialog, when a user selects something like "Microsoft print to PDF", rather than a printer, he is then directed to select a folder and file name for that PDF file. Is it possible to provide the user with a default filename in this situation?
« Last Edit: August 17, 2022, 07:56:29 pm by bobonwhidbey »
Win11 64-bit / Lazarus 32-bit 2.2.4 / FPC 3.2.2

dje

  • Full Member
  • ***
  • Posts: 124
Re: Default filename in PrintDialog
« Reply #1 on: August 17, 2022, 04:53:08 pm »
I don't use Windows anymore, but your question seems to be solved here:

https://forum.lazarus.freepascal.org/index.php?topic=47640.0

rvk

  • Hero Member
  • *****
  • Posts: 5017
Re: Default filename in PrintDialog
« Reply #2 on: August 17, 2022, 04:57:47 pm »
And don't forget "Microsoft Print to PDF" creates a really large inefficient PDF.
Much larger dan any other PrintToPDF solution.

It's usable for the occasional PDF but if you are going to store or mail these routinely, you better stay away from "Microsoft Print to PDF".

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 543
    • Double Dummy Solver - free download
Re: Default filename in PrintDialog
« Reply #3 on: August 17, 2022, 07:56:16 pm »
Thank you. That worked perfectly.
Win11 64-bit / Lazarus 32-bit 2.2.4 / FPC 3.2.2

 

TinyPortal © 2005-2018