wiln / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

not able to call addGrid() #229

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using code below it does not have any compilation issues but still not
woking. flow fails in addGrid(). Do any one know what is the reason. arr is
Array, and swc used is 1.5 RC

myPDF = new PDF(Orientation.LANDSCAPE,Unit.MM,Size.A4);
Alert.show(“1″);
var newPage:Page = new Page(Orientation.LANDSCAPE,Unit.MM,Size.A4);
Alert.show(“2″);
var columns:Array = new
Array(“appName”,”serviceName”,”accessIntf”,”version”,”totalReq
uest”,”successCount”,”failureCount”);
Alert.show(“3″);
myPDF.addPage(newPage);
Alert.show(“4″);
// create a Grid object as usual
var gridSol:Grid = new Grid(arr,200,120,new RGBColor(0×666666),new
RGBColor(0xCCCCCC),false,new RGBColor(0),1,Joint.MITER,columns);
// pass the grid
Alert.show(“5″);
myPDF.addGrid(gridSol);
Alert.show(“6″);

Original issue reported on code.google.com by hms2...@gmail.com on 20 Apr 2010 at 12:54