- Home
- Forum
- ASP.NET Core - EJ 2
- System.NotImplementedException: 'Creating a content control for the BuildingBlockGallerytype is not implemented'
System.NotImplementedException: 'Creating a content control for the BuildingBlockGallerytype is not implemented'
When I try to convert a sfdt to a WordDocument object i get this error:
Here's the code:
public static void sfdtToDocx(string sfdtPath, string fileName)
{
// sfdt is the txt file with the sfdt
StreamReader reader = File.OpenText(sfdtPath);
string sfdt = reader.ReadToEnd();
reader.Close();
sfdt = JsonConvert.SerializeObject(data);
// this is the line that throws me the error
Stream wordDocument = WordDocument.Save(sfdt, FormatType.Docx);
DocIO.DLS.WordDocument document = new DocIO.DLS.WordDocument(wordDocument, DocIO.FormatType.Docx);
FileStream fileStream = new FileStream(new FileInfo(sfdtPath).Directory.FullName+Path.DirectorySeparatorChar+fileName+".docx", FileMode.Create);
document.Save(fileStream, DocIO.FormatType.Docx);
fileStream.Position = 0;
fileStream.Close();
document.Close();
}
I'm using
Syncfusion.EJ2.WordEditor.AspNet.Core Version="19.3.0.46"
I also attach the sfdt
Attachment: sfdt_54d40b56.rar
I update to the latest version (19.3.0.46) and get the same error:
(to create the sfdt I also used the latest version)
We deeply regret for the inconvenience caused.
Hi Andres,
We are glad to announce that our Nuget release v19.4.0.43 is rolled out and in this release, we have added fix for reported issue.
Please upgrade your packages to latest version.
Core:
https://www.nuget.org/packages/Syncfusion.EJ2.WordEditor.AspNet.Core/19.4.0.43
MVC:
https://www.nuget.org/packages/Syncfusion.EJ2.WordEditor.AspNet.Mvc4/19.4.0.43
https://www.nuget.org/packages/Syncfusion.EJ2.WordEditor.AspNet.Mvc5/19.4.0.43
Feedback link: https://www.syncfusion.com/feedback/30278/facing-exception-when-exporting-without-loading-document-in-document-editor
Regards,
Suriya M.
- 11 Replies
- 3 Participants
-
AM Andres Montoya
- Oct 22, 2021 01:29 PM UTC
- Jan 20, 2022 06:42 AM UTC