I have a PDF file in my project that I want to display in web browser with WPF, I've managed to display the byte array, but I think I'm missing a content type or something. The code loads when the window opens.
byte[] file = Properties.Resources.test;
Stream source = new MemoryStream(file);
PDFviewer.NavigateToStream(source);
Aucun commentaire:
Enregistrer un commentaire