Printer settings

Hi,

I would like to use my printer dialog derived from TPrintDialog to choose and setup the printer from the code but the printer settings (like color or bin) are not applied.
I run this code after my report is prepared:
myIndex := frxPrinters.IndexOf(Printer.Printers[Printer.PrinterIndex]);
    if myIndex <> -1 then
    begin
      frxPrinters.PrinterIndex := myIndex;
      FReport.PrintOptions.Printer := frxPrinters[myIndex].Name;
      FReport.SelectPrinter;

If I use the FastReport printer dialog, the settings are applied but the bin isn't OK.

I search in the forums but I've found solution.

Thank you.

Comments

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.