How to print directly to printer?
Here is the code I intended to use:
MyReport.DeviceType := 'Printer';
MyReport.PrinterSetup.PrinterName:= SomeFunction(SomeParameters);
MyReport.Print ;
The problem is that it always shows the print dialog before printing. I
don't want the user to be able to select another printer and/or
configuration. The report must be immediately printed.
How can I achieve this ?
Thanks.
MyReport.DeviceType := 'Printer';
MyReport.PrinterSetup.PrinterName:= SomeFunction(SomeParameters);
MyReport.Print ;
The problem is that it always shows the print dialog before printing. I
don't want the user to be able to select another printer and/or
configuration. The report must be immediately printed.
How can I achieve this ?
Thanks.
This discussion has been closed.
Comments
duh!