Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Currently i'm Working on a Mailmerge Project in .NET
successfully done it!!
but while exporting the document im getting a Water mark of
Quote:
Document .Net 5.5.4.14 trial. Have questions? Email us: support@sautinsoft.com


i don't want to get this watermark how to remove it from the document after execution

Any Suggestions TIA

What I have tried:

public static void MailMergeSimpleEnvelope()
       {
           string templatePath = @"..\..\envelope-template.docx";
           string resultPath = "Simpson-family.docx";

           DocumentCore dc = DocumentCore.Load(templatePath);

           var dataSource = new[] { new { Name = "Homer", FamilyName = "Simpson" },
                               new { Name = "Marge ", FamilyName = "Simpson" },
                               new { Name = "Bart", FamilyName = "Simpson" },
                               new { Name = "Lisa", FamilyName = "Simpson" },
                               new { Name = "Maggie", FamilyName = "Simpson" }};

           dc.MailMerge.Execute(dataSource);
           dc.Save(resultPath);

           // Open the result for demonstration purposes.
           System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(resultPath) { UseShellExecute = true });
       }
Posted
Updated 7-Jul-22 20:15pm
v3

1 solution

Simple: pay for the full version.

You are using a .NET component from Sautinsoft that converts between file formats: the trial version inserts a watermark in all documents, and the only legitimate ways to remove that are either to pay for the full version, or stop using the component.
 
Share this answer
 
Comments
Manojkumar-dll 8-Jul-22 2:45am    
Thanks For your suggestion and explanation
OriginalGriff 8-Jul-22 3:57am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900