We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Regarding manipulation of word document

Dear Sir, i want to clarify can i use aspose word for manipulating existing word document such as adding some text at particular place also adding tables,headr/footer and images as logo if yes suggest solution

Hi,


Thanks for your interest in Aspose.Words. Yes, you can achieve this. Please refer to the following articles:

http://www.aspose.com/docs/display/wordsnet/Inserting+Document+Elements
http://www.aspose.com/docs/display/wordsnet/Working+with+Tables
http://www.aspose.com/docs/display/wordsnet/How+to++Create+Headers+Footers+using+DocumentBuilder

Please let us know if we can be of any further assistance.

Best regards,

thanks Awais,

I need one more help as in existing word document i have 17 pages in that at some places i have merge field

I need to replace merge field with some text.

Also want to embed xcel file in word documnet .

If you have any sol please reply.

also when i m trying this i m getting error as

The type name 'Words' does not exist in the type 'Aspose'
The type name 'Words' does not exist in the type 'Aspose'

Hi,


Thanks for your inquiry. You can replace merge field with values by using the code mentioned in the following article:
http://www.aspose.com/docs/display/wordsnet/How+to++Execute+Simple+Mail+Merge

Secondly, please use the following code to insert embedded Excel 97-2003 document as iconic OLE object from stream using predefined image:

Document doc = new
Document();

DocumentBuilder builder = new DocumentBuilder(doc);

Stream memoryStream = File.OpenRead(MyDir + "Book1.xls");

Shape oleObject = builder.InsertOleObject(memoryStream, "Excel.Sheet.8", true, null);

doc.Save(MyDir + @“out.docx”);


Also, please do the steps mentioned in the following articles to resolve referencing issue:
http://www.aspose.com/docs/display/wordsnet/Install+Aspose.Words+for+.NET
http://www.aspose.com/docs/display/wordsnet/Reference+Aspose.Words+from+a+.NET+Project

Best regards,

Thaks,

Again i want some help that if i want to ammend another type of file then how i can implement it also here u have use memory stream what is that.

One more issue is that i m using evaluation version because of that pages r truncating what is the limit that i can use for evaluation version .

Is there any way to overcome this issue.

please help.

Hi,


Thanks for your inquiry. Please refer to the articles mentioned in the following link if you want to insert one document into another document.
http://www.aspose.com/docs/display/wordsnet/Joining+and+Appending+Documents

The evaluation version of Aspose.Words (without a license specified) provides full product functionality, but it inserts an evaluation watermark at the top of the document on open and save, and limits the maximum document size to several hundred paragraphs. Please refer to the following link if you want to test Aspose.Words without the evaluation version limitations,
http://www.aspose.com/docs/display/wordsnet/Evaluate+Aspose.Words

Best regards,

Thanks for reply

but i want help for ammending any doc in word document as logo on clicking on it document should get open and not inserting or appending document.Please help.

Hi,

can u please help me on this.

I want to embedd any type of file in wod documnet at particular place.On clicking on that file logo it should get open.

If it is possible please send the code so that i can plan for purchasing aspose word for our application.

Hi,


Thanks for your inquiry. Yes, you can insert word/pdf/excel files in word document at any place. First you need to move the cursor to the desired position in document where you want to insert OLE object at. Once the cursor is moved, please use the following code for example to insert linked Word document from file as a normal OLE object using custom presentation image. In this case, when you double click on the OLE object, it will open linked document in a new Microsoft Word instance:

Document doc = new
Document();

DocumentBuilder builder = new DocumentBuilder(doc);

Image image = Image.FromFile(MyDir + "logo.png");

Shape oleObject = builder.InsertOleObject(MyDir + "Doc1.docx", true, false, image);

doc.Save(MyDir + @“out.docx”);


I hope, this helps.

Best regards,