Free Support Forum - aspose.com

Can we insert a Document in the CELL?

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

As per our client requirement, we need to build a template which has some static values and some dynamic values.

Dynamic value/cell should be able to have a document inside it ? Is that possible ?

Example

Static1

<>

Static2

DynaColumns can have 1…N columns, can have also have header, it like table in the dyna cell, as we will be getting data dynamically to decide the column count and header names.

or more complex example is

{dyanmic value1}

XXXXX

<>

YYYYY:

<>

<>

{dyanmic value}

<>

<>

{dyanmic value3}

<>

<>

GGGGGG

<>

<>

{dyanmic value5}

{dyanmic value}

{dyanmic value}

In the above example, the blue ones are dynamic values, and yellow columns could be anywhere between 1..N. And Black are static values.

We are also planning to buy the Apose.word license, will it give any easy feature to build the above J complex reports.

Looks complex to me L

Regards

Sanket

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Yes, you can achieve this using Aspose.Words. In your case, if I understand you correctly, you have two templates. Is this right? If so, you can fill one template with data and then insert filled document into the second template. Please see the following link to learn how to insert one document into another:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-insert-a-document-into-another-document.html

Please let me know if you need more assistance, I will be glad to help you.

Best regards.