If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Lookup a pdf file from within Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-10-12, 11:18
toukey1 toukey1 is offline
Registered User
 
Join Date: Sep 2001
Posts: 175
Lookup a pdf file from within Access

Using MS Access and a pdf or html or xml file, I want to be able to use the records in Access client table to see if the client name exist in the pdf or html or xml file.

Is that possible?

Regards
Reply With Quote
  #2 (permalink)  
Old 08-14-12, 08:02
SoftwareMatters SoftwareMatters is offline
Registered User
 
Join Date: Mar 2009
Location: Dorset
Posts: 100
I've done something similar with a .html and .xml file before but I'm not sure about .pdf.

I opened the file and read through it a line at a time at searched the string as I went.

From memory it was something like this:

fname = "C;\path\"mttextfile.txt Close 'closes file if stuck open
Open fname For Input Access Read As FreeFile
Do While Not EOF(1)
Line Input #1, textline
If Instr (1, textline, "the") > 0 Then
...do something here....
end if
Loop
Close
__________________
Regards
JD

Bespoke Access Database Design and Development Services
Software Matters - Simple Solutions That Work!
Reply With Quote
  #3 (permalink)  
Old 08-14-12, 11:18
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 10,508
implicitly you can do the same sort of thing with a PDF providing that the information you want is correctly identified in the PDF stream.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On