当前位置: 代码迷 >> 综合 >> error C2660: 'SaveAs' : function does not take 11 parameters
  详细解决方案

error C2660: 'SaveAs' : function does not take 11 parameters

热度:42   发布时间:2024-01-11 00:00:22.0

当VC操作Word2003时,SaveAs函数需要16个参数,参数不够时用vOptional补齐:
SaveAs(
  vFileName,    //VARIANT* FileName
  vOptional,    //VARIANT* FileFormat
  vOptional,    //VARIANT* LockComments
  vOptional,    //VARIANT* Password
  vOptional,    //VARIANT* AddToRecentFiles
  vOptional,    //VARIANT* WritePassword
  vOptional,    //VARIANT* ReadOnlyRecommended
  vOptional,    //VARIANT* EmbedTrueTypeFonts
  vOptional,    //VARIANT* SaveNativePictureFormat
  vOptional,    //VARIANT* SaveFormsData
  vOptional,    //VARIANT* SaveAsAOCELetter
  vOptional,
  vOptional,
  vOptional,
  vOptional,
  vOptional
  );

 

更多技术文章请参看施昌权的个人网站: http://www.joyvc.cn

 

 

  相关解决方案