Insert PDF doc in a table (1 Viewer)

Status
Not open for further replies.

filo65

Registered User.
Local time
Today, 10:58
Joined
Oct 22, 2004
Messages
38
Hi,

in my googling I came accross to the articlel 198466 that should allow me to insert PDFs in a table.
I followed the instructions, but I got an error message
Code:
  ....
  Do While Len(MyFile) <> 0
      [OLEName] = MyFile
      [OLEfFile].Class = "Adobe.Acrobat7.0" ' or "Adobe Acrobat 7.0 Document"
      [OLEfFile].OLETypeAllowed = acOLEEmbedded
      [OLEfFile].SourceDoc = MyFolder & "\" & MyFile
      [OLEfFile].Action = acOLECreateEmbed        '<----------- Error '2777'
   ....
two questions:
1) is there somewhere a list of OLE-Classes and which is the appropriate for PDFs?
2) the example is based on a form linked to a table; I would like to skip the form; is it possible?

Thanks in advance

filippo
 

tokoloshi

Registered User.
Local time
Today, 10:58
Joined
Jul 30, 2008
Messages
63
Hi Filo65

Did you get a response/answer to this puzzle?

I have the identical problem.

T
 

Rabbie

Super Moderator
Local time
Today, 09:58
Joined
Jul 10, 2007
Messages
5,906
It is usually better not to store the the .pdf document in a table but instead store the .pdf file separately and store its address in the table. This reduces the risk of the DB becoming bloated.

This technique is similar to that reccomended in this forum for store images so do a search of the forum for storing .jpg files etc. i know there have been posts on this recently.
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom