locked
custom code rdlc report using c# RRS feed

  • Question

  • Is it possible to write C# custom code  in  RDLC report viewer.  Please can you anybody guide me how to write the custom code in rdlc c#

    Regards

    Pol


    polachan

    • Moved by Kristin Xie Monday, February 22, 2016 7:51 AM Report viewer related
    Thursday, February 18, 2016 5:25 PM

All replies

  • Depends upon what you mean.  A report can contain code (RDLC or RDL doesn't matter). We tend to do this for formatting purposes.  You can then use that functionality when setting up expressions and controlling formatting. However there isn't any supported way of, say executing code, when the report is run. It always has to be tied to rendering or querying data. Microsoft has information on this.

    Michael Taylor
    http://blogs.msmvps.com/p3net

    Thursday, February 18, 2016 5:47 PM
  • I am not too sure what you mean by custom code.

    I did have a filter in a video here::

    https://chanmingman.wordpress.com/2011/04/13/navigate-from-one-rdlc-report-to-another-filter-through-querystring-using-reportviewer-sample/

    https://chanmingman.wordpress.com/2011/08/16/how-to-create-a-report-using-asp-net-reporting-control-and-add-total-with-mysql/

    https://chanmingman.wordpress.com/2011/04/11/navigate-from-report-to-report-in-asp-net-using-url-and-chart-sample/

    that are related to rdlc. Have a check it that can bring you to any new idea.

    chanmm


    chanmm

    Friday, February 19, 2016 5:36 AM