# GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format*">Format Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_System_Object_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format(System.Object,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle)">Format(object, IStyle)</h4>
<div class="markdown level1 summary"><p>Returns a string representation of the specified value using <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.html">IStyle</a>
and according to the language settings defined in the report or current server language.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string Format(object value, IStyle style)</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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle.html">IStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_System_Object_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>According to RDL specs. report item language takes precedence over report language
and everything fallbacks on a default (server -- whatever it is) language.</p>
</div>


<a id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Components_Interfaces_IFormattingService_Format_System_Object_System_String_" data-uid="GrapeCity.ActiveReports.Rendering.Components.Interfaces.IFormattingService.Format(System.Object,System.String)">Format(object, string)</h4>
<div class="markdown level1 summary"><p>Returns a string representation of the specified value consistent with the current report language settings
and using the specified format string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string Format(object value, string formatSpecifier)</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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formatSpecifier</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
