225/45/17 requires 7.0" of rim width
235/45/17 requires 7.5" of rim width
225/40/17 requires 7.5" of rim width
235/40/17 requires 8.0" of rim width
It is well well out of spec to put 235/40/17 tires on 17x7" rims. Stick to 225/45/17 if you want width on those rims.