Crystalreport design changes doesn't work in runtime.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kenta
    New Member
    • Mar 2010
    • 10

    #1

    Crystalreport design changes doesn't work in runtime.

    For some reasons that I don't understand all my design changes won't show up when I hit F5 and run the application. I can put how many new fields and labels with som "hello" text that I wont but they are not displayed at runtime. But all database changes the report i connected to will be displayed.

    How can that be? What is wrong with my report when all datachanges runs thru but not my design changes?

    I am using VS 2008 and the built in crystal report and viewer.

    Code:
            rptPerson.Load(reportPath) ' måste finnas med, SetDataSource kastar felmed. annars.
            rptPerson.Refresh()
            rptPerson.SetDataSource(dsPerson.Tables(0))
    
    
            CrystalReportViewer1.ReportSource = rptPerson
            CrystalReportViewer1.Refresh()
            CrystalReportViewer1.RefreshReport()
    //Kent Andersson
  • Kenta
    New Member
    • Mar 2010
    • 10

    #2
    oops

    My own failure, my report path was pointing to the bin\debug path (Application.St artupPath & "\" & "rptPerson.rpt" ) . But my reports are directed to the project path. So ofcourse my changes wasn't reflected. I changed tha path and everything is working now. //Kent

    Comment

    Working...