<p><strong>Avec Apache POI (Java) :</strong></p>
<pre data-code-wrap="java"><code class="lang-java">DataFormatter formatter = new DataFormatter();
String value = formatter.formatCellValue(cell);
</code></pre>
<p>Cela retournera toujours une chaîne, qu’elle soit stockée comme nombre ou texte.</p>
<p><strong>Avec EPPlus (C#) :</strong></p>
<pre data-code-wrap="csharp"><code class="lang-csharp">string value = worksheet.Cells[row, col].Text;
</code></pre>
<p><strong>Avec openpyxl (Python) :</strong></p>
<pre data-code-wrap="python"><code class="lang-python">cell = ws['A1']
value = str(cell.value)
</code></pre>
<p>L’astuce est d’utiliser la propriété <code>.Text</code> ou un formateur plutôt que <code>.Value</code> qui retourne le type natif.</p>