changing the printer at run time

Hello My friends, I'm trying to change the printer in code but I can not. My code is like this:
    frxImpRemota.PrintOptions.Printer := fdqProdutosIMPRESSORAREMOTANOME.AsString; //Windows Printer Name
    frxImpRemota.PrepareReport(True);
    frxImpRemota.PrintOptions.ShowDialog:= False;
    frxImpRemota.Print;

So it prints where I want. But if I use the same code to switch to another printer it will not reprint to the previous printer.

Questions:
1) How do I print to a shared printer on the network?
2) How to print alternately on 2 printers on the network?
3) Any difference if it is a network printer (bematech 4000TH TPC / IP)?

Thank you all ... sorry for the english, I used the google translation.

Comments

  • gpigpi
    edited 2:16PM
    Try to use
    frxImpRemota.PrintOptions.Printer := fdqProdutosIMPRESSORAREMOTANOME.AsString; //Windows Printer Name
    frxImpRemota.SelectPrinter;
    

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.