Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to print directly to printer?

edited May 2002 in General
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.

Comments

  • edited May 2002
    "Fr?d?ric G?linas" wrote in message
  • edited May 2002
    > MyReport.ShowPrintDialog := False;

    duh!
This discussion has been closed.