Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi team
value out of range error while setting bottom margin in Msword
C#
WordDoc.ActiveDocument.PageSetup.BottomMargin = 144
Posted
Updated 13-Aug-15 20:08pm
v2
Comments
Takalond 14-Aug-15 3:18am    
I'm not 100% sure but I believe your problem occurs because your active document has multiple sections, so what you need to do is either iterate through all the sections in the document or just select a specific section and change its margin(s).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900