bool WordOperation::writeToWordTemplate
(AbnormalSituationInfo &abnormlSituationInfo)
_arrDocData.clear ();
File::remove(filePath);
abeormalSituationInfo)
//YTQ的Word 文件路径
QString strFolderPath= QCoreApplication::applicationDirPath( +“/filestorge/YTQ/";
QDir dir(strFolderPath);
//拷贝文件模板 QFile::copy(strFolderPath +“YTQ. docx",filePath);
; gstring objName =//通过发送对象获取发送对象名称
if (dir,existaO) gotSendToObjectNane CabnormlSituationInfo.i5end20bj);
//修改模板内容
gpirO.mkdir(strFolderPath)😉
I //发文单位 LJDocModify docData:
iedO; Qstring uid = astring:tfromStdString CabnormalSituationInfo. strid.simplif docData, iRow = 1: docData.iCol - 2;
Qstring fileld - uid.mid(1); docData, strContent - QStringToAseii(objName);
gstring fileUldfileld = filel4. left (rileId.length0) -1); //签发 LJDocModify docData2;