Asp classic 运行htmldoc的经典asp中的wscript.shell-无错误报告但不工作

Asp classic 运行htmldoc的经典asp中的wscript.shell-无错误报告但不工作,asp-classic,htmldoc,Asp Classic,Htmldoc,从输出中可以看出,以下代码不会产生错误。目的是使用htmldoc将html文件转换为pdf文件。html文件生成得很好,pdf应该保存到与pdf相同的文件夹中,但没有生成pdf文件 该代码正在Windows 2012 IIS 8上运行。该代码在Windows2003服务器上运行良好,没有任何问题 输出为: 从这里开始 2014年2月2日下午3:48:08 通过 成功运行 2014年2月2日下午3:48:08 有人能帮忙吗?非常感谢 CmdeHTMLDOC=chr(34)& exe_pat

从输出中可以看出,以下代码不会产生错误。目的是使用htmldoc将html文件转换为pdf文件。html文件生成得很好,pdf应该保存到与pdf相同的文件夹中,但没有生成pdf文件

该代码正在Windows 2012 IIS 8上运行。该代码在Windows2003服务器上运行良好,没有任何问题

输出为:

从这里开始

2014年2月2日下午3:48:08

通过

成功运行

2014年2月2日下午3:48:08

有人能帮忙吗?非常感谢

CmdeHTMLDOC=chr(34)& exe_path & chr(34) & " --header ... --footer ../  -t pdf  --textfont Arial --fontsize 9  --quiet --left 1.5cm  --right 1.5cm  " & "  --webpage -f "
set wshell=Server.CreateObject("wscript.shell")
wpath4pdf= CmdeHTMLDOC & chr(34)& pdf_path &chr(34)&" "& chr(34)& html_path &chr(34)
'wshell.Run wpath4pdf, SW_SHOWNORMAL,true 
Response.Write("Starts here<br/>") 
on error resume next 
%> 
<pre><%=now()%></pre> 
<% 
wshell.Run wpath4pdf, SW_SHOWNORMAL,true
Response.write "Passed through<br/>" 
if err.number <> 0 then 
   response.write "Error detected: " & err.number & ": " & err.Description & "<br/>" 
   on error goto 0 
   response.end 
end if 
on error goto 0 
Response.write "Run sucessfully<br/>" 
%> 
<pre><%=now()%></pre> 
<%Set wshell=nothing
CmdeHTMLDOC=chr(34)&exe_path&chr(34)&--header…--footer…/-t pdf--textfont Arial--fontsize 9--quiet--left 1.5cm--right 1.5cm“&--webpage-f”
设置wshell=Server.CreateObject(“wscript.shell”)
wpath4pdf=CmdeHTMLDOC&chr(34)和pdf_-path&chr(34)和“”&chr(34)和html_-path&chr(34)
'wshell.runwpath4pdf,SW_SHOWNORMAL,true
响应。写入(“从这里开始
”) 出错时继续下一步 %>
您是否检查了要保存到的文件夹的写入权限?谢谢John-写入权限很好,因为我可以在尝试转换html文件之前在那里写入html文件。我认为我的ISP一定没有提供运行shell命令的权限,但似乎很奇怪,没有错误。