How to debug Telerik Reports?

5 posts, 0 answers
  1. Robert
    Robert avatar
    199 posts
    Member since:
    Aug 2009

    Posted 01 Sep 2009 Link to this post

    I must be missing something...  I create a web project and add my Telerik class library and set a breakpoint on my Telerik test report contructor.  I run my project and can debug as normal but it never steps into the report. 

    Is there documentation on this somewhere or am I just missing something?


    R
  2. Ivan
    Admin
    Ivan avatar
    114 posts

    Posted 02 Sep 2009 Link to this post

    Hi Robert Gayo,

    Each Telerik Report is just an ordinary class that you can debug the same way you can debug any other class from your project. Just create a new instance of the report in code and the debugger will hit the breakpoint in the constructor. You can also add a report viewer to your web page, specify a report for it, and the report constructor will be called as soon as you try to preview this report in the page. If you have a certain issue when debugging your reports, could you be more specific about the exact conditions so we can provide more assistance to you?

    Sincerely yours,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Robert
    Robert avatar
    199 posts
    Member since:
    Aug 2009

    Posted 02 Sep 2009 Link to this post

    This only works if I create a report and have it within the web project app_code folder. This is not as defined in your best practices.

    I need to debug within the class library which is attached to the web project.  How can I step through this report within the class library when I run my web project?

    Robert
  4. Ivan
    Admin
    Ivan avatar
    114 posts

    Posted 04 Sep 2009 Link to this post

    Hello Robert Gayo,

    It seems your debugging problem is not related to Telerik Reporting at all. As I said previously, there is nothing special about the report classes generated by the Report Designer which you should be aware of when debugging.

    If you are still not convinced try the following experiment:
    1. Open the sample solution that comes with the Telerik Reporting installation in Visual Studio
    2. Add a breakpoint in the constructor of any report from the class library and run the Web Demo in debug mode
    3. Select the report from the menu and the debugger should hit the breakpoint immediately. 
    Perhaps there is something wrong with your web site that prevents you from debugging. Check the compiled DLL of your report library inside the BIN folder. If it is not up to date, this might confuse the debugger. Delete the contents of the BIN folder, then add a reference to the report library again and perform a full rebuild of the solution. This should guarantee the web site is using the latest compiled version of the report library. 
     

    Sincerely yours,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Naveena
    Naveena avatar
    9 posts
    Member since:
    May 2018

    Posted 18 May 2018 Link to this post

    key =>graph1.NoDataMessage     Value=>:   "There is no data to display for any \r\n See the next page for Pai" +"n, Activity and Sleep Category Scoring" , These are in my RESX file , while localization what ever the special charecter and \n are displaying as same how can i do fix this

Back to Top