| Jean Lussier 2006-03-13, 6:55 pm |
| 1) You have the correct PROP:text,
2) You do NOT need the SETTARGET in this case.
(only needed for individual fields or details lines ),
3a) If using Legacy templates, you need to make sure
your code (Report{PROP:Text}=...) is after the
template generated code: OPEN(Report)
3b) If using ABC templates, you need to make sure
your code is in embed "ThisWindow.OpenReport",
just after the "Parent.OpenReport()", and you must
put your code into a condition in case there are no
records to print:
If ReturnValue
Report{PROP:Text}=...
End
P.S.: All this stuff is required for a "dynamic" job-name.
----- If you always have the same name for a given report,
----- you can set it at design time in the report formatter.
Jean Lussier
INFORMACCES - Montreal (Canada)
"Suntower" <mail@suntowersystems.com> wrote in message
news:1142272872.635369.169310@v46g2000cwv.googlegroups.com...
> I can't seem to get the job name for a Report to print in the Window
> Printer Manager. It always says CW_DEFAULT.
>
> I set the job name in the Report Editor. No soap.
>
> Then I tried at run time:
>
> SETTARGET(Report)
> Report{PROP:Text} = 'My_Doc_Name'
> SETTARGET()
>
> ....to no avail. Still says 'CW_DEFAULT' in the Windows Printer window.
>
> Any ideas?
>
> TIA,
>
> ---JC
|