NSPrintInfo designing reports

I am developing an macOS Xcode 12 app that requires printing. I have a basic understanding how to implement printing, I understand that I need to create a subclass of NSview to get going. However, I was wondering how to go about designing the report? Is this done with interface builder like designing a window layout or is all done with code, ie supplying position (x,y), headings, font, graphics, font size… etc. How is this done?

Also, does anybody have any other examples on this? I have one example from Coca Programming chapter 27, Big Nerd Ranch.

Because set constants are created from passing arrays as arguments.