TBH, I don't understand why you want to do this. As felgall has said, users can do this themselves without any extra effort on your part simply by using their browser controls.
So to answer your questions
i'm really wonder how the File-Print Preview work??
That depends on the browser, I imagine they all do it differently.