choose a printer

pacoescribapacoescriba Spain
edited 2:24PM 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 2:24PM
    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 2:24PM
    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

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.