Click here to Skip to main content
16,017,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I'm developing an asp.net application in visual studio 2010. i am exporting html table to word using response.AddHeader("------"). i'm getting word document. Here i want to set word document margins, page height and width by using c# code. please help how to do it.

Regards,
Kishore Kumar Y
Posted

You can use word interop.

Link MSDN :http://msdn.microsoft.com/fr-fr/library/Microsoft.Office.Interop.Word%28v=office.11%29.aspx[^]

You can easely find tutorials about it
 
Share this answer
 
Comments
kishore309 25-Sep-13 11:00am    
can u give small example about exporting html to word.

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