Cell does not display all information (.CSV)

0

I am generating a .CSV file in my project in C #. Most of the information comes out correct, but when it has a large number of numbers, the cell does not show all:

andthefileisgeneratedlikethis:

CreateFunctionCall

vararquivo=Service.CriarArquivo(paraEnviar,inclusaoRadioButton.Checked,motivo);

Createfunction

publicArquivoCriarArquivo(IDictionary<Cliente,IEnumerable<ContasReceber>>clientes){Arquivoarquivo=newArquivo();varconfig=GetConfiguracao();PreencherCabecalho(arquivo,config);PreencherDetalhe(arquivo,config,clientes);returnarquivo;}

FillinDetail

arquivo.Detalhe=newList<Detalhe>();intsequencial=1;foreach(varcinclientes){Detalhed=newDetalhe();varcob=c.Value.First();d.DocumentoDoPrincipal=c.Key.Cnpj;if(!String.IsNullOrEmpty(c.Key.Telefone)&&c.Key.Telefone.Length==10){d.DDD=int.Parse(c.Key.Telefone.Substring(0,2));d.Tel=long.Parse(c.Key.Telefone.Substring(2,8));}d.DtVencDivida=cob.DataVencimento.Value;arquivo.Detalhe.Add(d);}

Detail:

[Line(Length=600)]publicclassDetalhe{[Column(Length=20)]publicstringDocumentoDoPrincipal{get;set;}[Column(Format="000")]
   public int DDDDevedor { get; set; }
   [Column(Format = "00000000")]
   public long TelDevedor { get; set; }
   [Column(Format = "dd/MM/yyyy")]
   public DateTime DtVencDivida { get; set; }
}

The goal is only for all characters to appear, cell size does not matter.

    
asked by anonymous 30.10.2018 / 12:40

0 answers