Passing a parameter to a Report

AlxAlx Member Posts: 38
edited 2005-08-19 in Navision Attain
Hi everybody,

I have made an Invoice Report for a customer and try to print it. Under the Print button of the Posted Sales Invoice Form there is this code:

CurrForm.SETSELECTIONFILTER(SalesInvHeader);
SalesInvHeader.PrintRecords(TRUE,Rec);

No matter which report I try to print to (the original 206 or my new 50002), specified in Report Selection, the No. is NOT sent to the report.

](*,)

Any suggestions?

Alx

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Alx,

    The code is a bit awkward

    In standard navision is:
    CurrForm.SETSELECTIONFILTER(SalesInvHeader);
    SalesInvHeader.PrintRecords(TRUE);
    

    So you need to find out where the (True, Rec) comes from.

    Maybe the fault is in the PrintRecords function.

    Regards,

    Marq
  • AlxAlx Member Posts: 38
    Thanx Mark!

    I took out the Rec from the call and from the function in Sales Invoice Header and it worked. I still don't know how Rec got in there in the first place, but I guess it might have something to do with the Greek localization...

    Anyway, hartstikke bedankt!

    Alx
Sign In or Register to comment.