Can not change the printer in windows 2000
Hello! I have one application with which I print reports with Fast Report and to choose the printer I use a PrintDialog. The problems is that with Windows XP it works perfectly, but when the application rund in Windows 2000, it doesn't work fine, it prints always in the default printer.
The code I use is:
PrintDialog.Copies:=NumOrig+NumCopia;
if PrintDialog.Execute
then begin
copias:=PrintDialog.Copies;
collate:=PrintDialog.Collate;
end
else exit;
frInforme.PrintOptions.Printer := Printer.Printers[Printer.PrinterIndex];
frInforme.SelectPrinter;
frInforme.ShowProgress:=False;
Thank you in advance.
The code I use is:
PrintDialog.Copies:=NumOrig+NumCopia;
if PrintDialog.Execute
then begin
copias:=PrintDialog.Copies;
collate:=PrintDialog.Collate;
end
else exit;
frInforme.PrintOptions.Printer := Printer.Printers[Printer.PrinterIndex];
frInforme.SelectPrinter;
frInforme.ShowProgress:=False;
Thank you in advance.