![]() Now it's time to invoke the VBA development environment in Word 2016 (it works also in Word 2013).ġ. I wasn't able to switch my Windows 10 account the English, although this has been the default language before I installed Office 2016 with multiple languages. Multi page scans are dicussed here – maybe it's helpful for further reading.īTW: The dialog boxes shown above are still in German, because I use a German Windows 10 – and it seems there are conflicts between Windows language packs and Office 2016 language packs. Not supported are multi page scans, because I don't have such a device – and it seems, that WIA doesn't support this feature. Using the scan button invokes a scan, stores the scan into a temporary image file (jpeg) and inserts the scan into word at the current text cursor position. Within this dialog box we can select scan options and do a preview scan. Selecting a device and confiming OK button invokes the WIA dialog box to access a scanner. If several WIA sources are present, Windows asks to select a WIA device (iPad, Digicam, and Scanner for instance). The VBA macro introduced here enables Word 2013 or Word 2016 to initiate a scan via a push button using the WIA interface. There is a mdlTwain library available at mdlTwain.zip and within my German blog post is a comment with a code snippet to access a TWAIN scan interface. The TWAIN interface supported from several scanner vendors isn't suitable for our purposes. But this requires that the WIA interface is supported in Windows – which means: The scanner vendor needs to provide compatible WIA drivers for the used Windows version. Microsoft Windows Image Acquisition Library v2.0 provides a class library useable from VBA. Microsoft Windows Image Acquisition Library v2.0 – provided in Windows 7, 8, 8.1 and 10 – enable us to access a scanner from VBA. VBA is object oriented, so it's possible to instantiate objects from class libraries, and use methods and properties from these objects to access a scanner from applications like Word. VBA stands for Visual Basic for Application, a Basic oriented programming language, available in Microsoft Office to write macros. Within this blog post I'm using a few technical terms. ![]() So I haven't polished the macro solution too much. First of all, I need to confess, it hat been a while, since I wrote my last VBA book (Microsoft Word 97, Developer's Kit – The technical reference, Microsoft Press Germany).
0 Comments
Leave a Reply. |