【发布时间】:2017-09-02 09:30:26
【问题描述】:
我得到下面的代码在本地 (using source code) 上工作得很好。但是当我在IIS7 上发布它时,PDF 不再显示了.. IIS 是否有问题? . .我花了很多天来解决这个问题。
Dim strPath = Server.MapPath("~\Reports\GeneratedReport.pdf")
my_rpt.ExportToDisk(ExportFormatType.PortableDocFormat, strPath)
Dim file = New System.IO.FileInfo(strPath)
Dim Process = New Process()
If file.Exists Then
Process.StartInfo.UseShellExecute = True
Process.StartInfo.FileName = strPath
Process.Start()
Else
'No Report found
End If
您可以在下图中看到 AdobeReader 正在运行,但它没有显示在我的屏幕上。
【问题讨论】: