Files to look at:
This example demonstrates how to use the DocumentViewerControl.DocumentSource property to load a document from a stream. The stream is obtained from the assembly resources:
Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName);
Note that the input stream remains open while the control uses the loaded document (PdfViewerControl.DetachStreamOnLoadComplete is false by default). This allows the PDF Viewer to render large PDF files faster.
See also:
Load a PDF Document from a Stream