我想通过一个给定路径打开对应的WORD文档,并且根据用户不同打开分为三种情况:1.完全控制;2.只读,但是可以select all、copy、save as...等;3.只能读,其他均不能操作;
(注:这些文档是保密性技术文档)关于该类问题,哪位大哥能给点资料让小弟我学习学习!谢谢![email protected]
(注:这些文档是保密性技术文档)关于该类问题,哪位大哥能给点资料让小弟我学习学习!谢谢![email protected]
解决方案 »
- dbgird的总是
- Windows.FindWindow()是什么?我没有接触过(急!!!!)
- 我有一个主窗体,六个子窗体,用六个button使指定的子窗体显示在最前,但是我每点击一个按钮,所有的子窗体都变成不是最大化了,为什么?
- 关于pascal的问题???
- 哪有好的压缩及解压缩的控件?
- 求购大中型酒店管理系统的流程、文档、需求分析等!顺便骂一句,该死的老板!
- 有哪位大虾用delphi开发过网络游戏的外挂程序? 希望能指点一二!!请问哪有可用来获取可执行文件(如EXE,DLL,SYS文件)的输出函数的工
- 98下的程序访问2000下的文件的问题
- TUpdateSQL是干什么的?怎么用呢?
- 登录窗口的问题,急!!!
- 关于far,near的用法
- 报“尝试打开的数据库已被……以排它方式打开”错,为什么?怎么改?
而"3.只能读,其他均不能操作"不容易实现,也没有什么意义.(拷贝或者重命名文件不就可以实现Save as一样的功能......)
建议用密码(只读密码和打开密码)来限制各种用户打开和操作的权限.MSDN:
Word 2000
Open Method Syntax 1: Opens the specified document and adds it to the Documents collection. Returns a Document object.Syntax 2: Opens the specified object. When applied to a Subdocument or RecentFile object, Syntax 2 returns a Document object.Syntax 1expression.Open(FileName, ConfirmConversions, ReadOnly, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Format, Encoding, Visible)Syntax 2expression.Openexpression Syntax 1: Required. An expression that returns a Documents object.Syntax 2: Required. An expression that returns an OLEFormat, RecentFile, Subdocument, or Version object.FileName Required Variant. The name of the document (paths are accepted).ConfirmConversions Optional Variant. True to display the Convert File dialog box if the file isn't in Microsoft Word format.ReadOnly Optional Variant. True to open the document as read-only.AddToRecentFiles Optional Variant. True to add the file name to the list of recently used files at the bottom of the File menu.PasswordDocument Optional Variant. The password for opening the document.PasswordTemplate Optional Variant. The password for opening the template.Revert Optional Variant. Controls what happens if Name is the file name of an open document. True to discard any unsaved changes to the open document and reopen the file. False to activate the open document.WritePasswordDocument Optional Variant. The password for saving changes to the document.WritePasswordTemplate Optional Variant. The password for saving changes to the template.Format Optional Variant. The file converter to be used to open the document. Can be one of the following WdOpenFormat constants: wdOpenFormatAllWord, wdOpenFormatAuto, wdOpenFormatDocument, wdOpenFormatEncodedText, wdOpenFormatRTF, wdOpenFormatTemplate, wdOpenFormatText, wdOpenFormatUnicodeText, or wdOpenFormatWebPages. The default value is wdOpenFormatAuto.To specify an external file format, apply the OpenFormat property to a FileConverter object to determine the value to use with this argument.Encoding Optional Variant. The document encoding (code page or character set) to be used by Microsoft Word when you view the saved document. Can be any valid MsoEncoding constant. For the list of valid MsoEncoding constants, see the Object Browser in the Visual Basic Editor. The default is the system code page. Read/write Long.Visible Optional Variant. True if the document is opened in a visible window. The default is True.