Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. StringWriter sw = new StringWriter();
  2.             XmlTextWriter tw = new XmlTextWriter(sw);
  3.  
  4.             XmlSerializerNamespaces xsn = new XmlSerializerNamespaces();
  5.  
  6.             XmlSerializer ser = new XmlSerializer(typeof(GerarNfseEnvio));
  7.             FileStream arquivo = new FileStream("E:\NFSe-" + "RPS" + numero.ToString().PadLeft(15, '0') + ".xml", FileMode.CreateNew);
  8.             xsn.Add("", "http://www.abrasf.org.br/nfse.xsd");
  9.  
  10.             ser.Serialize(arquivo, gerar, xsn);
  11.             arquivo.Close();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top