The coding syntax throughout this chapter has been Java* based. This syntax is compatible with Java and C# coding environments. However, the syntax is slightly different in other coding environments.
For your convenience, this section contains lookup tables with proper coding syntax for the Corda® Embedder API in the following programming environments:
Most of the time, Active Server Pages (ASP) are scripted using VBScript, whose syntax is somewhat different than the standard Java coding syntax. ASP.NET applications also may be based on VBScript. The tables below illustrate proper VBScript syntax for the complete Corda Embedder API.
Note: When scripting using JScript instead of VBScript, ignore this section and use standard Java coding syntax.
|
Attribute |
ASP Syntax |
|
myImage.appendServerInfoSlash = false | |
|
| |
|
myImage.bgColor = "FFFFFF" | |
|
myImage.clusterMonitorAddress = "localhost/clusterMonitor" | |
|
myImage.externalServerAddress = "is.mycompany.com:2001" | |
|
myImage.extraCTSCommands = commandstring | |
|
myImage.extraHTMLAttributes = attributes | |
|
myImage.fallback = {"NONE" | "LOOSE" | "STRICT"} | |
|
myImage.height = 400 | |
|
myImage.htmlHeight = "75%" | |
|
myImage.htmlWidth = "100%" | |
|
myImage.imageTemplate = "image_template\bar.itxml" | |
|
myImage.internalCommPortAddress = "10.0.0.1:2002" | |
|
myImage.isPostRequest = true | |
|
myImage.language = CordaEmbedder.EN | |
|
makeFullRequest (deprecated) |
myImage.makeFullRequest = true |
|
myImage.maxRequestLength = 2000 | |
|
myImage.outputType = { "AUTO"|"EMF"|"EPS"|"FLASH"|"JPEG"|"PDF"|"PNG"|"SVG*"|"TABLE"|"TEXTDESC"|"TIFF"|"URL" } | |
|
myImage.password = "password" | |
|
myImage.pcScript = pcscript | |
|
myImage.returnDescriptiveLink = true | |
|
myImage.svgTemplate = "svg_templates/grow.svg" | |
|
myImage.useCache = true | |
|
myImage.useLogData = true | |
|
myImage.userAgent = userAgentString | |
|
myImage.width = 600 |
|
Method |
ASP Syntax |
|
myImage.addHTMLTable graph, title | |
|
myImage.addITXML ITXMLString | |
|
myImage.addObjectParamTag name, value | |
|
| |
|
myImage.getBytes() | |
|
| |
|
myImage.getCordaEmbedderVersion() | |
|
myImage.getEmbeddingHTML() | |
|
myImage.loadCommandFile commandfile, encoding | |
|
myImage.loadData graphname, datasrc, method, HTMLTable, encoding | |
|
myImage.loadDoc name | |
|
loadFromCordaServer (deprecated) |
myImage.loadFromCordaServer imagefile |
|
myImage.loadITXML source | |
|
myImage.loadMapData mapname, layer, datasrc, HTMLTable, encoding | |
|
myImage.lockPDF username, ownername, options, enc | |
|
myImage.promptToSave filename | |
|
myImage.reset | |
|
myImage.saveToAppServer path, name | |
|
myImage.saveToCordaServer name | |
|
myImage.setCookieHeader cookieHeader | |
|
myImage.setData graphname, data | |
|
myImage.setDBQuery graphname, "", database, user, password, query | |
|
myImage.setDoc name, basepath, encoding | |
|
myImage.setDocRoot docRootPath | |
|
| |
|
myImage.setMapData mapname, layer, data | |
|
myImage.setMapDBQuery mapname, layer, "", database, user, password, query | |
|
NONE | |
|
myImage.setOrientation {"landscape" | "portrait"} | |
|
myImage.setOutputName filename | |
|
myImage.setPageMargin pagemargin | |
|
myImage.setPageSize pagesize | |
|
| |
|
NONE | |
|
| |
|
| |
|
| |
|
myImage.useCache = true | false |
The tables below illustrate proper Java Tag library syntax for the complete Corda Embedder API.
|
Attribute |
Java Tag Library Syntax |
|
<ctl:Corda appendServerInfoSlash="false" /> | |
|
| |
|
<ctl:Corda bgColor="FFFFFF" /> | |
|
<ctl:Corda clusterMonitorAddress="localhost/clusterMonitor" /> | |
|
<ctl:Corda externalServerAddress="is.mycompany.com:2001" /> | |
|
<ctl:Corda extraCTSCommands="commandstring" /> | |
|
<ctl:Corda extraHTMLAttributes="attributes" /> | |
|
<ctl:Corda fallback="NONE | LOOSE | STRICT" /> | |
|
<ctl:Corda height="400" /> | |
|
<ctl:Corda htmlHeight="75%" /> | |
|
<ctl:Corda htmlWidth="100%" /> | |
|
<ctl:Corda imageTemplate= "image_templates\bar.itxml" /> | |
|
<ctl:Corda internalCommPortAddress="10.0.0.1:2002" /> | |
|
<ctl:Corda postRequest="true" /> | |
|
<ctl:Corda language="EN" /> | |
|
makeFullRequest (deprecated) |
<ctl:Corda makeFullRequest="true" /> |
|
<ctl:Corda maxRequestLength="2000" /> | |
|
<ctl:Corda outputType=" AUTO|EMF|EPS|FLASH|JPEG|PDF|PNG|SVG|TABLE|TEXTDESC|TIFF|URL " /> | |
|
<ctl:Corda password="password" /> | |
|
<ctl:pcScript> pcscript </ctl:pcScript> | |
|
<ctl:Corda returnDescriptiveLink="true" /> | |
|
<ctl:Corda svgTemplate="svg_templates/grow.svg" /> | |
|
<ctl:Corda useCache="false" /> | |
|
<ctl:Corda useLogData="true" /> | |
|
<ctl:Corda userAgent="userAgentString" /> | |
|
<ctl:Corda width="600" /> |
|
Method |
Java Tag Library Syntax |
|
<ctl:addHTMLTable object ="objectname" [title="title" ] /> | |
|
<ctl:addITXML> ITXMLString </ctl:addITXML > | |
|
<ctl:addObjectParamTag name ="name" value="value" /> | |
|
| |
|
NONE | |
|
| |
|
NONE | |
|
NONE1 | |
|
<ctl:loadCommandFile [encoding="encoding"] source="commandfile" /> | |
|
<ctl:loadData graph="graphname" source="datasrc" [method="append"] [table="HTMLTable"] [encoding="encoding"] /> | |
|
<ctl:Corda loadDoc="webpage" /> | |
|
loadFromCordaServer (deprecated) |
<ctl:loadFromCordaServer source="imagefile" /> |
|
<ctl:loadITXML source ="itxmlsrc" /> | |
|
<ctl:loadMapData map="mapname" source="datasrc" [method="append"] [ table="HTMLTable"] [encoding="encoding"] /> | |
|
<ctl:lockPDF [userPasswd="password" ownerPasswd="password" lockCode="lockcode" [highEnc="imagefile" ]] /> | |
|
< ctl:Corda promptToSave= "filename" /> | |
|
NONE | |
|
NONE | |
|
NONE | |
|
<ctl:Corda cookieHeader="cookieHeader" /> | |
|
<ctl:setData graph="graphname" > data </ctl:setData> | |
|
<ctl:setDBQuery graph="graphname" driver="driver" database="database" [user="user"] [password="password"] query="query" /> | |
|
<ctl:setDoc [basepath="path" ] [encoding="encoding "]>...document... </ctl:setDoc> | |
|
<ctl:Corda docRoot ="docRootPath" /> | |
|
| |
|
<ctl:setMapData map="mapname" layer="layer" > data </ctl:setMapData> | |
|
<ctl:setMapDBQuery map="mapname" layer="layer" driver="driver" database="database" [user="user"] [password="password"] query="query" /> | |
|
NONE | |
|
<ctl:Corda orientation ="portrait | landscape" /> | |
|
<ctl:Corda outputName="$filename" /> | |
|
<ctl:Corda pageMargins ="margin" /> | |
|
<ctl:Corda pageSize ="pagesize " /> | |
|
| |
|
NONE | |
|
| |
|
| |
|
| |
|
<ctl:Corda useCache="false" /> |
1. The getEmbeddingHTML() method is executed automatically when the <ctl:Corda> tag closes. Effectively, </ctl:Corda> executes myImage.getEmbeddingHTML().
The tables below illustrate proper PERL syntax for the complete Corda Embedder API.
|
Attribute |
PERL Syntax |
|
$myImage->appendServerInfoSlash (0); | |
|
| |
|
$myImage->bgColor ("FFFFFF"); | |
|
$myImage->clusterMonitorAddress ("localhost/clusterMonitor"); | |
|
$myImage->externalServerAddress ("is.mycompany.com:2001"); | |
|
$myImage->extraCTSCommands ($commandstring); | |
|
$myImage->extraHTMLAttributes ($attributes); | |
|
$myImage->fallback ({"NONE" | "LOOSE" | "STRICT"}); | |
|
$myImage->height (400); | |
|
$myImage->htmlHeight ("75%"); | |
|
$myImage->htmlWidth ("100%"); | |
|
$myImage->imageTemplate ("image_templates\bar.itxml"); | |
|
$myImage->internalCommPortAddress ("10.0.0.1:2002"); | |
|
$myImage->isPostRequest (1); | |
|
$myImage->language ("EN"); | |
|
makeFullRequest (deprecated) |
$myImage->makeFullRequest (1); |
|
$myImage->maxRequestLength (2000); | |
|
$myImage->outputType ({"AUTO"|"EMF"|"EPS"|"FLASH"|"JPEG"|"PDF"|"PNG"|"SVG"|"TABLE"|"TEXTDESC"|"TIFF"|"URL"}); | |
|
$myImage->password ("password"); | |
|
$myImage->PCScript ($pcscript); | |
|
$myImage->returnDescriptiveLink (1); | |
|
$myImage->svgTemplate ("svg_templates/grow.svg"); | |
|
$myImage->useCache (0); | |
|
$myImage->useLogData (1); | |
|
$myImage->userAgent ($userAgentString); | |
|
$myImage->width (600); |
|
Method |
PERL Syntax |
|
$myImage->addHTMLTable ($graph,$title); | |
|
$myImage->addITXML ($ITXMLString); | |
|
$myImage->addObjectParamTag ($name,$value); | |
|
| |
|
$myImage->getBytes(); | |
|
| |
|
$myImage->getCordaEmbedderVersion(); | |
|
$myImage->getEmbeddingHTML(); | |
|
$myImage->loadCommandFile ($commandfile, $encoding); | |
|
$myImage->loadData( $graphname, $datasrc, $method, $HTMLTable, $encoding); | |
|
$myImage->loadDoc ($name); | |
|
loadFromCordaServer (deprecated) |
$myImage->loadFromCordaServer($ imagefile); |
|
$myImage->loadITXML ($xmlsrc); | |
|
$myImage->loadMapData( $mapname, $layer, $datasrc, $HTMLTable, $encoding); | |
|
$myImage->lockPDF ($username, $ownername, $options, $enc); | |
|
$myImage->promptToSave ($filename); | |
|
$myImage->reset(); | |
|
$myImage->saveToAppServer ($path, $name); | |
|
$myImage->saveToCordaServer($ name); | |
|
$myImage->setCookieHeader(cookieHeader); | |
|
$myImage->setData ($graphname, $data); | |
|
NONE | |
|
$myImage->setDoc( $name, $basepath, $encoding); | |
|
$myImage->setDocRoot(docRootPath); | |
|
| |
|
$myImage->setMapData ($mapname, $layer, $data); | |
|
NONE | |
|
NONE | |
|
$myImage->setOrientation ("landscape" | "portrait"); | |
|
$myImage->setOutputName ($filename); | |
|
$myImage->setPageMargin ($pagemargin); | |
|
$myImage->setPageSize($ pagesize); | |
|
| |
|
NONE | |
|
| |
|
| |
|
| |
|
$myImage->useCache (0); |
The tables below illustrate proper PHP syntax for the complete Corda Embedder API.
|
Attribute |
PHP Syntax |
|
$myImage->appendServerInfoSlash = false; | |
|
| |
|
$myImage->bgColor = "FFFFFF"; | |
|
$myImage->clusterMonitorAddress = "localhost/clusterMonitor"; | |
|
$myImage->externalServerAddress = "is.mycompany.com:2001"; | |
|
$myImage->extraCTSCommands = $commandstring; | |
|
$myImage->extraHTMLAttributes = $attributes; | |
|
$myImage->fallback = {"NONE" | "LOOSE" | "STRICT"}; | |
|
$myImage->height = 400; | |
|
$myImage->htmlHeight = "75%"; | |
|
$myImage->htmlWidth = "100%"; | |
|
$myImage->imageTemplate = "image_templates\bar.itxml"; | |
|
$myImage->internalCommPortAddress = "10.0.0.1:2002"; | |
|
$myImage->isPostRequest = true; | |
|
$myImage->language = "EN"; | |
|
makeFullRequest (deprecated) |
$myImage->makeFullRequest = true; |
|
$myImage->maxRequestLength = 2000; | |
|
$myImage->outputType = {"AUTO"|"EMF"|"EPS"|"FLASH"|"JPEG"|"PDF"|"PNG"|"SVG"|"TABLE"|"TEXTDESC"|"TIFF"|"URL"}; | |
|
$myImage->password = "password"; | |
|
$myImage->PCScript = $pcscript; | |
|
$myImage->returnDescriptiveLink = true; | |
|
$myImage->svgTemplate = "svg_templates/grow.svg"; | |
|
$myImage->useCache = false; | |
|
$myImage->useLogData = true; | |
|
$myImage->userAgent = $userAgentString; | |
|
$myImage->width = 600; |
|
Method |
PHP Syntax |
|
$myImage->addHTMLTable ($graph, $title); | |
|
$myImage->addITXML ($ITXMLString); | |
|
$myImage->addObjectParamTag ($name, $value); | |
|
| |
|
$myImage->getBytes(); | |
|
| |
|
$myImage->getCordaEmbedderVersion() ; | |
|
$myImage->getEmbeddingHTML() ; | |
|
$myImage->loadCommandFile ($commandfile, $encoding); | |
|
$myImage->loadData( $graphname, $datasrc, $method, $HTMLTable, $encoding); | |
|
$myImage->loadDoc ($name); | |
|
loadFromCordaServer (deprecated) |
$myImage->loadFromCordaServer($imagefile); |
|
$myImage->loadITXML ($xmlsrc); | |
|
$myImage->loadMapData( $mapname, $datasrc, $layer, $HTMLTable, $encoding); | |
|
$myImage->lockPDF ($username, $ownername, $options, $enc); | |
|
$myImage->promptToSave = $filename; | |
|
$myImage->reset(): | |
|
$myImage->saveToAppServer ($path, $name); | |
|
$myImage->saveToCordaServer($name); | |
|
$myImage->setCookieHeader(cookieHeader); | |
|
$myImage->setData ($graphname, $data); | |
|
NONE | |
|
$myImage->setDoc( $name, $basepath, $encoding); | |
|
$myImage->setDocRoot(docRootPath); | |
|
| |
|
$myImage->setMapData ($mapname, $layer, $data); | |
|
NONE | |
|
NONE | |
|
$myImage->setOrientation ("landscape" | "portrait"); | |
|
$myImage->setOutputName ($filename); | |
|
$myImage->setPageMargin ($pagemargin); | |
|
$myImage->setPageSize($pagesize); | |
|
| |
|
NONE | |
|
| |
|
| |
|
| |
|
$myImage->useCache = false; |