/// <summary> /// Metodo que muestra muestra el logo del reporte /// </summary> private void CrearLogo() { if (MostrarLogo) { var ruta = new Uri(string.Format("/SIAP;component/Imagenes/ReporteLogo.png"), UriKind.Relative); StreamResourceInfo streamLogo = System.Windows.Application.GetResourceStream(ruta); Image logoSK = null; if (streamLogo != null) { Stream imagenStream = streamLogo.Stream; logoSK = Image.FromStream(imagenStream); } if (logoSK != null) { Clipboard.Clear(); Clipboard.SetImage(logoSK); if (Clipboard.ContainsImage()) { hoja.Paste(); var p = (Pictures)hoja.Pictures(Missing.Value); var pic = (Picture)p.Item(p.Count); pic.Height = 30; pic.Width = 80; pic.Top = 15; pic.Left = rango.Left; } streamLogo = null; logoSK.Dispose(); logoSK = null; } } }