why Printing on different printers ?

I'm using the FRReport.PrintpreparedReport Function.

Our customer wants to print many bill's without choosing the printer for output.
I did the following :
I'm setting the output printer with ->>> printer.printerindex := myvar ; (integer)

After this i'm trying to get out some reports with :
FRReport.PrepareReport;
FRReport.PrintpreparedReport(..etc..)

Some pages are coming out to the printer choosen with printer.printerindex.
Other pages are printer on the windows standard printer.
(Maybe every second report comes out on standard printer)

Can anyone help me to assign a specific printer before using printpreparedreport ???

Thank you for helping me ....

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:26PM
    Hi
    make sure when you design report that the select when loaded option is not set to true. in designer menu file-report options.
    Also try using printpreparedreportdlg function ,this will bring up the printer dialog where you can select printer and options.
    regards ;)
  • edited February 2004
    To change the printer programatically, use:
    frReport1.ChangePrinter(nIndex, nIndex);

    where nIndex would be something like Printer.PrinterIndex, etc.

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.