Convert attachment to image
I'm trying to convert an attachment to a picture control.
User attaches a PDF to a form.
Somehow get a picture control to display the contents of the PDF.
This is how i'm doing the encoding / decoding:
http://www.sharepointed.com/2011/08/...-visual-basic/
1 Attachment(s)
Re: Convert attachment to image
Here is a simple way to show a pdf on a form. See image attached.
Code Used
Code:
Option Explicit
Private Sub CommandButton1_Click()
With AcroPDF1
.LoadFile "I:\Sid.pdf"
.gotoFirstPage
.setPageMode ("none")
.Visible = True
End With
End Sub
Hope this helps
Sid