choose a printer

pacoescribapacoescriba Spain
edited 9:15PM in FastReport 3.0
I want choose a printer, choose a report and print it. Next i want choose another printer, choose a diferent report and print it.

How can i make it?

I've tried use PrintOptions->Printer and I change ShowDialog to false, but i have the printer select dialog always... What's the correct name to put in Printer option?

I use Windows XP SP2 and Delphi 7, with FastReport 3.21

Thanks

Comments

  • edited 9:15PM
    uses printers,..,;
    
    begin
    frxReport1.PrintOptions.Printer := Printer.Printers[Printer.PrinterIndex];//or other printer index
    frxReport1.PrintOptions.ShowDialog := false;
    if frxReport1.PrepareReport() then frxReport1.Print;
    end;
    
  • pacoescribapacoescriba Spain
    edited 9:15PM
    Thanks!

    I changed the frxReport1.PrintOptions.ShowDialog at desing time, but it don't function correctly. But when i change at run time, all is OK.

Leave a Comment