Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0a or 6.0 SP3 - ActiveX error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
VFP 5.0a or 6.0 SP3 - ActiveX error
Divers
Thread ID:
00271328
Message ID:
00271328
Vues:
95
I am using a signature pad ActiveX control which stores the signature in a binary memo field. All works wonderfully in a form, but unfortunately the client actually wants to print it. (silly client) I can't figure a direct way to print the signature itself (not the raw contents of the binary memo field) using the report writer because we don't have an OLE container for unbound controls. Longer story short, I am going to wrapper the report in either a class or prg and instantiate the object there hopefully use it's WriteImage() method to create a BMP which I can then print.

The code below is where I am trying to do this. The CreateObject() passes through OK (although when I look at the object in the Watch window there are no properties listed under it). When the oSig.SigCompressionMode = 0 is issued the following error is displayed:

OLE Error Code: 0x8000ffff: Unexpected failure

Other info:
VFP 6.0sp3 or 5.0a same thing
OCX location c:\windows\sigplus\sigplus.ocx


---------------------------
ReportWrapper.prg
---------------------------
blah...blah...database setup
blah... blah select statement


* create an instance of the SigPlus OCX
oSig = CreateObject("SIGPLUS.SigPlusCtrl.1") && This is the OLEClass of the ActiveX when put on a form

* set the compression mode to equal the one which the binary memo was created with
oSig.SigCompressionMode = 0

* Set the control contents property
lmBinSig = table.SigBinMemoField
oSig.SigString = lmBinSig

* Write out a BMP
oSig.WriteImageFile("C:\Windows\Temp\Sig.bmp")

* do the rest of the steps.....

*---- End of program


Any ideas will be appreciated!

Thanks in advance...

Dave


-------------------------------------------------------------
Dave Kern, VP Software Development
Droege Computing Services
(919)403-9459
dkern@droegecomputing.com
-------------------------------------------------------------
************************************
Dave Kern
VP Software Development
Droege Computing Services, Inc.
Durham, NC 27705
dkern@droegecomputing.com
************************************
Répondre
Fil
Voir

Click here to load this message in the networking platform