Created
August 10, 2023 22:55
-
-
Save alandalegend/c128fb9a02b93b4fd5922ebf8e444ae4 to your computer and use it in GitHub Desktop.
XAF Visualizar un PDF en DetailView
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Esta propiedad permite visualizar el PDF en modo lectura, presentando el PDF y poder navegar dentro de sus páginas. | |
[VisibleInListView(false), VisibleInDetailView(true)] | |
[XafDisplayName("Visor PDF Original")] | |
public byte[] PdfDataOriginal | |
{ | |
get | |
{ | |
if (ArchivoOriginal == null) return new byte[0]; | |
using (var ms = new MemoryStream()) | |
{ | |
ArchivoOriginal.SaveToStream(ms); | |
return ms.ToArray(); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment