Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2007

Tip: Looking for answers? Try searching our database.

scanner twain

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Theta - 20 Feb 2007 12:47 GMT
Hi all,
my problem is acquire an image from a twain device when the user click
on a button located on a sheet. Is there a way to do it, possibly
without installing activex ?

Thank you.
Bye
Theta
Joel - 20 Feb 2007 14:42 GMT
You have to add a form to your worksheet and the write a macro that does the
function

I would start by going to fromat menu and selecting learn macro.  then
manually get the data from the twain device.   Then stop record the macro.

then test the macro and see if it works.

the next step is to add a button that automatically calls the macro.

1) go to view window - toolbars and select form Menu.
2) Select the control button and add it to your worksheet
3) right click the conjtrol button and select the macro you want to run
4) right click on the button and select edit text to change the text on the
button.

> Hi all,
> my problem is acquire an image from a twain device when the user click
[quoted text clipped - 4 lines]
> Bye
> Theta
NickHK - 26 Feb 2007 08:47 GMT
This brings up the dialog for the user to select from.

Const FromScannerorCamera As Long = 1764
Application.CommandBars.FindControl(, FromScannerorCamera).Execute

Not sure what you mean by "without installing activex", but if the button is
from the Controls Toolbox, make sure you set its .TakeFocusOnClick property
to False.

NickHK

> Hi all,
> my problem is acquire an image from a twain device when the user click
[quoted text clipped - 4 lines]
> Bye
> Theta
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.