Change Printer

I are trying to change the printer depending of a var: gpuertoimp

if gpuertoimp<>'' then
begin
vprin:=Printer.Printers.IndexOf(gpuertoimp); //gpuertoimp is
containing the printer name: '\\DESARROLLO6\EPSON FX-890 ESC/P'
if vprin>=0 then
begin
FrReport1.ChangePrinter(-1,vprin);
end;
end;
frReport1.PrepareReport;
frReport1.PrintPreparedReport('',1,False,frAll);

And send the report to the Default printer. Not to gpuertpimp.

If we do: frReport1.ShowReport; the printer change, but why: we must change
in propertis for redirect really the printer?
When we select propertis, always show is the default printer, no change it.
We must do it manualy.

Comments

  • edited 12:53AM
    if you ware printing to a windows printer driver then it should show in the windows spooler queue as the same filename as the input with .ps on the end e.g. Temptest.pdf.ps

    check the printer driver settings are set to send via windows spooler queue. default settings

    Admin
    Traction Software

Leave a Comment