Word for mac import style into existing document

broken image
broken image

docx works fine, but I had created a temp template and access that template file.

broken image

applicationObject.OrganizerCopy(copyTempName.ToString(), docActive.FullName, styleName, MSword. String styleName = _Item( ref varStyle).NameLocal.ToString() Object tempPath = ( object )templatePath ĭocTemplate = ( ref tempPath, ref missing, ref missing, ref missing) įoreach (MSword. Copy(templatePath, copyTempName.ToString()) GetExecutingAssembly().Location) + '\\' + 'template2007.dotx' ĬopyTempName = Path. String templateName = (docActive.get_AttachedTemplate() as MSword. Public void Update_Styles( IRibbonControl control)