私はVisual Studio 2017でEPPLusでExcelレポートを作成しています。私の要件の1つは特定のIDにリンクされたすべての数値を1つのフィールドに付けることですが、エラー:Excelが見つかりませんでした - Recover Truncatesを見つけました
「Excelは 『[filenameHere.xlsx]』で読めないコンテンツを発見したあなたは、このワークブックのソースを信頼する場合は、[はい]をクリックします。このワークブックの内容を回復したいですか?」私が行うと
をしたがって、次の状態を示す別の情報ボックスが返されます。
"Excelで読み取り不可能なファイルを修復または削除してファイルを開くことができましたコンテンツ。 修復したレコード:文字列/xl/sharedString.xml部分(文字列)からプロパティ「と、それが読み込まれたログファイルにリンクを提供しています:
」
error178480_01.xmlErrors were detected in file 'C:[filenamehere].xlsx'Repaired Records: String properties from /xl/sharedStrings.xml part (Strings) " I am pulling about 3,000 records into the field but only about 1800 show up when I run the code and the information is truncated. Here is an example:
StringBuilder groupString = new StringBuilder();
for (int i = 0; i <= 3000;i++)
{
groupString.Append("sampleNumber "+i.ToString()+",");
}
ExcelPackage exclPck = new ExcelPackage();
ExcelWorksheet exclWs = exclPck.Workbook.Worksheets.Add("example");
exclWs.Cells["A2"].Value= groupString.ToString();
exclPck.SaveAs(new System.IO.FileInfo("C:\\filenamehere.xlsx"));