Simplificar referencias a logos en RDLC y más limpieza de código
This commit is contained in:
@@ -879,7 +879,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
||||
|
||||
|
||||
var logouri = string.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||
System.IO.FileInfo Imagen = new System.IO.FileInfo(string.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
||||
System.IO.FileInfo Imagen = new System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png");
|
||||
string LogoRuta = (Imagen.Exists) ? logouri : "" ;
|
||||
Params.Add(new ReportParameter("LogoPath", LogoRuta));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user