急!delphi 操作有密码word问题,新建和导入自动加密!在线 对word安全性进行操作,大虾们,给个例子!!!!!!!!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 又看见月亮了……说句题外话,word自带的加密已经不再管用了,现在有软件可以秒破这个密码,只要联网就行好像没见过什么API可以直接操纵word的,我也想不出办法就按照月亮叔叔(这两个字叫得真恶心……)的办法试试吧 procedure OpenWordFile(State,Path: String; WordApplication1: TwordApplication;worddocument:Tworddocument);var itemindex :olevariant; filename, confirmconversions, readonly, addtorecentfiles, passworddocument, passwordtemplate, revert, writepassworddocument, writepasswordtemplate, format, Encoding, Visible: olevariant; begin WordApplication1.Connect wordApplication1.Visible:=True; filename :=path ; confirmconversions := false; if state='false' then readonly:=false else readonly :=false; addtorecentfiles := false; passworddocument := '1'; passwordtemplate := '1'; revert := true; writepassworddocument := '1'; writepasswordtemplate := '1'; format := wdopenformatdocument; Encoding:=''; Visible:= 1; wordapplication1.documents.open( filename, confirmconversions,readonly, addtorecentfiles,passworddocument, passwordtemplate,revert, writepassworddocument,writepasswordtemplate,format ,Encoding, Visible); itemindex := 1; if state='True' then begin WordApplication1.CommandBars.ActiveMenuBar.Set_Enabled(true); end else begin WordApplication1.CommandBars.ActiveMenuBar.Set_Enabled(true); end; WordApplication1.Disconnect;end; 关于clientdataset对TTable的升降序切换问题 请问 TImage Transparent 的实现原理 一个令我费解的问题,关于书签的 没有工作 心情极度郁闷 散分 如何声明 很菜很菜的问题??但有很急很急!!!! 100分求一满意答案,不够再给!熟悉Indy控件的请进 线程写文件 请求reportbuilder的资料 TQuery中如何编辑记录 推荐关于DELPHI的两篇文章: 有兴趣的朋友来看一下. 求获取数列缺值的算法
说句题外话,word自带的加密已经不再管用了,现在有软件可以秒破这个密码,只要联网就行
好像没见过什么API可以直接操纵word的,我也想不出办法
就按照月亮叔叔(这两个字叫得真恶心……)的办法试试吧
Tworddocument);
var
itemindex :olevariant;
filename, confirmconversions, readonly, addtorecentfiles,
passworddocument, passwordtemplate, revert,
writepassworddocument, writepasswordtemplate, format, Encoding, Visible: olevariant;
begin
WordApplication1.Connect
wordApplication1.Visible:=True;
filename :=path ;
confirmconversions := false;
if state='false' then readonly:=false
else
readonly :=false;
addtorecentfiles := false;
passworddocument := '1';
passwordtemplate := '1';
revert := true;
writepassworddocument := '1';
writepasswordtemplate := '1';
format := wdopenformatdocument;
Encoding:='';
Visible:= 1;
wordapplication1.documents.open( filename, confirmconversions,readonly, addtorecentfiles,
passworddocument, passwordtemplate,revert, writepassworddocument,writepasswordtemplate,
format ,Encoding, Visible);
itemindex := 1;
if state='True' then
begin
WordApplication1.CommandBars.ActiveMenuBar.Set_Enabled(true);
end
else
begin
WordApplication1.CommandBars.ActiveMenuBar.Set_Enabled(true);
end;
WordApplication1.Disconnect;
end;