Merge formated information - HTML or RTF to a template

We have formated text blocks / fields with - bold / color / bullets / links - created from the HTML on line editor and saved in a database - and we want to mailmerge this information with MS-Word or RTF templates. The result should be a PDF document and the formated text informaiton should be kept in the result file.

Is this possible with saaspose? How can this be done ?


Submitted from: http://saaspose.com/api

Hi,

Saaspose.Words required two elements to execute mail merge/template i.e. a Word document with merge fields/simple fields (please check http://saaspose.com/docs/display/words/SaaSpose.Words+Templates+1.0+Features for how to insert simple fields) and mail merge data in XML format. You can set/change text formatting in the source document (Word template) and this formatting will be available in the output PDF.

Do you want to create Word template from HTML, then execute mail merge and finally export resulting document to PDF or you already have a Word template/document but want to import text formatting and data from HTML, then execute mail merge and finally export the output document to PDF?

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi,

Just wanted to check with you, whether the last suggestion from our support team worked for you? Could you please also answer the question asked by support team, so we could further guide you? We're looking forward to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.

Hi,

i know that you can make a mailmerge and that the template itself can have the formatting information - but my question was if it is possible to have a formatted data input e.g. i want to merge a text block to a template and the text block has formatting options itself like bold or colours (e.g. an HTML text block) and not only plain text and the formatting is not only done from the template.

Hi,

Sorry this feature is not supported at the moment but a new issue to support this feature has been logged into our issue tracking system as SAASWORDS-47. We will keep you updated on this issue in this thread.

Can you please share the importance of this issue for your project or if you can continue testing/using Saaspose without this feature and applying the formatting in the template? Currently, there are a lot of features in the pipeline and we want to implement show-stopper issues earlier than the others. Your feedback will help us prioritizing this issue accordingly.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

ok, than you for the reply - but we need this feature - and so we search for an other solution.

Hi,

Based on your requirement, we have reaised the priority of this issue and our developers will try to implement this feature as soon as possible. We will share the ETA with you as soon as our development team analyzes this issue.

Sorry for the inconvenience.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

thank you - please inform me as soon as this feature is available.

Hi,

Thanks a lot for your patience. Our developers are working on this issue and we are hopeful to implement this feature till the end of this month.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi,

Sorry for getting back to you late. This issue has been fixed; please try it and let us know if it works for you. In this fix, following restrictions will apply:

1. HTML fragment in XML must be encoded. e.g.

2 < 3
in XML must be encoded to
2 < 3

2. Setting styles through "style" attribute of element will not work for now e.g. if you use the fragment



Text


you will get document without any styles

3) The only way to set styles is using inline CSS e.g. if you use the following fragment
.cr

Text

you will get document with styles as in browser.

Best Regards,
Imran Rafique
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Hi May,

Did the last suggestion from our team help you? Is your issue resolved now? If you still need any further help or have more questions, please feel free to let us know. We'll be glad to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.

Hello,

Thank you for implementing this feature - but we had to start the project and so we decided to use an other PHP based tool to generate the DOC / DOCX documents and then we convert the DOC using Aspose.NET with MONO to PDF. The solution is already implemented and working so we do not want to change the code. Maygbe for the next project we can use your service.

best regards
Wolfgang May

Hi May,

We're sorry that you were unable to use Saaspose in your project. However, it's good to know that you have found a solution for your problem. I would really appreciate if you keep in touch for any of your future projects or endeavors. We'll be glad to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.