I got the answer sir. Its the version problem. Your post has openxml sdk 2.0 link and i was trying it with that version thats why its creating problem. but with version 2.5 it works fine. Sir, is it necessary to install same OPENXML 2.5 SDK on my server too?