<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jacob on ffff65535</title><link>https://blog.ffff65535.com/tags/jacob/</link><description>Recent content in Jacob on ffff65535</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 13 Nov 2022 00:00:00 +0800</lastBuildDate><atom:link href="https://blog.ffff65535.com/tags/jacob/index.xml" rel="self" type="application/rss+xml"/><item><title>windows 环境运行jacob的一些报错处理</title><link>https://blog.ffff65535.com/posts/2022/11/13/windows-server-jacob-word2pdf/</link><pubDate>Sun, 13 Nov 2022 00:00:00 +0800</pubDate><guid>https://blog.ffff65535.com/posts/2022/11/13/windows-server-jacob-word2pdf/</guid><description>&lt;h2 id="comjacobcomcomfailexception-variantchangetype-failed">com.jacob.com.ComFailException: VariantChangeType failed&lt;/h2>
&lt;p>报错信息如下&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-java" data-lang="java">&lt;span style="display:flex;">&lt;span>com.&lt;span style="color:#a6e22e">jacob&lt;/span>.&lt;span style="color:#a6e22e">com&lt;/span>.&lt;span style="color:#a6e22e">ComFailException&lt;/span>: VariantChangeType failed
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>解决方案：
win2008 以下 需要在
C:\Windows\System32\config\systemprofile\Desktop
建立文件夹
win2008 及以上 需要在
C:\Windows\SysWOW64\config\systemprofile\Desktop&lt;/p>
&lt;p>可以直接执行下边的powershell脚本创建&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">if&lt;/span>&lt;span style="color:#f92672">((&lt;/span>Test-Path &lt;span style="color:#e6db74">&amp;#34;C:\Windows\System32\config\systemprofile\Desktop&amp;#34;&lt;/span>&lt;span style="color:#f92672">)&lt;/span> -ne &lt;span style="color:#e6db74">&amp;#34;True&amp;#34;&lt;/span>&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">{&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> New-Item -Path &lt;span style="color:#e6db74">&amp;#34;C:\Windows\System32\config\systemprofile\Desktop&amp;#34;&lt;/span> -ItemType Directory
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">}&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">if&lt;/span>&lt;span style="color:#f92672">((&lt;/span>Test-Path &lt;span style="color:#e6db74">&amp;#34;C:\Windows\SysWOW64\config\systemprofile\Desktop&amp;#34;&lt;/span>&lt;span style="color:#f92672">)&lt;/span> -ne &lt;span style="color:#e6db74">&amp;#34;True&amp;#34;&lt;/span>&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">{&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> New-Item -Path &lt;span style="color:#e6db74">&amp;#34;C:\Windows\SysWOW64\config\systemprofile\Desktop&amp;#34;&lt;/span> -ItemType Directory
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="saveas-source-microsoft-powerpoint-description-presentationsaveas--powerpoint-无法将-0-保存到-1">SaveAs Source: Microsoft PowerPoint Description: Presentation.SaveAs : PowerPoint 无法将 ^0 保存到 ^1。&lt;/h2>
&lt;p>报错信息如下&lt;/p></description></item></channel></rss>