FastReport 2.4 printer problem

I've tried to print several reports to printer but there is somthing strange. After I changing printer in TPrinterSetupDialog to printer I need and trying to print several reports only first one is printed on selected printer. Others is printed on default printer. What should I do?

Thanks in advance

Comments

  • edited November 2003
    Hm, I have another problem: My report is printed on a not default printer. How can I change to default one? I don't want to show every time print options dialog.
    I can change the printer by calling fr.ChangePrinter(0,1):
    0 is my Network Printer
    1 is my Local Printer (Default Printer)
    But this variant just for debugging on my machine.
  • edited 11:44AM
    for paulvas.

    In my program i work around ChangePrinter() with following method:

    1) I save in a page setup form the name of the printer.
    2) Before print I write the code "printers.Printer.PrinterIndex:=GetIndexByPrinterName;

    GetIndexByPrinterName is a simple function that you can write which pass all printers.printers.strings[index] and check your saved name printer.

    I hope that can help you.

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.