Hi,
That's not true and specifically states so on the CIC website:
Apply for a new temporary resident visa from within Canada
If you are a temporary resident in Canada with valid status (that is, you have a valid study permit or work permit), you can apply for a new temporary resident visa...