Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Handling pictures with DBI and Access

by dmmiller2k (Chaplain)
on Jul 25, 2001 at 17:18 UTC ( [id://99658]=note: print w/replies, xml ) Need Help??


in reply to Handling pictures with DBI and Access

It's possible to manipulate Access as an OLE object using Win32::OLE. This is essentially using it as an OLE automation server. You'll have to familiarize yourself with the MS Access object model, of course.

Not too long ago, I was faced with the task of printing customer invoices, each of which consisted of a variable number of (from five to seven) separate PDF files, which were generated by our system. These had to be collated in a particular order, which depended upon the individual invoice.

My solution was a perl program running on a dedicated NT box, which instantiated an Acrobat COM object (OLE automation server), and called methods on that object to Open, Print, then Close each file in sequence.

In your case (you'll need to investigate Access' object model to be able to do this), you'll want to open your database, then for each image you want to insert, select the relevant row (record) in a result set, instantiate an appropriate object type from the file containing the image, and then update the appropriate column (field) of the result row with that object.

This can all be done from Perl :)

It's rather tedious wading through Microsoft's docs, looking for info about the Access object model; which properties, collections, etc., to use. but it's worth all the trouble when you have a working automated solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99658]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-24 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found