Office 相关设置
 Office 相关设置 
 OUTLOOK更改离线文件夹位置
对outlook exchange或者IMAP起作用
- Win+R打开运行窗口, 键入- regedit回车打开注册表编辑器.
- 定位到HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook- 右侧 新建→可扩充字符串值, 命名为ForceOSTPath, “数值数据”框内填入想放置的文件夹路径, 如D:\Documents\Outlook.
- 重复2.1操作, 新建字符串值名称为ForcePSTPath.
 
- 右侧 新建→可扩充字符串值, 命名为
- (可忽略)定位到HKEY_CURRENT USER\Software\Microsoft\Office\15.0\Outlook\Options, 新建字符串值名称为DefaultPath, 数值数据内容也为文件夹路径.
- 打开 控制面板→邮件→显示配置文件→添加, 在此处添加邮件信息, 即可使得离线文件夹位置不是在C盘了.
在Word内打开需要翻墙的链接(参考)
- 关闭与Office相关程序
- 在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet位置新建DWORD值ForceShellExecute, 值设为1
副作用是A hyperlink may not go to a Microsoft Word document or a Microsoft Excel worksheet after you use this workaround.
PowerPoint使用.html文件作为嵌入对象
- 无法添加Microsoft Web Browser插件(参考)- Office 365, ClickToRun 将HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Common\COM Compatibility\{8856F961-340A-11D0-A96B-00C04FD705A2}的Compatibility Flags值从1024改成1REG ADD "HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Common\COM Compatibility\{8856F961-340A-11D0-A96B-00C04FD705A2}" /v "Compatibility Flags" /t REG_DWORD /d 1 /f
 
- Office 365, ClickToRun 将
- .html文件能够正常在浏览器中打开, 但是在webbrowser插件中会显示js错误(参考1, 2) 在- .html文件的- <head>里加- <meta http-equiv="X-UA-Compatible" content="IE=edge">.
 根据具体情况添加- <meta charset="utf-8" />
- 本地文件有js要加载会一直弹出警告- (参考)选中Internet选项→高级→安全→允许活动内容在"我的电脑"的文件中运行
- Mark of the Web
 在.html文件开头添加1 2 <!DOCTYPE html> <!-- saved from url=(0014)about:internet --> 并将文件换行设置为 CRLF.
 
- (参考)选中
- 一句话命令1 2 3 4 5 6 # 不保留mathjax sed -iE '/[^\r]$/s/$/\r/;1,2s/^<html>/<!DOCTYPE html>\n<!-- saved from url=(0014)about:internet -->/;1,3s%^<head.*head>%<head><meta charset="utf-8" /><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge"></head>%;1,5s/<script.*mathjax.*script>//' test.txt # 保留mathjax sed -iE '/[^\r]$/s/$/\r/;1,2s/^<html>/<!DOCTYPE html>\n<!-- saved from url=(0014)about:internet -->/;1,3s%^<head.*head>%<head><meta charset="utf-8" /><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge"></head>%' test.txt # 恢复mathjax sed -iE '1,5s%<div>\s*$%<div><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG"></script><script type="text/javascript">if (window.MathJax) {MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script><script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: '\''local'\''};</script>%' test.txt 
- 设置PPT进入页面自动运行Sub OnSlideShowPageChange(ByVal Wn As SlideShowWindow) If Wn.View.CurrentShowPosition = 2 Then MsgBox "Slide selection changes." WebBrowser1.Navigate (Application.ActivePresentation.Path + "\test.html") End If End Sub
 本文由作者按照  CC BY 4.0  进行授权