title: Display PDF in Report
body: <p>I want to display dynamically .pdf files like pictures in a report, it should look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/r5Xgi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r5Xgi.png" alt="enter image description here"></a></p>
  
  <p>i already tried with webbrowser, but then it doesn't show up in the preview or when i print the report out...</p>
  
  <p>I also tried a ole unbound object, also no success, here the code i had in the <code>Report_Load</code> event:</p>
  
  <pre><code>Dim vPath As String
  
  vPath = GetNewestDocument(Me!artNr)
  'Returns path for pdf file, about:blank if there is no file.
  If vPath = "about:blank" Then
          Me!PDFBrowser.visible = True
          Me.PDFBrowser.SourceDoc = vbNullString
  Else
          With Me.PDFBrowser
          .OLETypeAllowed = acOLELinked
          .SourceDoc = vPath
          .SizeMode = acOLESizeStretch
          End With
  End If
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>With "I want to display dynamically ..." i meant to change dynamically pdf's in the Report.</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <p>I just found out that the type of the OLEunbound object is embedded, but i think this one should be linked as i read in other Forums: <a href="https://i.stack.imgur.com/qkklQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qkklQ.png" alt="enter image description here"></a></p>
  
  <p>When i try to Change it gives error: "This property can not be changed because it is read-only"</p>