文件名称:ControlWord
- 所属分类:
- ActiveX/DCOM
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 78kb
- 下载次数:
- 0次
- 提 供 者:
- 相**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC通过模板来控制Word表格
//这里没有用word里提供的table对象,而是用了selection对象,用它控制比table简单
//而且用模板可以很容易地设置表格中的格式,若通过table对象则设置字体、对齐方式是很难控制
//这里主要是通过移动word中的输入点位置来定位要写的位置。然后再写入内容到单元格.
//selection对象主要调用MoveDown来进行定位,MoveDowm是让word响应键盘上的上下箭头事件。
//其中参数4表示移动一个单元字,而5表示移动一个单元行,其MoveUp,MoveLeft,MoveRight也一样
//具体可见MSDN中的ITextSelection::MoveDown Method
-VC through the template to control Word forms// There is no word used in providing the right table like, but use the object selection, used it to control than simple table// and use templates can be easily set up tables in the format If the object through the table is set fonts, Alignment will be very difficult to control// here mainly through word of mobile input location positioning write to the location. Then write the contents of the cells.// Selection main targets MoveDown to call for positioning MoveDowm is word on the keyboard in response to the next arrow incident.// Parameter four said a mobile unit, whereas in five said a mobile unit OK, MoveUp. MoveLeft. MoveRight is the same// visible in the MSDN ITextSelection : : MoveDown Method
//这里没有用word里提供的table对象,而是用了selection对象,用它控制比table简单
//而且用模板可以很容易地设置表格中的格式,若通过table对象则设置字体、对齐方式是很难控制
//这里主要是通过移动word中的输入点位置来定位要写的位置。然后再写入内容到单元格.
//selection对象主要调用MoveDown来进行定位,MoveDowm是让word响应键盘上的上下箭头事件。
//其中参数4表示移动一个单元字,而5表示移动一个单元行,其MoveUp,MoveLeft,MoveRight也一样
//具体可见MSDN中的ITextSelection::MoveDown Method
-VC through the template to control Word forms// There is no word used in providing the right table like, but use the object selection, used it to control than simple table// and use templates can be easily set up tables in the format If the object through the table is set fonts, Alignment will be very difficult to control// here mainly through word of mobile input location positioning write to the location. Then write the contents of the cells.// Selection main targets MoveDown to call for positioning MoveDowm is word on the keyboard in response to the next arrow incident.// Parameter four said a mobile unit, whereas in five said a mobile unit OK, MoveUp. MoveLeft. MoveRight is the same// visible in the MSDN ITextSelection : : MoveDown Method
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ControlWord.aps
ControlWord.clw
ControlWord.cpp
ControlWord.dsp
ControlWord.dsw
ControlWord.h
ControlWord.ncb
ControlWord.opt
ControlWord.plg
ControlWord.rc
ControlWordDlg.cpp
ControlWordDlg.h
msword9.cpp
msword9.h
ReadMe.txt
Release
.......\ControlWord.exe
.......\表格模板.doc
res
...\ControlWord.rc2
Resource.h
StdAfx.cpp
StdAfx.h
表格模板.doc
ControlWord.clw
ControlWord.cpp
ControlWord.dsp
ControlWord.dsw
ControlWord.h
ControlWord.ncb
ControlWord.opt
ControlWord.plg
ControlWord.rc
ControlWordDlg.cpp
ControlWordDlg.h
msword9.cpp
msword9.h
ReadMe.txt
Release
.......\ControlWord.exe
.......\表格模板.doc
res
...\ControlWord.rc2
Resource.h
StdAfx.cpp
StdAfx.h
表格模板.doc