Home:  Support:  Search:

ActiveX Barcode Control Produces Invalid Metafile when Initially Called Using Windows 2000 with Service Pack 3

Problem:

Calling the SaveEnhWMF method of the IDAutomation Barcode ActiveX Control in Windows 2000 with Service Pack 3 can create an invalid and completely black image when the metafile is generated for the first time, due in part to a difference in the way the metafile is being initialized.
 
Work-Around Solution(s):

Download the latest version of the product. To obtain this, you may have to update your support subscription.

This issue can also be solved with an older version of this product. The pixel width and height of the metafile can be initialized before saving the image. To do this, call the SetPixelsXY function before calling SaveEnhWMF. Here is an example:
SetPixelsXY 250, 250
where 250 is the height and width in pixels of the image to be saved.

Related Documents:
 

© Copyright 2002-2009 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

Over 70% of Fortune 100 companies use IDAutomation products to automate their businesses.