Standard Windows dialogs for printer selection and setup

Hi, I'm using Fast Reports on a new project written in Delphi XE2. The software is localized in various languages, so I'm relying on standard Windows dialogs whenever possible to reduce the requeired amount of localization effort, and also because usually they are quite comfortable and easy to understand for the end-user.
I always used successfully the standard Windows dialogs with Delphi and hardcoded reporting, but the same thing doesn't apply with Fast Reports, because I see that printer handling is not synchronized with the whole Delphi's printer unit stuff.
So, I've already looked trough the forum, but beside setting the color/monochrome option I still can't get the wanted behaviour.
I've completely copied the DeviceMode^ structure in the TfrxPrinter(frxPrinters.Printer).DeviceMode structure, field by field (see the first reply to this post to have a look at a code sample: [post="23888"]code sample[/post]), but still I can't get the more advanced options applied (for example the advanced layout options such as multiple pages in one and similar things).
Is there a way to let a report synchronize its printing settings with the options of Delphi's printer unit? I really think that's an important point, if we're trying to provide professional looking applications.

Comments

  • gpigpi
    edited February 2012
    You can translate all FR's forms with FR Recompile wizard (recompile.exe) and use FR's printer's dialog
    Also you can make one .frc file that contains all resources.
    This file can be loaded from your application by this code:
    uses frxRes;
    frxResources.LoadFromFile('english.frc');
  • edited 4:46PM
    Thanks gpi, I will consider that solution, but I would still prefer relying on default Windows dialogs, if possible, so if that can be acheived I would be happier.
    Thanks anyway.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.