How can I print one record from a form. When I print I get all the records that are present in my table.
I think it has to do something with a filter but I am not sure.
I usually do that to ensure that running the report doesn't affect Rec in any way, and to allow me to set additional filters on "MyRecord" - again without affecting Rec. Makes sense?
Comments
MyRecord := Rec;
MyRecord.SETRECFILTER;
REPORT.RUNMODAL(REPORT::"ReportName", true, false, MyRecord);
where...
MyRecord is a record var of the same subtype as Rec
ReportName is the name of the report that is to be used for printing.
Jan Hoek
Product Developer
Mprise Products B.V.
Why does this not work:
Rec.SETRECFILTER;
REPORT.RUNMODAL(REPORT::"ReportName", true, false, Rec);
?
---
Jan Hoek
Product Developer
Mprise Products B.V.
http://www.BiloBeauty.com
http://www.autismspeaks.org