社区
其他
帖子详情
Cell中的Readonly?
fsyybo
2003-04-28 01:12:15
在Cell中把某些单元格设为只读时,单元格变为灰色,但打印时只读单元格
也是灰色的,能不能在打印时去掉只读单元格的灰色(变为白色)?
我用的是Delphi
...全文
103
2
打赏
收藏
Cell中的Readonly?
在Cell中把某些单元格设为只读时,单元格变为灰色,但打印时只读单元格 也是灰色的,能不能在打印时去掉只读单元格的灰色(变为白色)? 我用的是Delphi
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Cell
2003-04-28
打赏
举报
回复
您好:
单元格只读的颜色是可以设置的,CELL 的属性中有一个RdOnlyCellColor 属性是负责这个的。
fsyybo
2003-04-28
打赏
举报
回复
等待高手ing...
楼上的如有好的办法,请指点...,先谢了
jQuery-手机版四级联动地区代码.zip
代码片段:
所在地区:
<input type="text" class="
cell
-input"
readonly
id="J_Address" value="" placeholder="请选择收货地址">
解决DataGridView常见问题.doc
DataGridView常用方法,如: 1. 如何使指定的单元格不可编辑?
ReadOnly
属性决定了单元格
中
的数据是否可以编辑,可以设置单元格的
ReadOnly
属性,也可以设置DataGridViewRow.
ReadOnly
或DataGridViewColumn.
ReadOnly
使得一行或一列所包含的单元格都是只读的。 默认情况下,如果一行或一列是只读的,那么其包含的单元格也会使只读的。
C#向word文档动态插入数据并打印预览
首先机子上安装有office,在COM
中
添加引用Microsoft.Word.11.0.Object.Library(或11.0以上) Microsoft.Office.Interop.Word.Application myWordApp = null; Microsoft.Office.Interop.Word.Document doc = null; object Filename = path + "\\" + TaskID + ".docx";//目的文件 object templateFile = System.Windows.Forms.Application.StartupPath + @"\Template.docx";//模板文件,有一个五列一行的表 System.IO.File.Copy(templateFile.ToString(), Filename.ToString(), true);//模板WORD
中
有一个五列的表头,分别是卡号,串口号,发送指令条数,接收指令条数,收发成功率 myWordApp = new Microsoft.Office.Interop.Word.Application(); doc = myWordApp.Documents.Open(ref Filename, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing); /////显示页码 object oAlignment = Microsoft.Office.Interop.Word.WdPageNumberAlignment.wdAlignPageNumberCenter; object oFirstPage = true; oAlignment = Microsoft.Office.Interop.Word.WdPageNumberAlignment.wdAlignPageNumberCenter; myWordApp.Selection.Sections[1].Footers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterPrimary].PageNumbers.Add(ref oAlignment, ref oFirstPage); myWordApp.Selection.Sections[1].Footers[Microsoft.Office.Interop.Word.WdHeaderFooterIndex.wdHeaderFooterPrimary].PageNumbers.NumberStyle = Microsoft.Office.Interop.Word.WdPageNumberStyle.wdPageNumberStyleNumberInDash; for (int i = 2; i < 102; i++)//举例100台 { doc.Tables[1].Rows.Add(ref Nothing);//表格增加一行 doc.Tables[1].
Cell
(i, 1).Range.Text = "250297";//卡号 doc.Tables[1].
Cell
(i, 2).Range.Text = "COM12";//串口号 doc.Tables[1].
Cell
(i, 3).Range.Text = "100";//发送指令条数 doc.Tables[1].
Cell
(i, 4).Range.Text = "99";//接收指令条数 doc.Tables[1].
Cell
(i, 5).Range.Text = "99%";//收发成功率 } doc.SaveAs(ref Filename, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing); object savechanges = Microsoft.Office.Interop.Word.WdSaveOptions.wdDoNotSaveChanges;//不保存挂起的更改 ////下面是直接打印,文档不显示 //doc.PrintOut(ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing); object
readOnly
=false; object isVisable = true;////文档打开状态为可视 doc = myWordApp.Documents.Open(ref Filename, ref Nothing, ref
readOnly
, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref isVisable, ref Nothing, ref Nothing, ref Nothing, ref Nothing); doc.PrintPreview();//打印预览
2021SC@SDUSC SQLite源码分析(四)————sqlite
中
的
cell
概念
2021SC@SDUSC B树
中
的
cell
概念一、
cell
是什么?二、
cell
与溢出页结构1.溢出页的意义2.溢出页的定义三、
cell
与空间管理1.自由页的管理2.页内空间管理 一、
cell
是什么? sqlite数据库文件被分为固定大小的页,所有的页由B+树模块管理。每个页要么是树
中
的页(内部页或者叶子页),要么是溢出页,或者是自由页(自由页通过单链表组织起来)。 树
中
的页(内部页和叶子页)被分成许多
cell
,一个
cell
包括一个(或者一部分)负载。
Cell
是已分配或者已释放的磁盘空间集合。页的内容见往
java
cell
_
Cell
设置
Cell
的 SubmitName。SubmitName 用来标记当前
Cell
对象在控件保存时需要被提交到 SaveDataPage 服务器页面。只有当您需要提交当前
Cell
中
的数据时,才需要定义 SubmitName。如果您定义了SubmitName,当保存文档时,此 SubmitName 将被作为 com.zhuozhengsoft.pageoffice.excelreader....
其他
256
社区成员
6,541
社区内容
发帖
与我相关
我的任务
其他
其他产品/厂家
复制链接
扫一扫
分享
社区描述
其他产品/厂家
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章