Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2021
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 2 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
How to embed a word document(.Docx) in excel using x++ code in AX7. I have an excel file and it contains two sheets. In the first sheet, I need to embed the word document using x++ code. Please tell me the ways to achieve this ... We are using the following to edit the word document.
public static void main(Args _args)
str comments = null;
str document = System.IO.Path::GetTempPath()+"New Microsoft Word Document.docx";
using (WordprocessingDocument wordDoc = WordprocessingDocument::Open(document, true))
str docText = null;
using (StreamReader sr = new StreamReader(wordDoc.MainDocumentPart.GetStream()))
docText = sr.ReadToEnd();
Regex regexText = new Regex("%1");
docText = regexText.Replace(docText, "150");
Regex regexText1 = new Regex("%2");
docText = regexText1.Replace(docText, "Company Name");
using (StreamWriter sw = new StreamWriter(wordDoc.MainDocumentPart.GetStream(FileMode::Create)))
I need this word document into the first sheet of my excel.
Thanks in Advance.
As I already asked you when you asked this question under one of my blog posts, it would help you told us why did you choose this architecture and what implementation have you already tried.
My recommendation is simply not trying to do it at all. I think you should have a very strong business reason for going this way.
Business Applications communities