For anyone using alivePDF, I think this is a bug in the source. After checking 
with FPDF 
source, I think line 2001 in PDF.as should read:

} else this.x += pWidth;

instead of:

} else this.x += currentPage.w;

currently this.x is being set to the page width which pushes any second cell 
you try to add 
(on the same line) off the page.

I have posted the issue on the google code page, but I wanted to post this as 
well for 
anyone else, hitting their head against a wall with this one.

This class is great.  I am just digging in, but I definitely see the potential. 
 It doesn't have 
the visual 'ease' of FlexReport (from what I can tell glancing at it today), 
BUT it allows for a 
very flexible PDF with annotations, etc.  

What we BADLY need in flex is a way to view PDF's natively. How about an 
Acrobat Flex 
component?  Adobe?  It truly boggles my mind that the company that created the 
PDF 
doesn't have a way to display it in Flex (without iFrame or PDF-SWF hacks)... I 
would love 
to understand what the challenge is? 

 - Kevin



--- In [email protected], "Kevin" <[EMAIL PROTECTED]> wrote:
>
> I am trying to figure out AlivePDF and having some problems which I don't 
> know if they 
are 
> bugs or user ignorance!  Any help would be appreciated from anyone who has 
> more 
> experience than I.
> 
> I am just trying to lay out cell horizontally.  This is how I understand it 
> should be done.
> 
> This does NOT work (for me):
> 
> var myPDF : PDF = new PDF(Orientation.PORTRAIT,Unit.MM,Size.LETTER);
> myPDF.addPage(Orientation.PORTRAIT);
> myPDF.setFont(FontFamily.HELVETICA, 'B', 12);
> myPDF.textStyle ( new RGBColor ( 255, 0, 0 ) );
> myPDF.addCell(50,10,'Some text into a cell !',1,0);
> myPDF.addCell(50,10,'More text into a cell !',1,0);
> myPDF.addCell(50,10,'Last text into a cell !',1,0);
> 
> However this works to lay them out vertically:
> 
> var myPDF : PDF = new PDF(Orientation.PORTRAIT,Unit.MM,Size.LETTER);
> myPDF.addPage(Orientation.PORTRAIT);
> myPDF.setFont(FontFamily.HELVETICA, 'B', 12);
> myPDF.textStyle ( new RGBColor ( 255, 0, 0 ) );
> myPDF.addCell(50,10,'Some text into a cell !',1,1);
> myPDF.addCell(50,10,'More text into a cell !',1,1);
> myPDF.addCell(50,10,'Last text into a cell !',1,1);
> 
> What am I doing wrong to create horizontal cells?
> 
> - Kevin
>



Reply via email to