Hey experts,
how it is possible to view a PDF file in a windows form (without opening the acrobat reader)...just view it on my windows form in my vb.net application??
Thanks
Visual Basic.NET
Last Comment
Éric Moreau
8/22/2022 - Mon
Cem Türk
try navigating to path of pdf file wiht webbrowser control.
ceMo89
ASKER
hey cem,
i've tried it already...
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sPath As String = "C:\File.pdf"
WebBrowser1.Navigate(sPath)
End Sub
End Class
but it will open the adobe acrobat reader....any idea??
Éric Moreau
>>but it will open the adobe acrobat reader....any idea??
but it opens into the browser not as an external window.
The PDF is a format that needs to be interpreted in order to be displayed. The browser is using an external process (Acrobat Reader in this case) to display the documents.
Unless you find a control that can render a PDF file by itself, the reader will always be required.
No it opens as an external windows...ok the reader will always be requirded...is theire not any API available or something else??? i will view the pdf file in my application .... for example if i havent installed the acrobat reader...