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.
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
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');
Thanks anyway.