Dear Experts,
I am using Delphi 7 and Rave components to produce my reports.
This reports will be printed in a manufacturing environment.
When executing the report, using Rave it will be irritation to click (and also time consuming)
through all the "print / preview" etc prompts. What I need is that when executing the report it
must directly (immediately) start to print to the printer.
BUT, the user must be able to specify all the configurations at the setup form for example:
1. Should Report be Previewed first / Print Immediately.
2. The printer for each report should be set up. For example:
For printing picking lists, use PrinterABC
For printing Labels, use PrinterXYZ.
And then also show me how to save these settings, maybe in a ini file or what ever is best.
Show to sum it all up.
I want my users to setup all (or at least the 2 above mentioned) printer parameters once, on first run, and thereafter they just print by obeying the set up parameters.
Please help with complete code examples or demos.
Thanks in advance.
http://www.nevrona.com/Default.aspx?tabid=132
-- turn off the dialog --
If you want to turn off the dialog, place a TRvSystem component on the same form or data module as your TRvProject. Set the Projects Engine proprty to the TRvSystem. Then on the RvSystem component's SystemSetups set ssAllowSetup to false. Code for that (with the connections in place) would be:
RvSystem1.SystemSetups := RvSystem1.SystemSetups - [ssAllowSetup];
-- printer settings --
The same RvSystem component has a SystemPrinter property that contains proprties to allow setting many printer options.
-- render directly to the printer --
Set the TRvSystem object's DefaultDest property to rdPrinter. This alone will make the printer settings dialog default to printer. Combine this with disabling the print preview dialog and it goes directly to the default printer.
Let me know if you need more.