0
I made a root map and would like to present the company name in the header.
You can help me solve this challenge?
Thank you
0
I made a root map and would like to present the company name in the header.
You can help me solve this challenge?
Thank you
1
To know the context of the company just add this formula to your map.
pso.Mapas.Inicializar("GCP");
var strFormula = new StringBuilder();
strFormula.Append($"StringVar Nome:='{bso.Contexto.IDNome}';");
strFormula.Append($"StringVar Morada:='{bso.Contexto.IDMorada}';");
strFormula.Append($"StringVar Localidade:='{bso.Contexto.IDLocalidade}';");
strFormula.Append($"StringVar CodPostal:='{bso.Contexto.IDCodPostal} {bso.Contexto.IDCodPostalLocal}';");
strFormula.Append($"StringVar Telefone:='{bso.Contexto.IDTelefone}';");
strFormula.Append($"StringVar Fax:='{bso.Contexto.IDFax}';");
strFormula.Append($"StringVar Contribuinte:='{bso.Contexto.IFNIF}';");
strFormula.Append($"StringVar CapitalSocial:='{bso.Contexto.ICCapitalSocial}';");
strFormula.Append($"StringVar Conservatoria:='{bso.Contexto.ICConservatoria}';");
strFormula.Append($"StringVar Matricula:='{bso.Contexto.ICMatricula}';");
strFormula.Append($"StringVar MoedaCapitalSocial:='{bso.Contexto.ICMoedaCapSocial}';");
pso.Mapas.SetFormula("DadosEmpresa", strFormula.ToString());
Browser other questions tagged crystal-reports
You are not signed in. Login or sign up in order to post.