0

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?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.