ok. i set this parameters, but i see the dialog box.
DataModule1.Query1.Active:=true; <this is the data
form1.frxReport3.LoadFromFile('dmeai.fr3'); <<this is the report file
if Form1.frxReport3.PrepareReport then
begin
Form1.frxreport3.Printoptions.printer := Edit4.text; <first try strtoint(edit4.text) but not good
form1.frxReport3.PrintOptions.ShowDialog := False;
form1.frxReport3.Print;
end;
i not use any frx****.pas file from source directory? this is the problem?
Comments
frxreport1.Printoptions.printer := integer;
which is the indexvalue of printer in printerslist
I use this code:
if frxReport1.PrepareReport then begin
frxReport1.PrintOptions.ShowDialog := False;
frxReport1.Print;
end;
Regards.
DataModule1.Query1.Active:=true; <this is the data
form1.frxReport3.LoadFromFile('dmeai.fr3'); <<this is the report file
if Form1.frxReport3.PrepareReport then
begin
Form1.frxreport3.Printoptions.printer := Edit4.text; <first try strtoint(edit4.text) but not good
form1.frxReport3.PrintOptions.ShowDialog := False;
form1.frxReport3.Print;
end;
i not use any frx****.pas file from source directory? this is the problem?