Buenos días camaradas, en este vídeo les mostrare como extraer el UUID y datos del complemento usando la clase cfdv23.cs C#
<img src="http://lh3.ggpht.com/-5kYYPkxjKa8/VOoWIg-CASI/AAAAAAAAK6M/ua5AbG0uiQs/video2fe13195df6c%25255B6%25255D.jpg?imgmax=800" style="border-style: none" galleryimg="no" onload="var downlevelDiv = document.getElementById('2205ba2d-8825-40fb-8c1d-0d047b06edea'); downlevelDiv.innerHTML = "
http://www.youtube.com/v/FuTJpy5jXPE&hl=en“;” alt=””>
1: using System;
2: using System.Collections.Generic;
3: using System.ComponentModel;
4: using System.Data;
5: using System.Drawing;
6: using System.Linq;
7: using System.Text;
8: using System.Threading.Tasks;
9: using System.Windows.Forms;
10: using System.Xml.Serialization;
11: using System.Xml;
12:
13: XmlSerializer serielizer = new XmlSerializer(typeof(Comprobante));
14: XmlTextReader reader = new XmlTextReader(@"C:xml.xml");
15: Comprobante factura = (Comprobante)serielizer.Deserialize(reader);
16:
17: string strUUID,strSelloSat,strNoCertificadoSat,strSelloCFD,strFechaTimbrado;
18: //MessageBox.Show (factura.fecha.ToString());
19:
20: strUUID = (factura.Complemento.Any[0].Attributes[3].Value);
Espero les sirva
Deja un comentario