Free Support Forum - aspose.com

Multiple Document Item inputs saved to one output document

Hi guys,

Currently, if our Doc Prod service has a XML packet sent through to it containing 5 document items, 5 output documents will be produced.

I have run a test to see whether these 5 seperate document outputs could be saved to one single output document.

Aspose seems to overwrite the first 4 document items and only saves the last to the output document.

Is there a better way of doing this? is it possible for Aspose to do this?

Thanks in advance.
Rich.

Hi Rich,

Thank you for the request.

Yes, Aspose.Word overwrites existing document, therefore you need to copy all the documents into one section by section (by creating a blank document as the destination or appending to the first document). Copying sections has been discussed in the forums a number of times, for example here:

http://www.aspose.com/forums/ShowPost.aspx?PostID=12492
http://www.aspose.com/forums/ShowPost.aspx?PostID=5913
http://www.aspose.com/forums/ShowPost.aspx?PostID=16541
http://www.aspose.com/forums/ShowPost.aspx?PostID=6328

Also, here is an article describing this:

http://www.aspose.com/wiki/default.aspx/Aspose.Word/HowToCombineDocuments.html

Hi Dmitry,

Thanks for your help on this.

Does the Section class support floating text boxes in templates.

It works fine without.
But when I use templates with mergefields inside floating textboxes, the data displayed is incorrectly repeated from the last document item.

I have attached the XML input and document output to help explain this.
Please refer to the address block at the top of the letters in the output.

Thanks,
Rich.



C:\Temp\DocProd\Template\Call Notice - EQT IV.doc



2001-01-01
1111.0000
GBP
1
11
Test Call 1
Test Call 1 Narrative


1000000.0000
1000.0000
GBP
1a
Mr One
111111
11.00


Call Communication
1
By Post
1
Dear Mr One
Original
Mr One
1 One St.\n1st Floor\nSuite #1
One City
One State
11
United Kingdom


Call Communication
1
By Post
1
Dear Mr OneOne
Copy
Mr OneOne
11 OneOne St.\n11th Floor\nSuite #11
OneOne City
OneOne State
1111
United Kingdom



11
Call for Investment
Call for Investment for Mr One
GBP
111.1100
1.0000
Call for Investment for Mr One
11.1111





2002-02-02
2222.0000
GBP
2
22
Test Call 2
Test Call 2 Narrative


2000000.0000
2000.0000
GBP
2b
Mr Two
222222
22.00


Call Communication
2
By Post
2
Dear Mr Two
Original
Mr Two
2 Two St.\n2nd Floor\nSuite #2
Two City
Two State
22
United Kingdom


Call Communication
2
By Post
2
Dear Mr TwoTwo
Copy
Mr TwoTwo
22 TwoTwo St.\n22nd Floor\nSuite #22
TwoTwo City
TwoTwo State
2222
United Kingdom



22
Call for Investment
Call for Investment for Mr Two
GBP
222.2200
2.0000
CallItem Narrative for Mr Two
22.2222




C:\Temp\DocProd\Output
Word
Single

For the time being Aspose.Word could have problems with floating objects including text boxes, so please try to avoid their use. These objects will be handled properly as soon as we finish our work on the Office drawing layer.

Thank you for patience.

Hi Dmitry,

Are you able to give me a timescale of when this functionality will be able to be implemented?

Most of our templates contain floating text boxes, and we can’t do away with them.

So we will need this functionality to be supported before we can go live with the new version of our Document Production Service.

Thanks for you help.
Rich.

Unfortunately, we do not provide any comments regarding the timescales because the feature implementation priorities could shift from time to time.

We apologize for this inconvenience.