Microsoft Visual studio Provides ReportViewer Control and RDLC Report design tool . The following is mainly about how to use Sharepoint 2010 Used in project development ReportViewer and RDLC Generate project report . because Sharepoint 2010 The default is disable Session Of , and RDLC Report must be enabled Session. So in Sharepoint To use RDLC Generate reports , Can be on the site of web.config Make the necessary settings before customizing the report page , Then get the data table through the object model and bind it to RDLC In the report .
        First step , modify Sharepoint 2010 Site Web.confg Support ReportViewer Control .

  1.  stay <system.web> Node to add the following settings support Sessioon state.

<sessionState mode="InProc" timeout="60" />  

2. stay <system.web>\<compilation> Add in node ReportViewer Support

<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />         <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />  

3. stay <system.web> Node <pages> Node properties enableSessionState The value is true Support page Session state.

<pages enableSessionState="true" enableViewState="true" ... >...

4. stay <system.webServer> Of <modules> In the node <remove name="Session" /> Node comments .

<!-- <remove name="Session" /> -->  

5. stay <system.webServer> Of <handlers> add to ReportViewer Control support .

<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        6. stay <appSettings> The following line in the comment :
<add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
     
The second step , Create one in the project DataSet and DataTable For binding to RDLC report form     
      
       
 
 
 
 
 
 
 
 
 
The third step , Create a project called Report1.rdlc The report of ( Suppose you publish to layouts\CooperTiers.TnE Catalog ), And bind to the data source created in the previous step           
        Step four , Create a user control or page widget to add ReportViewer Register and control , And load it through code Report1.rdlc report form HTML Source code         

C# Source code

Step five , Release Sharepoint project , Access the corresponding user control or Web Parts page , The page preview is shown below

【 turn 】SharePoint To realize ReportView More articles about

  1. stay SharePoint Create a folder with customizable properties in

    survey Reading time : about 5 minute Applicable version :SharePoint Server 2010 And above User oriented : Ordinary users . Administrators . Developer Difficulty index :***** SharePoint The folder in is divided into 2 Kind of , One is the document library ...

  2. SharePoint About China event receivers The discussion of the

    This morning , I talked about event triggers in the group with some friends , I feel like I've gained a lot , Share it with you . The content of the discussion , It's about synchronization of event triggers / Asynchronous settings and functions . In fact, contact SharePoint for quite a while , For event triggers ...

  3. SharePoint In the user control development and application

    1. New solutions and SharePoint project , The steps are simple. Skip , And then map CONTROLTEMPLATES Folder , Add user controls to it ( Field only solutions ), Here's the picture : 2. Solution structure , Here's the picture : A brief introduction , ...

  4. rely on K2 SmartObject frame , stay SharePoint Integration of data in

    With SharePoint 2013 Release ,Microsoft Provided Business Connectivity Services(BCS) Enhancements and external lists , Make sure you can do it more easily in SharePoin ...

  5. Sharepoint About folder operation in

    1.GetItemsWithUniquePermissions According to the number of returned items and whether to return to the folder, get the list item collection with unique permissions about SharePoint In the object model SPList Of GetItemsWithUnique ...

  6. sharepoint Medium YesNo Field

    sharepoint Medium YesNo Field is actually a Boolean Field , There's something special about it , If IsShow It's a YesNo Field , Use caml When querying, the value is ”1“(Yes)”0“(No),Item[IsSho ...

  7. No-Touch Integration stay SharePoint Using community support in Silverlight Applications

    No-Touch Integration stay SharePoint Using community support in Silverlight Applications         No-Touch Integration It should be the easiest way . take Silv ...

  8. BEGINNING SHAREPOINT&amp;#174; 2013 DEVELOPMENT The first 3 chapter --SharePoint 2013 Developer tools SharePoint Based on Web Development

    BEGINNING SHAREPOINT 2013 DEVELOPMENT The first 3 chapter --SharePoint 2013 Developer tools SharePoint Based on Web Development         As mentioned before , ...

  9. To abandon completely PeopleEditor,SharePoint In the use of Jquery Chosen Create a new people selector

    To abandon completely PeopleEditor,SharePoint In the use of Jquery Chosen Create a new people selector be based on SharePoint Platform development , People selectors are very frequently used , But the native human selector is too numb to use ...

Random recommendation

  1. Images using base64 Show me the code , Backstage for jfinal

    The front desk to use ajax get data , The next step is to put the picture corresponding to id Get , Then judge whether it is empty , If it is not empty, send a request to get data , The data is base64 data format : img Need to indicate data type format : namely data:image/jpg:bas ...

  2. rbenv Your user account isn&#39;t allowed to install to the system Rubygems

    Clone A new Rails The project to Mac, bundle install When I came across the following tips Fetching source index from http://rubygems.org/ Your ...

  3. VSFTPD To configure TLS/SSL

    In today's OSX On the configuration Coda2 + Xampp When , Find out FTP Never connect to the server , Cause every time you change a file, you need to use scp The command is uploaded to the server . If a file is OK , As many files and folders as you have to use rp All parameters are submitted , Again ...

  4. docker-hub Account

    Docker Hub and docker And its components .Docker Hub Will help you and your colleagues work together , And get the most functional docker. Do that , The services it provides are : Docker Mirror host User authentication Automatic mirror construction ...

  5. Android include Use

    If a part of the same layout is used many times in the program , You can define this part of the layout as a separate XML, And then go through where you need to <include> introduce , as follows : main.xml <?xml version=&q ...

  6. NDK Development of Application.mk File,

    done NDK All the students who are developing should know that there is a Application.mk file , This is a android NDK An optional build file used by the build system . Its purpose is to describe which modules the application needs , It also defines some common variables for all modules . There are mainly ...

  7. 【 original 】 No encapsulation jar package Direct introduction of engineering methods ( similar android Of is Library function )

    1. Make lib engineering , Here I simply make a test class 2.eclipse in java Project Engineering introduction method 2.1. Create a new java engineering , Select... In the property configuration "Java Build Path&qu ...

  8. #include &lt;boost/function.hpp&gt;

    by atoi Take the alias fun,fun It's essentially a function pointer #include <iostream> #include <boost/function.hpp> void main() { ...

  9. 2014.8.16 if sentence

    sentence if sentence It can be divided into several kinds : Little knowledge   Generate a random number : Random sss = new Random(); int a = sss.Next(100); Console.WriteLine ...

  10. from &lt;sofa:XXX&gt; The label starts to look SOFA-Boot How to integrate Spring

    Preface SOFA-Boot Support at this stage XML The way in Spring In the definition of Bean, Through these tags , We can go from Spring Take out of container RPC Citation in , And call , So how does he deal with these custom tags ...