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

Problem with removing Print Dialog

edited December 2002 in Devices
Helllo, I was wondering if anyone could help me with this...

I made my own Print Dialog which has a choice of either viewing report,
editing it or printing it directly to the printer.

This is a piece of code I wrote for printing a report directly to the
printer:

if FfrmPrintDialog.cbSetup.Checked then
begin
Device := dvPrinter;
PrinterSetup.PrinterName := 'Current';
PrinterSetup.Copies := FfrmPrintDialog.seCopy.IntValue;
end;
PrintReport;

I encountered a problem at this point- no matter whether I choose Print
Setup or not, the standard Windows Print Dialog form always shows up !
How do I turn it off and use my own settings ?

Thank you in advance, Marina.

Comments

This discussion has been closed.