Hi everyone. Lately, we've been working with third-party objects to interact with xmlsig, CR reports, etc., and we're having the same problem when passing a value to a method that requires another object as its constructor, or when passing a boolean value to the method. Does anyone know how we should handle these kinds of interactions? Thanks in advance.
Example with cr reports:
example with xmlsig:
Example with cr reports:
Code Select
!
DEF OBJECT CR_APP,"CrystalRuntime.Application"
LET REPORT=CR_APP'OPENREPORT("C:\temp\customers.rpt") ! // This opens the report and creates the 'Report' object
!
LET EXP=REPORT'EXPORTOPTIONS
LET EXP'DESTINATIONTYPE=1
LET EXP'FORMATTYPE=31 ! pdf
LET EXP'PDFEXPORTALLPAGES=-1
LET EXP'DISKFILENAME$="C:\temp\customers.pdf")
!CR Expects a boolean (true or false) !false no show dialog
REPORT'EXPORT(0) ! this give an error 88 Invalid/unknown property nameexample with xmlsig:
Code Select
DEF OBJECT SIG,"Chilkat.XmlDSigGen.11" ! xmlsigner object
DEF OBJECT CERT,"Chilkat.Cert.11" ! cert object
LET CERT'LOADPFXFILE("C:\temp\cert.p12","pass")
LET C=CERT'LOADPFXFILE("C:\temp\cert.p12","pass") ! also we try this
LET SIG'SETX509CERT(CERT,1) ! this give an error 88 Invalid/unknown property name
LET SIG'SETX509CERT(C,1) !this give an error 88 Invalid/unknown property name ! also we try this