Hello.
I need to print a report on a certain printer that is not the default printer. I want to assign the printer by code, without using a printer selection form.
I know the name of the printer in windows, and I try to assign it before printing, but the printing still comes out in the printer by default.
My code:
Printers.Printer.SetPrinter (strMyPrinter);
frReport.LoadFromFile (strMyReport);
frReport.PrepareReport;
frReport.PrintPreparedReport ('1-1', 1);
What am I doing wrong ?