Telerik.Reporting report generation using RadGridView for WinForms

Thread is closed for posting
39 posts, 0 answers
  1. Sharon Eden
    Sharon Eden avatar
    25 posts
    Member since:
    Apr 2010

    Posted 13 Jul 2010 Link to this post

    Hi all,

    I’m to use the RadGridReportingLite in order to create a report and print a GridView. In my grid the HeaderText property of each column is translated to Hebrew. When I print the grid with no grouping everything works fine. When I try to group by one of the fields, I get the error “The expression contains object XXX that is not defined in the current context”. When I group by one of the fields without translating the HeaderText, everything works fine. I'm using Q1-2010.

    I have to say that I’m not familiar with Telerik Reporting and I have only few hours of experience with it.

    Is it a bug? Am I missing something? Is there any kind of workaround?

    Thanks in advance,

    Sharon.

  2. Sharon Eden
    Sharon Eden avatar
    25 posts
    Member since:
    Apr 2010

    Posted 14 Jul 2010 Link to this post

    After doing some debugging, there seems to be a problem whenever the HeaderText is different than the FieldName. The problem is in the GROUPS section of the AddReportData method when setting the groupTitleTextBox value. Changing both parameters to HeaderText seems to fix it.

    Can you tell me if there is something I’m missing?

    Thanks,

    Sharon.

  3. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 19 Jul 2010 Link to this post

    Hi Sharon Eden,

    Thank you very much for reporting that issue. I have reproduced on my side and it will be addressed for the next version of this library. I am not sure if putting only the HeaderText for groupTitleTextBox formatting will resolve the exception in all cases. We will investigate this further. 

    I have updated your Telerik points for bringing our attention on that. Let me know if you have any additional questions.

    Greetings,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Dan
    Dan avatar
    35 posts
    Member since:
    Oct 2008

    Posted 20 Jul 2010 Link to this post

    Is this solution compatible with the new Q2 controls?

    Thanks
  5. Ramin
    Ramin avatar
    2 posts
    Member since:
    Jul 2010

    Posted 21 Jul 2010 Link to this post

    Hi ,when compile RadGridReportingLite.Cs get some Error  :

                            GridCellElement headerCell =
    grid.MasterGridViewInfo.TableHeaderRow.Cells[i].CellElement;

    CellElement not Implement in Teletik 2010 Q2 ?

    and Error  from :
    grid.MasterGridViewTemplate.GroupByExpressions[i].SelectFields[j].HeaderText

    SelectFields too not implement?



  6. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 22 Jul 2010 Link to this post

    Hello guys,

    Please find the latest build of RadGridReportingLite library and the ready made assembly as attachments. It was modified to allow using it along with latest versions of Telerik Reporting and WinForms controls: Q2 2010. Also the issue with grouped columns, which has different header text and field name has been addressed.

    Note that the old versions of RadGridReportingLite library are not compatible with latest Q2 2010 release, because there are some general changes in grid's elements structure. Please use the one provided in this message.

    Finally, since RadGridView Q2 2010 natively supports Export to PDF, we will close this code library project for further comments, because it becomes obsolete. Please, consider upgrading to Q2 2010+ instead.

    In case you are using older versions of our tools and this library, and have further questions, please open a new support ticket from your account and we will help you out.


    Regards,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Allan D. Jensen
    Allan D. Jensen avatar
    5 posts
    Member since:
    Sep 2009

    Posted 29 Jul 2010 Link to this post

    Hello Martin
    I install the application and run it, no problem. When I try to save it as excel, so I got an error, but I can it save as pdf, csv and etc.
    The error message:
    Value cannot be null.
    Parameter name: input

    My version is : Latest Version: 2010.2 714 - Q2 2010
    Thanks!
  8. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 03 Aug 2010 Link to this post

    Hello Allan Jensen,

    I am unable to reproduce the described issue. It could be related to something specific in your application. However, since RadGridReportingLite library is now obsolete, I highly recommend you to use some of the export methods, which we provided with the new version of RadGridView instead of generating a report. For more information please take a look to our product documentation. If you still need help with exporting through a Report, please create a new support ticket and send me a small sample project that demonstrates the error. This will allow me to investigate further and provide you with accurate assistance.

    Kind regards,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 08 Sep 2010 Link to this post

    Hello there,

    I am attaching a revised version of the RadGridReportingLite library, which addresses the reported export to excel issue. It is tested with Q1 2010 versions of RadControls for Winforms and Reporting. If anyone has any additional inquiries about it, please open a new support ticket and ask your questions there.

    Regards,
    Martin Vasilev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top