ActiveX Control Produces Run-Time Error '-2147417848'
when Using SaveEnhWMF Method on Windows XP with Service Pack 2 Installed
When attempting to save an enhanced Windows metafile to disk in Windows
XP
with SP2 using the SaveEnhWMF method in any IDAutomation ActiveX
barcode controls the following error will occur:
Run-time error
'-214741848 (80010108)':
Automation error
The object invoked has disconnected from its clients
Option 1: Use the "SaveBarcode" method of the control
Option 2: The
issue is due in part to a difference in the way the metafile is being
initialized. The pixel width/height of the metafile can be
initialized before saving the image. To do this, call the SetPixelsXY
function before calling SaveEnhWMF. For example, SetPixelsXY 250,
250, where
250 is the height and width in pixels of the image that will be saved.
Option 3: Use the .NET
Windows Barcode Forms Controls and/or
.NET
Barcode Image Generators.
|
Related
Documents
and Keywords:
|
See also:
Copyright © 2002-2008,
IDAutomation.com, Inc. All Rights Reserved. Legal
Notices.
|
Over 70% of Fortune 100 companies use
IDAutomation products to automate their businesses.
|
|