Skip to Content

Hi All,

               I am using the cr 13 version windows 7 64 bit.. visual studio 2012. when i export the pdf file to disk i get error following error. “The System can not find the path specified error

i use following code…

Try

            m_rptDocument.Load(m_strRPTName)

            If SetFormulas() = False Then Return False

            Application.DoEvents()

            m_rptDocument.SetDataSource(m_dtTmp)

        Catch ex As EngineException

            MsgBox(ex.Message)

            Return False

        Catch ex As CrystalReportsException

            MsgBox(ex.Message)

            Return False

        End Try

        With RptView1

            .AutoScroll = True

            .ShowProgressAnimation(True)

            .ReportSource = m_rptDocument

            .ShowLogo = False

        End With

Try

            If System.IO.File.Exists(strExportPath) = True Then System.IO.File.Delete(strExportPath)

            ‘oStream = CType(m_rptDocument.ExportToStream(ExportFormatType.PortableDocFormat), MemoryStream)

            m_rptDocument.ExportToDisk(ExportFormatType.PortableDocFormat, strExportPath)

        Catch ex As Exception

            MsgBox(ex.Message)

            Return False

        End Try

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply