Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Embed A Document Viewer in Access 2010 Form

Status
Not open for further replies.

technobia

ISP
Sep 8, 2005
53
US
I want to dynamically view documents with various file types: PDF, DOCX, XLSX, JPG etc in an Access 2010 form and I have absolutely no idea where to begin.[ponder] I would at the very least like to be able to view PDF files.

Some posts I have seen discuss using the WebControl and I have played around with that but all I can get it to view is a directory of files not the actual file itself.

Any help will be most appreciated.[smile]
Jody
 
This code will open the filename you pass in it's default application. It would be easy enough to pick the file from a Common Dialog Control and pass the filename to it:
Code:
Public Sub OpenDocument(strDocPath As String)

    Dim G As Long
    G = Shell("RUNDLL32.EXE URL.DLL,FileProtocolHandler " & strDocPath, vbNormalFocus)

End Sub

Beir bua agus beannacht!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top