Is it possible to code a twain interface with vba?
by QWxleGFuZHJl » Wed, 12 May 2004 06:01:03 GMT
Hi,
1. I am hoping to code a macro with vba (that stands for visual basic editor right?) that will allow me to get documents from a scanner (twain interface) programaticaly. Can vba allow me to do this
2. If not, is it possible to code a c/c++ program that will work "embedded" with infopath. (like a dll that gets executed by infopath
thanks for informatio
Alexandre Harvey-Tremblay.
Re: Is it possible to code a twain interface with vba?
by Mike Walker » Sun, 16 May 2004 08:06:22 GMT
Hi Alexandre
editor right?) that will allow me to get documents from a scanner (twain
interface) programaticaly. Can vba allow me to do this?
vba stands for Visual Basic for Applications edition which is a subset of
the VB language - There are a lot of third party controls that would allow
you to manipulate through a control twain controls www.componentsource.com
sell these type of things
"embedded" with infopath. (like a dll that gets executed by infopath)
Infopath has vb script interfaces I think that is not as rich but could
shell an external application I suppose but i am not quite sure what you are
trying to achieve, I know there is a new sp1 with some enhancements to the
programming interfaces for infopath which is a good thing but not worked
that heavily in infopath and not sure on your complete solution requirements
Rgds
Mike Walker
(Reply via NG)
Similar Threads:
1.vbdot net and Twain interfacing ?
Is anybody familiar with the idea of TWAIN programming. I need to interface
a TV card with my vb/vb.net application.
Any comments are welcome.
FarriJ
2.twain interface
Hey :)
I need to interface a VB.NET desktop app with TWAIN to capture from generic
software devices.
Anyone done this before or have a good tutorial?
--
Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><
3.Twain Interface
Is there a way to access and scan an image using a twain interface. Is
there a way to take that image and cut it into sections and have VB
automatically save it?
4.VBA code to run & wait for cmd line interface application
I want to get started with the shell command to run my process below under 1
VBA subroutine. I've just started looking at methods to wait for the external
application to complete. Any pointers would be very welcome.
Thanks
Here are the broad steps in my current process:
Excel sub1
get list of external app1 filenames from directory1 according to inputbox
transcribe files in list from .txt1 to .txt2 structure
write command file com.txt for external app2 to run with .txt2 files as input
end sub
Command line
MyBatch.bat
run external app2.exe<com.txt (output is .txt3 files)
exit Batch file
Excel sub2
read & process .txt3 files
update worksheet database
end sub
5.Interfacing with Excel from Inside Project VBA code
Okay... not sure if this question rightly belongs here or in the Excel
VBA group...
I have some VBA code in Project where I'm writing some data from my
Project file to an Excel spreadsheet.
so I do the following
Set xlApp = CreateObject("Excel.Application")
If xlApp Is Nothing Then
Set xlApp = New Excel.Application
xlApp.Visible = True
Else
xlApp.Workbooks.Open ("C:\test.xls")
xlApp.Visible = True
End If
Set xlSheet = xlApp.Worksheets("Sheet1")
and then via incrementing a couple of counters, say i and j, I cycle
through my Project using "xlsheet.cells(i, j).Value =" to write the
desired data to my spreadsheet (in this case test.xls).
I then successfully save and close the spreadsheet, e.g...
xlApp.ActiveWorkbook.Save
xlApp.Quit
My primary problem is that the code snippet expects the file "test.xls"
to already exist... but I don't want that.
Initially it will be fine to keep the hard-coded pathname and if it
doesn't exist, create it. Long-term, I'll modify this to have a
user-form to query for a file-name to use for the Excel spreadsheet.
I haven't been able to figure out from any examples, either via links
from here or MSDN or the SDK how to get the file created if it doesn't
already exist. Once I can figure this out, it's easy to set a flag so
that the code will correctly do .Save vs. .SaveAs
Any suggestions?
--jsl
6. Insert VBA Code With VBA Code
7. I am new to VBA and am stuck
8. Is absolute security for Excel VBA code possible?