Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 21st, 2005, 06:30 AM
sabah sabah is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 36 sabah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 13 sec
Reputation Power: 4
open a pdf file in vb code

hello all
I need to know how to open a pdf file using the vb code in Access, i did it before using word objects by creating wordobj
is there anything similar for the pdf files
thanks in advance

Reply With Quote
  #2  
Old June 21st, 2005, 06:41 AM
avsunil avsunil is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 13 avsunil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 56 m 4 sec
Reputation Power: 0
hii

i think this should do

Dim App, Doc As Object
Set App = CreateObject("AcroExch.App")
Set Doc = CreateObject("AcroExch.AVDoc")

App.Show
Doc.Open "C:\1.pdf", "1.pdf"

Reply With Quote
  #3  
Old June 21st, 2005, 08:27 AM
sabah sabah is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 36 sabah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 13 sec
Reputation Power: 4
i tried ur code, but it is saying that activex cant create the object

Reply With Quote
  #4  
Old June 21st, 2005, 12:47 PM
desireemm desireemm is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 31 desireemm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 m 35 sec
Reputation Power: 5
combo box Search

thats cool

Reply With Quote
  #5  
Old June 29th, 2005, 05:56 AM
sabah sabah is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 36 sabah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 13 sec
Reputation Power: 4
i tried shell execute but it doesnt work either, when i click on the command nothing happens


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

and in the code of the command i used the function like this
lngErr = ShellExecute(0, "OPEN", strFile, "", "", SW_SHOW)

does anyone have an idea how to make it work
thanks a lot in advance

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > open a pdf file in vb code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT