User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 426,463 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,237 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 4374 | Replies: 2
Reply
Join Date: Aug 2007
Posts: 2
Reputation: yang1302 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
yang1302 yang1302 is offline Offline
Newbie Poster

code for open PDF

  #1  
Aug 23rd, 2007
hi could u give me the code to open PDF file, or open a folder ?Thax
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 2
Reputation: yang1302 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
yang1302 yang1302 is offline Offline
Newbie Poster

Re: code for open PDF

  #2  
Aug 27th, 2007
basicly i have a PDF file in the special location, now I want to create a button to open it on MS Access. So if anyone have any idea so pls help ! even open the folder when the PDF is also ok with me! thank
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: rockygoodness is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rockygoodness rockygoodness is offline Offline
Newbie Poster

Re: code for open PDF

  #3  
Nov 14th, 2007
Originally Posted by yang1302 View Post
basicly i have a PDF file in the special location, now I want to create a button to open it on MS Access. So if anyone have any idea so pls help ! even open the folder when the PDF is also ok with me! thank


Hi, I'm not sure if you or anyone else is still looking for an answer to this. I came across your post trying to find an answer to the same question. I managed to figure a solution out, hopefully it helps. First I created an OLE with my pdf using the unbound object frame tool wizard, followed the directions and browsed my file, then set its visibility property to false in the properties box so you can't see it on my form. Then I created a command button (not using the wizard) and in code builder for my form the button is on used the following:

Private Sub cmdButtonName_Click()

OLEName.Action = acOLEActivate

End Sub

Where "cmdButtonName" is the name of my button, and "OLEName" is the name of my unbound OLE object.

All I have to do to open the pdf is click the command button on the form. Hope this helps!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 3:43 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC