Sabtu, 11 Agustus 2012

Re: [MS_AccessPros] Re: Query clients against pdf doc

 

Hi Clive,

You've reinforced my point in that either a third party app needs be factored in to extract data or one could use the code example I shared that will open a selected pdf file in the default pdf reader. Once open, a manual search can be performed.

Kind Regards,
Jeff

----- Original Message -----

Hi Jeff,

If you look at a .pdf using Notepad you will be able
to see what a mess it is inside. It was designed to
be that way to prevent it from being changed.

Your only hope is to open the .pdf file then copy and
paste the content that you want into a textfile.

Then providing the text file is in a suitable format,
you may be able to import the text file into your Db.

But, try Googling, Extracting data from a pdf,
and you will find lots of information on how you may
be able to extract data by buying software.
You can get trial versions of most packages but the
results obtainable will depend on the layout of the
data in the .pdf file.

A reasonably priced one, $39, is at:
http://www.a-pdf.com/data-extractor/index.htm
and offers a trial download too.

Regards, Clive.

--- In MS_Access_Professionals@yahoogroups.com , Jeff Jones <jpjones23@...> wrote:
>
> OK, one more thing. After some research, I can open a pdf file but haven't gotten a way to search its contents. Here's the code.
>
> Function OpenPDF_File() As Boolean
> Dim strInput As String
>
> On Error GoTo Error_OpenPDF_File
> strInput = "C:\Users\JPJones\Documents\My_Bill_20120217.pdf" 'InputBox("Enter a valid address")
> Application.FollowHyperlink strInput, , True
> OpenPDF_File = True
>
> Exit_OpenPDF_File:
> Exit Function
>
> Error_OpenPDF_File:
> MsgBox Err & ": " & Err.Description
> OpenPDF_File = False
> Resume Exit_OpenPDF_File
> End Function
>
> Sub CallOpenPDF_File()
> If OpenPDF_File = True Then
> MsgBox "Successfully followed hyperlink."
> Else
> MsgBox "Could not follow hyperlink."
> End If
> End Sub
>
>
> ----- Original Message -----
>
>
>
>
>
> Hi Toukey and Bill, et al or anyone else,
>
> I've uploaded a zip file to the Assistance Needed folder ( http://tech.groups.yahoo.com/group/MS_Access_Professionals/files/2_AssistanceNeeded/ ). The name of the file is: TestOpenSearchFile.zip.
>
> Within the file are 4 files. Their names and descriptions follow, although I believe that the file names are self explanatory.
>
> OpenTextFile.accdb <- test database
> TestFileHTML.html <- Test HTML file
> TestOpenReadFile_ReadMe.txt <- Requested ReadMe file with a few pithy pontifications within.
> TestTextFile.txt <- Test Text file
>
> If the zip file is somewhere down a bunch of pages in the folder, my Yahoo User Name is pdcaregiver. I already had the ID when I joined because I built and sorta maintain a web site ( http://www.pdcaregiver.org/ ) for people who are caregivers of people with Parkinson's although there is a lot of generalized caregiver information that anyone can use.
>
> I built the database because it was easier than trying to explain what is needed and besides I didn't remember what to do until I put the thing together. I never try to remember everything as long as I can remember how to or where to look for what I need. After 30 some years cutting code, my head is getting full. LOL
>
> Jeff
> ----- Original Message -----
>
> Hi Jeff,
>
> Thanks for your response. I too would appreciate an example of how this can work.
>
> Also to further answer your questions, the pdf /xml / html file(s) would be downloaded from the internet onto the user's machine. The access database in this instance is not split.
>
> Regards
> Toukey
>
> --- In MS_Access_Professionals@yahoogroups.com , Jeff Jones <jpjones23@> wrote:
> >
> > Hi Bill,
> >
> > First, you're welcome for the pdf reader info.
> >
> > Maybe I used instr instead of find. I'll look for an example of how I did this sort of thing in the past.
> >
> > Jeff
> >
> > ----- Original Message -----
> >
> >
> >
> >
> >
> > Jeff
> >
> > Thanks for the information on the PDF reader. Do you have any idea how using a Find in any program can be read by Access?
> >
> > Bill
> >
> > --- In MS_Access_Professionals@yahoogroups.com , Jeff Jones <jpjones23@> wrote:
> > >
> > > Toukey,
> > >
> > > First, the message below doesn't specify where the pdf, HTML, or XML files are. My suggestion is based on the assumption that each type of file is on a local drive or LAN and not on some server somewhere in the world.
> > >
> > > Both the HTML and XML files can be opened in Notepad or WordPad depending on their size. Once opened, the code ought to be able to do a "find".
> > >
> > > The pdf file is more problematic in that just opening one in Notepad or WordPad will not result in a text-based representation of the contents so a "find" will not work with a pdf file. You will need a third party pdf reader. I have been using FoxIt Reader for pdf files as it has a smaller footprint than Adobe's and it does have some command line capabilities. I am in no way affiliated with FoxIt and all I'm doing is sharing what I've been using. Doing an Internet search will easily let you read about or download FoxIt. I am using the free version.
> > >
> > > A separate consideration, beyond the physical file locations, has to do with the number of users and their geographic dispersion as well as the Access configuration. Is the database split with separate front and back ends?
> > >
> > > These are the immediate things that come to mind. I hope you find a solution.
> > >
> > > Kind regards,
> > > Jeff
> > >
> > > ----- Original Message -----
> > >
> > >
> > >
> > >
> > >
> > > Toukey
> > >
> > > PDF & HTLM probably not without a third-party program if one exists.
> > >
> > > XML maybe. I haven't used XML wish Access yet. Someone else might have an answer for you.
> > >
> > > Regards,
> > > Bill Mosca, Founder - MS_Access_Professionals
> > > http://www.thatlldoit.com
> > > Microsoft Office Access MVP
> > > https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
> > > My nothing-to-do-with-Access blog
> > > http://wrmosca.wordpress.com
> > >
> > > --- In MS_Access_Professionals@yahoogroups.com , toukey1 <no_reply@> wrote:
> > > >
> > > > Hi,
> > > >
> > > > Is it possible in Access to check the names in a client table against names in a pdf, HTML or XML document? If so, how does one approach this?
> > > >
> > > > Regards
> > > > Toukey
> > > >
> > >
> > >
> > >
> > >
> > > --
> > >
> > >
> > > Jeffrey Park Jones
> > > Excel, Access, Word, Office Expert
> > > Excel and Access, LLC®
> > > Christopher@
> > > http://ExcelAndAccess.Com
> > > Toll Free 877-392-3539
> > > Direct Line 714-262-6893
> > >
> > > 919-671-9870
> > > 5109 Deer Lake Trail
> > > Wake Forest, NC 27587
> > > jpjones23@
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
> >
> > --
> >
> >
> > Jeffrey Park Jones
> > Excel, Access, Word, Office Expert
> > Excel and Access, LLC®
> > Christopher@
> > http://ExcelAndAccess.Com
> > Toll Free 877-392-3539
> > Direct Line 714-262-6893
> >
> > 919-671-9870
> > 5109 Deer Lake Trail
> > Wake Forest, NC 27587
> > jpjones23@
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
> --
>
> Jeffrey Park Jones
> Excel, Access, Word, Office Expert
> Excel and Access, LLC®
> Christopher@...
> http://ExcelAndAccess.Com
> Toll Free 877-392-3539
> Direct Line 714-262-6893
>
> 919-671-9870
> 5109 Deer Lake Trail
> Wake Forest, NC 27587
> jpjones23@...
>
> [Non-text portions of this message have been removed]
>
>
>
>
> --
>
>
> Jeffrey Park Jones
> Excel, Access, Word, Office Expert
> Excel and Access, LLC®
> Christopher@...
> http://ExcelAndAccess.Com
> Toll Free 877-392-3539
> Direct Line 714-262-6893
>
> 919-671-9870
> 5109 Deer Lake Trail
> Wake Forest, NC 27587
> jpjones23@...
>
>
>
>
> [Non-text portions of this message have been removed]
>

--

Jeffrey Park Jones
Excel, Access, Word, Office Expert
Excel and Access, LLC®
Christopher@ExcelAndAccess.Com
http://ExcelAndAccess.Com
Toll Free 877-392-3539
Direct Line 714-262-6893

919-671-9870
5109 Deer Lake Trail
Wake Forest, NC 27587
jpjones23@centurylink.net

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar