ActiveX Control Produces Invalid Metafile

< Back
You are here:
Print

ActiveX Control Produces Invalid Metafile

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 when where 250 is the height and width in pixels of the image to be saved.