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

推荐订阅源

B
Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Google DeepMind News
Google DeepMind News
S
Schneier on Security
S
Secure Thoughts
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
Security Latest
Security Latest
Jina AI
Jina AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recorded Future
Recorded Future
T
Tor Project blog
有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News | PayPal Newsroom
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
Forbes - Security
Forbes - Security
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
NISL@THU
NISL@THU
C
Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Google DeepMind News
Google DeepMind News
Project Zero
Project Zero
IT之家
IT之家
T
Threatpost
Cyberwarzone
Cyberwarzone
O
OpenAI News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
J
Java Code Geeks
P
Proofpoint News Feed
The Last Watchdog
The Last Watchdog
月光博客
月光博客
Latest news
Latest news
MongoDB | Blog
MongoDB | Blog
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 田了你

[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摸板中的字段名