How to print a window, as in Autocad, and adjust it to the sheet lengh

I want to know how to print a window, as in Autocad, and adjust it to the sheet lengh.