FastReport 2.4 printer problem
I've tried to print several reports to printer but there is somthing strange. After I changing printer in TPrinterSetupDialog to printer I need and trying to print several reports only first one is printed on selected printer. Others is printed on default printer. What should I do?
Thanks in advance
Thanks in advance
Comments
I can change the printer by calling fr.ChangePrinter(0,1):
0 is my Network Printer
1 is my Local Printer (Default Printer)
But this variant just for debugging on my machine.
In my program i work around ChangePrinter() with following method:
1) I save in a page setup form the name of the printer.
2) Before print I write the code "printers.Printer.PrinterIndex:=GetIndexByPrinterName;
GetIndexByPrinterName is a simple function that you can write which pass all printers.printers.strings[index] and check your saved name printer.
I hope that can help you.