Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Sep 10, 2011 06:22 PM|LINK
The best way to manipulate Word document is to create a class and call that from your ASP.NET application. The code to generate tables, images, font styles, etc can be recorded. The resultng macro code can be pasted in your class. BTW, Word will produce
You need to have the .NET Programmability Support installed. Then click Customize Quick Access Toolbar and select "More Commands...", then select "Record Macro / Stop Recorder". Click "Record Macro" and enter macro name. Make the necessary update in Microsoft
Word such as type some text, add a picture / image, apply the necessary settings into the picture / image, create a table, add text header and row/column values, etc. The point is, whatever you do in Microsoft Word can be recorded and the resulting code can
used in your .NET class with some minor tweaks. You need to reference Microsoft Word interop or library in your class and the Word object derived from Word.Application must be appended to each Microsoft Word function / method call.
Lastly, please take note that I am using Microsoft Office 2010.