Getting error while print Layout

Getting Error while saving as PDF

Please help me to resolve the problem

support.microsoft.com/…/2673402

https://dynamicsuser.net/nav/f/developers/74984/error-object-reference-not-set-to-an-instance-of-an-object-while-report-running/409471

Please Follow above links

Thank You
Mahesh U

Code.GetGroupPageNumber(ReportItems!NewPage.Value,Globals!PageNumber)

Please Check this . I’m getting error in this code

write all the fields in one hidden box with textbox name and use this name in any where in header or footer as

here ShipTOAddress in hidden textbox in body of the report and “1” is the first field in hidden box, if you give 2 in place of 1 second value will display.

Thank you.