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 4:22PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.