Saved document with mail merge data source throws error on load


Author
Message
Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
Product Type [OpenVision]
Edition Type [Enterprise]

1. Create a new document
2  Add mail merge datasource (see code below)
3 insert a couple of fields
4. Save the document (docx format)
5. Close the program
6 Open the document i receive this error 


I use the following code to set a documents mailmerge datasource

   nRichTextViewWithCommandBarsControl1.Widget.View.Content.MailMerge.DataSource = new NDBMailMergeDataSource(Nevron.Nov.Data.ENDbConnectionType.SqlServer, "Data Source=localhost;Initial Catalog=mydb;Integrated Security=True", "exec moduleDocumentMergeDataGet 1,3"); ;

This error occurs when also if i use the nevron "Select data source" dialog to select a datasource
Your help is greatly appreciated.
Mike Willis


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Hello,

Thank you for the detailed description of the issue you have experienced. Unfortunately, we couldn't reproduce it. Can you please send us or attach to a forum post the DOCX file you are getting the error with? Another option is to send us a sample project that demonstrates the issue. We will then be able to analyze and debug your code, find out what's wrong and fix it.

Thank you!


Best Regards,
Nevron Support Team


Mike Willis
Mike Willis
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 18, Visits: 109
Thanks for the reply.
The attached zip contains my visual studio 2017 test project and the document .


Attachments
NevronDocumentError.zip (456 views, 53.00 KB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Thank you for the attached sample project and document. We found that there's an issue with the mail merge when using an SQL database as data source.

We fixed the exception handling in this case and the DOCX file now loads without crashing, but the mail merge still does not work. We will analyze the issue further and try to fix the mail merge in with SQL databases in DOCX documents for the future versions of Nevron Open Vision.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
1 active, 1 guest, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search