0
我得到這個錯誤「文件C:\ Users \ Josephine \ AppData \ Local \ Temp \ Reportlist {BC17FA55-0414-4D23-B78C-311D036ADF6C} .rpt錯誤:請求不能提交後臺處理「。什麼似乎是問題? 昏暗的文件作爲新的ReportDocumentvb.net導出到磁盤
Dim ExportPathName As String
ExportPathName = String.Concat(New String() {"C:\Exported\", Me.cboList.Text, "\", Me.cboCust.Text})
If Not My.Computer.FileSystem.DirectoryExists(ExportPathName) Then
My.Computer.FileSystem.CreateDirectory(ExportPathName)
End If
'Dim str2 As String = String.Concat(New String() {ExportPathName, "\", Controller.ExportName.ToString, ".pdf"})
Dim str2 As String = String.Concat(New String() {"C:\test.pdf"})
document.Load((Application.StartupPath & "\Reportlist.rpt"), CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy)
document.SetDataSource(DS)
If System.IO.File.Exists(str2) Then
System.IO.File.Delete(str2)
End If
Me.Cursor = Cursors.WaitCursor
ToolStripStatusLabel1.Text = "Exporting to PDF..Please Wait"
document.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, str2)
document.Dispose()
它導出爲PDF – 2015-02-09 15:01:15
不知道產生錯誤,如果該文件是相關的:HTTP ://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?QuickLink = index&overridelayout = true&36837934524320 – theduck 2015-02-09 16:25:43
嘗試寫入除了以外的地方啓動驅動器的根目錄。該應用可能無法訪問該應用 – Plutonix 2015-02-09 20:17:40