0
votes

Im getting this error "Error in File C:\Users\Josephine\AppData\Local\Temp\Reportlist {BC17FA55-0414-4D23-B78C-311D036ADF6C}.rpt: The request could not be submitted for background processing." What seems to be the problem? Dim document As New ReportDocument

                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()
1
it generate error in exporting to pdfJane Smith
Not sure if this document is relevant: sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/…theduck
try writing to somewhere other than to the root of the boot drive. the app likely does not have access to thatŇɏssa Pøngjǣrdenlarp

1 Answers

0
votes

solve by using threading by calling a sub

sample like this Threading in VB.NET