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 barcode 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):

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 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.