>Accturly, in my case the frx file is compiled and can not be modified while running. And the sys(1037) call up another dialog windows to user, and maybe it will confused the users after they selected the print copies just in my customerized dialog window. I've viewed the topics and I think it not very answer for my case. Anyway Thanks for your help.
Hi again,
Why this solution didn't satisfy you? In this case you don't touch the original report, but the temp copy of it:
Quote from Mark McCasland message:
To do what you want, I had to do the following:
lcFile = sys(3)
lnCopies = ThisForm.spnCopies.Value
select * from myreport.frx into table lcFile + ".frx"
repl expr with strtran(expr, 'COPIES=1', 'COPIES=' + str(lnCopies))
use
repo form (lcFile) to printer noconsole
erase lcFile + ".frx"
erase lcFile + ".frt"
If it's not broken, fix it until it is.
My Blog