Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2013
    Posts
    16

    PDF File content display on Access 2013 form

    I have an table with attachment field in which PDF files are attached.


    I need Access 2013 form to display PDF file content instead of PDF icon
    While record changed should display PDF content for each record navigated

  2. #2
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Use a "WebBrowser" control.

  3. #3
    Join Date
    Jul 2013
    Posts
    16
    how can I assign data from attached field to web browser control

  4. #4
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Quote Originally Posted by saleemsadique View Post
    how can I assign data from attached field to web browser control
    You can either set it in the Data tab of the WebBrowser object properties and clicking on the ellipsis next to "Control Source", or you can set it programmatically through VBA code.

    Code:
    Private Sub Form_Load()
         Me.WebBrowserName.ControlSource = "c:\root\subfolder\filename.pdf"
         Me.Refresh
    End Sub

  5. #5
    Join Date
    Jul 2013
    Posts
    16
    I wont be pulling pdf files from drive. I have already attached files in a table field. when I run my form my jpg file shows the pictures where as pdf file contents not displayed it show PDF icon

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Are you aware Access has a 2GB size limit? Files embedded in attachment field can use up that limit fast.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Quote Originally Posted by saleemsadique View Post
    I wont be pulling pdf files from drive. I have already attached files in a table field. when I run my form my jpg file shows the pictures where as pdf file contents not displayed it show PDF icon
    Access doesn't natively support the displaying of PDF files that's why it must be displayed in the web browser. You can export the Attached file as a PDF file then display it in the web browser but that would require some bit of coding and much more information about your database.

  8. #8
    Join Date
    Jul 2013
    Posts
    16
    Thanks to all, I did the same...saved attachments to a folder and pulled from there....

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Display HHMMSS in Access 2013
    By didiomm in forum Access
    Replies: 3
    Last Post: 12-04-2013, 09:53 AM
  2. Access 2013 display of Form View
    By iball1113 in forum Access
    Replies: 9
    Last Post: 11-08-2013, 03:30 PM
  3. Access 2013 Display Issue?
    By Alan S in forum Access
    Replies: 2
    Last Post: 05-26-2013, 03:21 PM
  4. XML file opens in excel 2010/2013 correctly but not in Access
    By flebber in forum Import/Export Data
    Replies: 1
    Last Post: 05-21-2013, 09:23 PM
  5. Display web content on a form.
    By ser01 in forum Forms
    Replies: 3
    Last Post: 05-30-2011, 10:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums