Skip to content

Instantly share code, notes, and snippets.

@thecfguy
Forked from anonymous/gist:4282657
Last active December 20, 2015 20:49
Show Gist options
  • Save thecfguy/6193183 to your computer and use it in GitHub Desktop.
Save thecfguy/6193183 to your computer and use it in GitHub Desktop.
<cfscript>
x = createobject("webservice","http://www.webservicex.net/genericbarcode.asmx?WSDL",{refreshWSDL="yes",wsdl2javaArgs="-a -O 2000"});
argCollection.BarCodeParam = structNew();
argCollection.BarCodeParam.Height = 100;
argCollection.BarCodeParam.Width = 200;
argCollection.BarCodeParam.Angle = 50;
argCollection.BarCodeParam.Ratio = 1;
argCollection.BarCodeParam.Module = 1;
argCollection.BarCodeParam.Left = 10;
argCollection.BarCodeParam.Top = 10;
argCollection.BarCodeParam.CheckSum = false;
argCollection.BarCodeParam.FontName = "Arial";
argCollection.BarCodeParam.BarColor = "Red";
argCollection.BarCodeParam.BGColor = "white";
argCollection.BarCodeParam.FontSize = 10.0;
argCollection.BarCodeParam.barcodeOption = "Code";
argCollection.BarCodeParam.barcodeType = "Code_2_5_interleaved";
argCollection.BarCodeParam.checkSumMethod = "None";
argCollection.BarCodeParam.showTextPosition = "TopLeft";
argCollection.BarCodeParam.BarCodeImageFormat="GIF";
argCollection.BarCodeText = "Hello";
writedump(x);
writedump(x.startgenerateBarCode(argCollection));
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment