Un saludp a todos los miembros y visitantes al Foro
Estoy tratando de imprimir el código QR que genero en un control de la ActiveX de HomeBarcode
Esta ActiveX tiene la propiedad "DataToEncode" para cargar el contenido del codigo QR y funciona a la perfeccion
Código COBOL:
MOVE "Texto del codigo" TO "DataToEncode" OF QRCodeCtrl1
Esta ActiveX tiene el Método "SaveToImageFile" y de acuerdo al manual se debe usar asi:
Cita:
|
❞
Syntax
object.SaveToImageFile(cx, cy, sFileName, [lRes,] [dm])
Parameters
cx A double that defines the barcode picture width.
cy A double that defines the barcode picture height.
sFileName A string expression defining the file name.
lRes Optional (default 0). A long value that sets the picture resolution.
dm Optional (default qcPixels). This value defines the units that should be used to specify cx and cy. See remarks.
Return Value
No return value.
|
Alli mismo dan ejemplo de como usarla
Cita:
|
❞
Example '1.
'Save the image to a file of the JPEG format. The size of the image will be 100x100 pixels with the resolution of 96 dpi.
Call QRCodeCtrl1.SaveToImageFile(100, 100, "c:\qrcode.gif")
|
Yo la estoy usando asi
Código COBOL:
01 PARAME PIC X(80) VALUE "SaveToImageFile(100, 100, ""c:\qrcode.bmp"")".
Call "QRCodeCtrl1" USING PARAME
He tratado de muchas formas compilar el programa pero me saca el error
Código:
V-QRIMPR.obj : error LNK2001: unresolved external symbol _QRCODECTRL1
se que QRCODECTRL1 es el nombre del control que tengo definida en el form
Por ello no entiendo cono debo usar el método y como se encadenar el control con la ActiveX
De antemano muchas gracias por su ayuda