Printer Selection Problem

Hi,

I've made my own Print Dialog and I have a problem. I have ComboBox that has a list of printers. If I choose a Printer and click on a Print Button with the code:

frxReport1.print;

It always sends it to my Windows Default Printer. If I select a printer and go to preview and then click on the Print Button it will send it to the printer I've chosen.

The code is the same the only difference is that I don't do preview on the first occasion.

THanks for all the answers.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:58AM
    you have probably missed a call to application to process windows message.
  • edited 9:58AM
    gordk wrote: »
    you have probably missed a call to application to process windows message.


    Can you please explain me how to do that, because there is no such explanation in the manual.

    Thanks
  • gordkgordk St.Catherines On. Canada.
    edited 9:58AM
    read the delphi help files about changing printers.
    when an app is started it picks up on the default printer and this must be changed (this is what you are doing when you select from the fr preview printer dialog)

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.