Solved

Scan to PDF, Access VBA or VB6

Posted on 2010-08-19
8
2,723 Views
Last Modified: 2013-12-27
Since my users find scanner software to be too complicated, I would like to design a simple application to scan documents to .pdf files. One of the primary reasons I need to do this is so I can control where the document goes based on the user who is using the scanner.

I've experimented a little with some different code but I haven't found any optimal solution. It appears that my scanner only makes .bmp files if I use WIA in VBA. How can I convert the bmp to a pdf? Or do I need to convert the bmp to a jpg or tiff and then to a pdf?

I don't need the text to be searchable but it would be nice if you could highlight and select text in the document (certainly not required). I'm not going to be saving the document into the database. I'm just using Access because it's the coding environment I'm familiar with and my users are also familiar with Access.

Also, I do expect to use a scanner with an ADF so we can scan in multi-page documents.
0
Comment
Question by:HKComputer
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 16

Expert Comment

by:Sheils
ID: 33479385
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33481477
0
 
LVL 4

Author Comment

by:HKComputer
ID: 33482103
boag2000,

Do you know where I can find any documentating and examples of automating Paperport using VBA? Can I keep the users completely out of the Paperport interface?
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33482181
I have seen this done but it is akin to writing your own Scanning program, which might not be worth the trouble...
But if you're feelin' froggy, here is some reading:
http://www.microsoft.com/whdc/device/stillimage/WIA-arch.mspx
http://www.dynamsoft.com/Products/WebTWAIN_FAQ.aspx#What%20is%20Dynamic%20Web%20TWAIN


Most Scanners (and scanning Software) have options that will literally give you the choices:
Scan to Fax
Scan to File
Scan to PDF
Scan to OCR
Scan to Printer

In your case, the user need only select "Scan to PDF".

I mean if one software product is to "Complicated", then try another one.
Most programs will have some sort of trial version so that you can test it.

You could build you own, ...but why reinvent the wheel, if a $49 program does the same thing?

;-)

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 33482213
Clarification:

<I have seen this done, but in terms of programming, some are akin to writing your own Scanning program, which might not be worth the trouble...

Some SDK's/API's *are* simple, and will give you something like this:

Scan("DeviceName","Format","OutputFileName")
So here, this would be a function with three Arguments.
So in an actual App, the code would look something like this:
    Scan("ScanJet320","PDF","c:\YourFolder\YourPDF.PDF")

So check out the second link I posted, or Google for more.

;-)

Jeff

0
 
LVL 50

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 33483437
Go and check out csxImage:

http://www.chestysoft.com/ximage/default.asp

It is not free but it will save you hours and hours of trouble because scanners and drivers often do not comply to standards. Also, support is excellent.
We used it for a commercial document store application which ran for years with zero issues.

/gustav
0
 
LVL 4

Author Closing Comment

by:HKComputer
ID: 33713723
Looks like csxImage is the only "real" solution posted here. Thanks
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 33713996
You are welcome!

Also, the support from Simon Chester of Chestysoft is excellent. Well worth the money you'll have to pay for a license.

/gustav
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question