I'm trying to write a code to help me printing a spesific ranges of pages, depending on checkboxes the screen-shot below explain every thing
or instead of this, If I clicked on the first checkbox for example, this should hide the other pages, and show only the specific range, and when I click on the print button, this will print only the appear pages and ignore the hidden.
You have to place curly brackets around each section of code associated with an if-statement. If you don't, only the first line following it will be conditional, and the rest will always execute. If you post your code as text (which you should always use, instead of an image), I can show you exactly how to do it.