惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
F
Fortinet All Blogs
U
Unit 42
F
Full Disclosure
雷峰网
雷峰网
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
罗磊的独立博客
D
DataBreaches.Net
C
Check Point Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
O
OpenAI News
C
CXSECURITY Database RSS Feed - CXSecurity.com
aimingoo的专栏
aimingoo的专栏
S
Security @ Cisco Blogs
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Hacker News
The Hacker News
Webroot Blog
Webroot Blog
Security Latest
Security Latest
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
N
News | PayPal Newsroom
P
Proofpoint News Feed
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
C
Cybersecurity and Infrastructure Security Agency CISA
N
News and Events Feed by Topic
Google Online Security Blog
Google Online Security Blog
H
Help Net Security
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
I
Intezer
Application and Cybersecurity Blog
Application and Cybersecurity Blog
M
MIT News - Artificial intelligence
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
MyScale Blog
MyScale Blog
腾讯CDC

博客园 - 田了你

[ZF]开心一下 [转]Java jdbc数据库连接池总结! 一台机器部署N个server步骤 [转]软件开发者面试百问 09年的第一篇日志比已往的时候来得更早一些 - 田了你 - 博客园 [转]关于锚点 - 田了你 - 博客园 从今天开始每天写一篇日志咯 Telerik RadGrid 翻页问题解决 - 田了你 果然是本命年 javascript注册事件的四种方式 - 田了你 - 博客园 Tomcat5.x的项目部署 又被老板欺骗了 .net的优点变缺点(郁闷了一天) 2007.2.1 -----2007.4.1安排计划 [转]JS代码格式化工具(附源代码) 层的拖动 获得控件在页面上的绝对位置的方法 解决SQL2000乱码问题 ref与out
关于NTKO_office的操作(从数据库中提取数据,写入到NTKO_office_Word中)
田了你 · 2007-01-25 · via 博客园 - 田了你

1.首先用后台语言从数据库里读取数据
2.把从数据库里读取到的数据用javascript操作付到页面中去。
eg:

function replaceDate()
            
{                
                
if(isNewSign=="none")
                
{                                
                    
if(TANGER_OCX_OBJ!="")
                    
{
                        
var myDocApp=TANGER_OCX_OBJ;                    
                        
//****************Word替换文字型窗体区域书签内容*******************
                        //只能替换一次                    
                        myDocApp.ActiveDocument.FormFields("recfilecode").Range = recfilecode;             
                        myDocApp.ActiveDocument.FormFields(
"recfileno").Range = recfileno;
                        myDocApp.ActiveDocument.FormFields(
"recfilemj").Range = recfilemj;
                        myDocApp.ActiveDocument.FormFields(
"recfileyear").Range = recfileyear;
                        myDocApp.ActiveDocument.FormFields(
"recfilemonth").Range = recfilemonth;
                        myDocApp.ActiveDocument.FormFields(
"recfileday").Range = recfileday;
                        myDocApp.ActiveDocument.FormFields(
"recfiletitle").Range = recfiletitle;
                        myDocApp.ActiveDocument.FormFields(
"recfileunite").Range = recfileunite;
                        
                    
                }

            }

说明:1)FormFields是word中的属性,
2)ActiveDocument(NTKO中的属性):返回文档对象的自动化接口
3)("recfilecode")为word摸板中的字段名