- Is there a way to remove mark up from a Save? I am getting all the red, underlined markup from the template when doing a MailMerge and saving as PDF.
- Also, I am getting an extra blank page. Is there a way to remove this also?
Thansk for your inquiry.
- Is there a way to remove mark up from a Save?*
Please use Document.AcceptAllRevisions method to accept all tracked changes in the document. Following code example shows how to accept all tracking changes in the document.
Document doc = new Document(MyDir + "Document.doc"); doc.AcceptAllRevisions();
- Also, I am getting an extra blank page. Is there a way to remove this also?*
Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.
So, Document.AcceptAllRevisions removes all markup?
I think the markup is pushing the conversion from DOC to PDF to a new page.
I need to make sure that the markup is removed.
- Does Document.AcceptAllRevisions remove all markup?
Within the attached document, you will notice that there are two <> mail merge fields. One of which is in the markup. When I merge them, there is an extra <> tag shown as text… Again, I need make sure that mark-up is removed.
- What is causing the extra page?
Thanks for your inquiry.
- Does Document.AcceptAllRevisions remove all markup?*
Yes, Document.AcceptAllRevisions method accepts all tracked changes in the document.
I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11175. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.
- What is causing the extra page?*
In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v14.11.0) from here and let us know how it goes on your side. If the problem still remains, please share following detail for investigation purposes.
Please create a standalone/runnable simple application (for example a Console Application Project) that demonstrates the code (Aspose.Words code) you used to generate your output document
Please attach the output Pdf file that shows the undesired behavior.
As soon as you get these pieces of information to us we’ll start our investigation into your issue.
The attached PDF shows the “extra” mark-up mail-merge field
<<Description>> that was not removed, yet the field just above it, shown “replaced” in bold, was the original or correct
<<Description>> and correctly merged.
1st large paragraph starting with “We”, notice the bold ABC Finance Company…, that is the correct and original
<<Description>> merge field.
Let me know when this will be fixed. I hate to have to tell users that give us mail merge templates that if there is mark up that contained/contains a merge field, it wont work…
Thanks for your inquiry. We will update you via this forum thread once this issue is resolved. As a workaround of this issue, please replace «Description» with empty text as shown in following code example. Hope this helps you.
Document doc = new Document(MyDir + "20141204152521_1965_Template.docx"); doc.AcceptAllRevisions(); // Mail merge code... // .... doc.Range.Replace("«Description»", "", false, false);
The issues you have found earlier (filed as WORDSNET-11175) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.