Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using vcx class in VFP ole class problem
Message
From
18/07/2002 23:06:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Using vcx class in VFP ole class problem
Miscellaneous
Thread ID:
00680299
Message ID:
00680299
Views:
65
Hi,

I am using a printer VCX that allow to directly print to the printer
and cause my POS drawer to open. It is working fine and so I port it
into my OLE class for compiling into a DLL which does not work, insteads,
it just cause it to print out my open drawer command

Below are my code

SET CLASSLIB TO MyPrinter ADDITIVE
WITH THIS.PrinterDev


* will select the default printer
lPrinterName = SET("PRINTER", 3) <--- this is not working
.cPrinterName = pvPrinterName <---- so I pass the printer name insteads

.cDocName = "Open drawer Command"

IF .oOPen()

.oPrintMem(pvPrinterCmd)
.oClose()

ENDIF


ENDWITH

Please kindly advise me what is wrong with my code. Thank in advance
Best Regards
Virusim
Next
Reply
Map
View

Click here to load this message in the networking platform