如何用VB6.0实现只读查看word文档
想用vb6.0编写个模块,用于查看WORD、EXCEL文档,要求只能查看,不允许其他操作(如复制文本、另存为等),希望哪位高手能提供些思路或案例,先谢谢了!...
想用vb6.0编写个模块,用于查看WORD、EXCEL文档,要求只能查看,不允许其他操作(如复制文本、另存为等),希望哪位高手能提供些思路或案例,先谢谢了!
展开
展开全部
On Error Resume Next
Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
Set objExcel = CreateObject("Excel.Application")
'Set objWorkBook = objExcel.Workbooks.Add()
objExcel.Visible = True
‘只读打开
objWorkBook.OpenLinks "D:\1.xlsx", ReadOnly:=True
Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
Set objExcel = CreateObject("Excel.Application")
'Set objWorkBook = objExcel.Workbooks.Add()
objExcel.Visible = True
‘只读打开
objWorkBook.OpenLinks "D:\1.xlsx", ReadOnly:=True
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询