jotica
25 de agosto de 2024, 19:03
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
MOVE "Texto del codigo" TO "DataToEncode" OF QRCodeCtrl1
Esta ActiveX tiene el Método "SaveToImageFile" y de acuerdo al manual se debe usar asi:
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
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
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
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
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
MOVE "Texto del codigo" TO "DataToEncode" OF QRCodeCtrl1
Esta ActiveX tiene el Método "SaveToImageFile" y de acuerdo al manual se debe usar asi:
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
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
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
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