Select to view content in your preferred language

datagrid results export using AlivePDF

809
0
02-24-2011 11:09 AM
JasonNielsen
Regular Contributor
I seemed to hit a road block and i hoped somebody else has ran into this problem too and had a fix for it.

I have a date field in a datagrid and using a labelfunction i can convert the date to the proper format of 2/18/2011. My problem is when i call that gridcolumn to put onto a PDF using alivepdf 1.5 i get milliseconds instead of the nice format that the labelfunction puts it in. Is there some sort of trick to get the format correct on the pdf?

Below is the code regarding the field i want formatted correctly.
var gridInspectionDate:GridColumn = new GridColumn("Inspection Date", "INSPECTION_DATE",15,"L","L");

var columns8:Array = new Array (gridInspectionDate);
grid2.columns = columns8;
myPDF.addGrid(grid2, 3,18);


thanks.
Tags (2)
0 Kudos
0 Replies