Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / May 2005



Tip: Looking for answers? Try searching our database.

Open an Acrobat File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fati - 25 May 2005 14:12 GMT
Please,
How can I Open an Acrobat file in VB application.

thank you.
Karl E. Peterson - 25 May 2005 18:08 GMT
> How can I Open an Acrobat file in VB application.

If you truly mean "in" there are very few good options.  The only one that comes to
mind would be to use a webbrowerser control and .naviagate to it, hoping the plug-in
is installed.

If you really mean "from", then you're in far better shape!

  ' Download full example from:
  '   http://vb.mvps.org/samples/HyperJmp

  Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

  Public Function OpenDoc(ByVal DocFile As String) As Long
     ' Actually uses the default verb if available, and "open" otherwise
     OpenDoc = ShellExecute(0&, vbNullString, DocFile, vbNullString, vbNullString,
vbNormalFocus)
  End Function

Later...   Karl
Signature

Working Without a .NET?
http://classicvb.org/petition

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.