hi guyz ,
i have an error in my path,
all i want is to make app.path correct
heres is my code

Dim cryRpt As New ReportDocument
        cryRpt.Load(Application.StartupPath & "\ProductList.rpt")
        CrystalReportViewer1.ReportSource = cryRpt
        CrystalReportViewer1.Refresh()

i dont know what the error?

Application.StartupPath return the location of executables (.exe) so to resolve path of report files, move .rpt files to the Application.StartupPath.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.