Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue May 21, 2019 4:57 pm

hello
i use the mail merge function :
DocWordFile.MailMerge.Execute(NomdeChamp, DonneeDoc)
with NomdeChamp and DonneeDoc as string().
the result of this function is OK (all fields are completed), but after this function when i open the result document ,
there is an word alerte on the original datasource word mailmerge (before a i use spire.doc)
the document result keep the datasource link the original word mail merge
how can i generate with MailMerge.Execute a file without this alert ? or delete this link ?

i find a solution on word 2016 macro:
Code: Select all
ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument
ActiveDocument.Save

i didnt find how to do that with spire.doc


thank's
FH

ps version spire.doc 7.5.9.4046

labaffagaston
 
Posts: 42
Joined: Sun Dec 24, 2017 7:38 pm

Wed May 22, 2019 6:34 am

Hello,

Thank you for contacting.
To help us investigate your issue accurately, please share us with the following more information. You could send them to us via email (support@e-iceblue.com). Thanks in advance.
1. How did you get the field values (DonneeDoc)? Please provide your full testing code for our reference.
2. Your input word file.
3. Your generated file.
4. A runnable application which shows your problem will be helpful.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Wed May 22, 2019 12:03 pm

hi
email send
best regards.
FH

labaffagaston
 
Posts: 42
Joined: Sun Dec 24, 2017 7:38 pm

Thu May 23, 2019 8:24 am

Hello,

Thank you for sharing the files via email.
After further investigations, when doing the Mailmerge, sorry that our Spire.Doc doesn't support deleting the link to data source at present. We will add it as a new feature into our upgrade list, if it is feasible in the future, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Lisa
E-icbelue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Wed Jun 12, 2019 6:23 am

Hello,

Glad to inform that we just released the Spire.Doc Pack(hot fix) Version:7.6.5 in which the new feature has been achieved. Welcome to download it and refer to the following code snippet to delete the link to data source.
Website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget link:https://www.nuget.org/packages/Spire.Doc/
Code: Select all
......
doc.MailMerge.MailMergeMainDocumentType = MailMergeMainDocumentType.NotAMergeDocument;
......

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Mon Jun 24, 2019 1:47 am

Hello,

Greetings from E-iceblue.
Did the hotfix version and the new feature work for you? Thanks in advance for your valuable feedback and time.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Wed Jul 03, 2019 11:09 am

hello
i have to resolve an other very specific problem before i test your hotfix (i write an other post).
please wait for the feedback.
Sincerely,
FH

labaffagaston
 
Posts: 42
Joined: Sun Dec 24, 2017 7:38 pm

Wed Jul 03, 2019 10:19 pm

after tests yours solution works.
thank's
FH

labaffagaston
 
Posts: 42
Joined: Sun Dec 24, 2017 7:38 pm

Thu Jul 04, 2019 1:30 am

Hello,

Thanks for your feedback.
Just feel free to contact us if you need other helps. Have a nice day.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc