# GrapeCity.ActiveReports.Rendering.ICustomReportItemFactory.CreateCustomReportItem

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rendering_ICustomReportItemFactory_CreateCustomReportItem_" data-uid="GrapeCity.ActiveReports.Rendering.ICustomReportItemFactory.CreateCustomReportItem*">CreateCustomReportItem Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_ICustomReportItemFactory_CreateCustomReportItem_" data-uid="GrapeCity.ActiveReports.Rendering.ICustomReportItemFactory.CreateCustomReportItem*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_ICustomReportItemFactory_CreateCustomReportItem_System_IServiceProvider_System_String_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IDataScope_GrapeCity_ActiveReports_Extensibility_Rendering_IPropertyBag_" data-uid="GrapeCity.ActiveReports.Rendering.ICustomReportItemFactory.CreateCustomReportItem(System.IServiceProvider,System.String,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IDataScope,GrapeCity.ActiveReports.Extensibility.Rendering.IPropertyBag)">CreateCustomReportItem(IServiceProvider, string, IDataScope, IPropertyBag)</h4>
<div class="markdown level1 summary"><p>Tries to creates new custom report item based on the specified settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IReportItem CreateCustomReportItem(IServiceProvider serviceProvider, string type, IDataScope dataContext, IPropertyBag properties)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a></td>
      <td><span class="parametername">serviceProvider</span></td>
      <td><p>The service provider to resolve reports core configuration.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of CRI to create.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Extensibility.Rendering.Components.IDataScope.html">IDataScope</a></td>
      <td><span class="parametername">dataContext</span></td>
      <td><p>The data context to initialize CRI with.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Extensibility.Rendering.IPropertyBag.html">IPropertyBag</a></td>
      <td><span class="parametername">properties</span></td>
      <td><p>The properties to initialize CRI with.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Extensibility.Rendering.Components.IReportItem.html">IReportItem</a></td>
      <td><p>New CRI or null if fails.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
