I would like some advice on how to link scanned documents to specific records in microsoft access
9 7602
I would like some advice on how to link scanned documents to specific records in microsoft access
1) What kind of documents are they? PDF?
2) When you say link..you mean put the path in a field in the table so you can click it and it will open the document?
3) How do you plan to help your user to get the path in the field?
you can set up a field in a table as hyperlink. A path like C:\myfile.pdf when clicked on will open the PDF as long as you have an acrobat viewer installed. This works for most file types known to MS (as long as you have the supporting software to open them)
J
I want to link a specific value in a field to a PDF file that is named the same as the value in the field. So each entry for that field will bring up a different image. This is my first time posting and I don't have a programming background so I am struggling a little on this one.
I want to link a specific value in a field to a PDF file that is named the same as the value in the field. So each entry for that field will bring up a different image. This is my first time posting and I don't have a programming background so I am struggling a little on this one.
So you don't want to open the PDF, you want to display it in a form or something?
So you don't want to open the PDF, you want to display it in a form or something?
Yes, that's what I'm after displaying the image in the form. Not sure how to go about it though
Yes, that's what I'm after displaying the image in the form. Not sure how to go about it though
Morning,
In access, there is an object on the menu that allows you to insert an image. Without stating the obvious, this is an image control. The image control has a property that can be assigned to a control source.
Initially, the easiest thing to do is select the control off the menu. Create one on your form. A wizard will open up allowing you to select your image file. Select one.
Once you get the image control on the form, you can assign it a field in your underlying table.
Your table should hold a path to your images. Normally this path is either the same directory as the one where you plan to install your database, or a subfolder of it. This is for ease of use.
A text field in your table would then hold that path.
example: C:\MyDatabaseLo cation\Images\I mage1.bmp
Then using the form's On_Current event you assign the image control the value in that text field. -
Private Sub Form_Current()
-
Me.ImageControl.Picture = Me.MyImagePath
-
End Sub
-
J
Yes, that's what I'm after displaying the image in the form. Not sure how to go about it though
your other option, if you don't have images of your pdf documents, is to display them in an unbound OLE object. Below is an example of the types of files you can display in various "frames" -
Private Sub Form_Current()
-
' OleUnbound11 is an unbound Object Control. It's properties allow you to do the following.
-
Dim OLEType As String
-
OLEType = Right(Me.MyOLE, 3)
-
Select Case OLEType
-
Case "pdf"
-
'Me.OLEUnbound8.SourceItem = Me.MyOLE
-
Me.OLEUnbound11.Class = "AcroExch.Document" ' Set class name. if you leave the version out...it defaults to the latest
-
Case "bmp"
-
Me.OLEUnbound11.Class = "Paint.Picture" ' Set class name. if you leave the version out...it defaults to the latest
-
' Adjust control size.
-
'Me.OLEUnbound11.SizeMode = acOLESizeStretch
-
Me.Image0.Picture = Me.MyOLE ' This is an Unbound Image frame..Works differently than an object frame
-
Case "xls"
-
Me.OLEUnbound11.Class = "Excel.Sheet" ' Set class name. if you leave the version out...it defaults to the latest
-
' Specify data to create link to.
-
Me.OLEUnbound11.SourceItem = "R1C1:R5C5" '<---set the range to what you want to see
-
End Select
-
' Specify type of object.
-
Me.OLEUnbound11.OLETypeAllowed = acOLEEither
-
' Specify the verb action
-
Me.OLEUnbound11.Verb = acOLEVerbOpen ' -2 = acOLEVerbOpen
-
' Specify source file.
-
Me.OLEUnbound11.SourceDoc = Me.MyOLE '<----My field
-
' Specify data to create link to.
-
Me.OLEUnbound11.Action = 0 ' 1 = acOLECreateLink, 0 = acOLECreateEmbed
-
' Adjust control size.
-
Me.OLEUnbound11.SizeMode = 1 'acOLESizeClip (0), acOLESizeStretch (1), acOLESizeZoom (3)
-
Me.Dirty = False
-
Me.OLEUnbound11.Requery
-
Me.Refresh
-
End Sub
-
I need to embed a PDF file into my DB. Based on the client's business rules I cannot maintain the document outside of the DB. I cannot therefore link to a given location outside of the database.
The code that I am using, which I have confirmed from several different sites, is as follows:
------- Code used ----------------------------------------
varFile = "C:\PDFForms\Im portedFile.pdf"
On Error GoTo Error_cmdOleAut o_Click
Forms![PDFForm]![DocTypeID] = 13
Forms![PDFForm]![DocSubject] = "My new PDF document"
With Forms![PDFForm]![embeddedDoc]
.Enabled = True
.Locked = False
.OLETypeAllowed = acOLEEmbedded
.Class = "AcroExch.Docum ent"
.SourceDoc = varFile
.Action = acOLECreateEmbe d <-- Error generated here
End With
DoCmd.RunComman d acCmdSaveRecord
----------- Errors received --------------
?cstr(err)
2777
?Err.Descriptio n
The class argument in the CreateObject function of the Visual Basic
procedure you're trying to run is invalid.
---------------------------------------
I receive the listed errors when running this code.
All of the examples listed on all of the searches I have performed so far point me to the use of a .JPG or other image. These work comfortably, but the PDF file gives problems.
I have tried ignoring the .CLASS argument, but it still returns errors.
There are a heap of other discussions, but most tend to recommend saving the document outside of the DB.
Has anyone solved this problem yet?
Can someone please advise me on this one?
btw: I am developing in Access 2007, with SQL Server 2005 as the Back End. The PDFs are created using the Office 2007 PDF/XPS add-in util from MS.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Joe |
last post by:
Anybody ever figure out how to use a web page UI to allow someone to upload
an image from a scanner?
I understand you can scan a document, save it on the hard drive - then via
the web UI you can upload the image somewhere and save it.
What I'm looking for is hitting a SCAN and UPLOAD button on the web page
that will interact with the scanner software, inititate the scan and
automatically upload it.
|
by: Kelly Bowles |
last post by:
I have made a purchase requistion which I have been asked to put password
protected copy of requestors signature.
I am thinking that each signature will have to be scanned as a picture and
linked by some sort of password .
I wanted to tell them just have everybody sign the documents when it comes
out of the printer.
I was shown that it was done on another form. It was not Access and I was
not allowed to take the form apart.
|
by: RAB |
last post by:
I want to scan documents and then store them in an Access database.
What file type would I want to scan the document as? Would I want to
store the document file in the database or a path to the scanned
document file?
Thanks,
RABMissouri
|
by: aolson |
last post by:
First of all i am pretty new to VB .NET as a whole so my answer may be
silly as may my questions.
Here is what i would like to do. I would like to open potentially
multiple word documents for viewing only in a tab control. Each Word
document should open in its own tab. Sometimes there may be only 1
document to open, sometimes there may be 5.
I have gotten my app to create the necessary tabs but I can't get more
than one word document...
|
by: N. Graves |
last post by:
Thanks for reading my request for help!
I have a Bound Object Frame that I have stored a Word Document. When
I double click to view the document it is very small and unreadable.
If I try to zoom it to 100% it reverts right back to a small image.
Tried to click and drag the edge to resize it that didn't work either.
When I open this form up on another PC it work fine....
What am I missing here... it there an option that I missed or a
| |
by: tom.youdan |
last post by:
Hi,
I have created a database that is used to store contact information for
NGO's accross India. It is simple in structure and I want a portion of
the data to be viewable on the Internet.
I want the information to be available for read access only.
What is the potential for using Data Access pages for this task and
what are the key questions/technologies I need to address before I can
|
by: Alan Larsson |
last post by:
Is there a way i can look at the php code that is runnig a site, without any
ind of admin access to the server?
|
by: amlcu2008 |
last post by:
Dear friends i have a problem in storing Scanned documents into an oracle DB 10g i had downloaded the webutility package but dont know how to configure it also if any body can tell me what the data type of the field used in storage.Best Regards
Amr Ashraf
|
by: Deceneu |
last post by:
Hi everyone, this is my first post so please bear with me.
I have the following situation: i have a local report that needs to have two "versions": one for viewing in the report viewer (with all elements: lines, borders, "labels", etc..) and another one for printing - it needs only the information from the dataset.
I need this because i have a lot of "official" documents (medication prescriptions, sick leave etc...) so the user must see the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |