Answered by:
pdf preview in form

Question
-
is it possible to show a preview of a pdf in a form ?
Monday, July 2, 2018 7:40 AM
Answers
-
you actually can use the webbrowser-control to display PDFs.
some things I experienced:
- the webbrowser-control does NOT render der PDF directly, but uses the pdf-viewer set as system standard.
- in some pdf-viewers you can use settings to control whether a pdf shall be rendered inside the browser (still by the default pdf-viewer) or in the full blown program.
- unless you have a licence to distribute a pdf-viewer, the webbrowser approach gives you an advantage over committing to one specific pdf-viewer. ('every' computer has some sort of pdf-viewer, but not necessarily from Adobe)
- Marked as answer by tekoko10 Thursday, July 5, 2018 1:04 AM
Wednesday, July 4, 2018 10:06 PM
All replies
-
Hi Tekoko
Isnt the preview option enough?
- You can use a macro for that or vba code like:
DoCmd.OpenReport "My Report", acViewPreview, "", "", acNormal
Cheers // Peter Forss Stockholm
Monday, July 2, 2018 2:10 PM -
no , i want to see the pdf in the form. the webbrowsercontrol is working for files on the inertnet.
but if i want to use it for pdf in my computer , the webbrowser control asks to open the file and shows it then in a browsser. so i can not see in on the form
Monday, July 2, 2018 3:17 PM -
Hi again
How to display PDF on Form
Found this: https://www.youtube.com/watch?v=UltWxgzgXPk
Cheers // Peter Forss Stockholm
Monday, July 2, 2018 5:19 PM -
Hi Tekoko
Did my tip help you?
Cheers // Peter Forss Stockholm
Wednesday, July 4, 2018 6:52 PM -
you actually can use the webbrowser-control to display PDFs.
some things I experienced:
- the webbrowser-control does NOT render der PDF directly, but uses the pdf-viewer set as system standard.
- in some pdf-viewers you can use settings to control whether a pdf shall be rendered inside the browser (still by the default pdf-viewer) or in the full blown program.
- unless you have a licence to distribute a pdf-viewer, the webbrowser approach gives you an advantage over committing to one specific pdf-viewer. ('every' computer has some sort of pdf-viewer, but not necessarily from Adobe)
- Marked as answer by tekoko10 Thursday, July 5, 2018 1:04 AM
Wednesday, July 4, 2018 10:06 PM