How to assign a printer in the code
Hi Guys,
The problem I have is that I need to assign a printer to report at runtime (in the code), but I connot seem to find this anywhere (on this forum or in the manual). I am using delphi 5.
Any help would be appreciated.
Thanx
Isamu
The problem I have is that I need to assign a printer to report at runtime (in the code), but I connot seem to find this anywhere (on this forum or in the manual). I am using delphi 5.
Any help would be appreciated.
Thanx
Isamu
Comments
frxreport1.PrintOptions.Printer := 'Canon i350';
the value is a string and must be the same as names shown in the system printers dialog.
do it after loading a report and before alling show or prepare.
It works like a charm Now, how do I print the report 1) Without it asking for a printer in the preview, and 2) Printing straight with no preview.
Thanx for the help
Isamu
call prepare
call print
read about the functions and procedures of the report component in the programmer's manual.
I was only given the users manual, which doesnt cover meny programming issues
Thanx for the help !!!