Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Displaying pdf file in vb form
Author:
NileshBEIT
E-mail:
Click to e-mail author
Submitted:
1/24/2007
Version:
VB6
Compatibility:
VB6
Category:
Controls
Views:
14955
Displays pdf using webbrowser control. Requires acrobat reader preinstalled.
Declarations:
Add project-->reference to Microsoft internet control c:\windows\system32\iframe.oca, if not found browse Add Project-->reference to Microsoft internet control c:\windows\system32\SHDOCVW.dll, if not found browse Add Project-->componet Microsoft internet control if not found browse Drop web browser control on form. Adjust its size
Code:
dim strFileName as string strFileName=txtFileName.text ' e.g. c:\ temp.pdf (.pdf extension is very imp.) webbrowser1.navigate strFileName
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement