Hi!

The layout in Cell is not working here, I am using the HtmlWriter .
Checked in IE and Firefox.

        Document document = new Document();
        ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
        HtmlWriter htmlWriter = null;
       
        try {
           
            htmlWriter = HtmlWriter.getInstance(document, baosPDF);          
            // step 2:
            // we create a writer that listens to the document
            // and directs a XML-stream to a file
            // HtmlWriter.getInstance(document, new FileOutputStream("c:\\faktura.html"));
           
            document.add(new Header(MarkupTags.HTML_VALUE_CSS , "myStyles.css"));
            // step 3: we open the document

           Table table = new Table(4);
            table.setBorderWidth(1);
            table.setBorderColor(new Color(255, 0, 0));
            table.setPadding(5);
            table.setSpacing(5);

            Cell cellHeader = new Cell( "header" );
            cellHeader.setHeader(true);
            cellHeader.setColspan (4);
            table.addCell(cellHeader);                    
            table.endHeaders();

            Cell customerCell = new Cell("Volvo AB ");
            customerCell.setBorderColor(new Color(0, 0, 255));
            table.addCell(customerCell,2,1); // Row 2, Column 1

            //Row FIVE, BOX,
            Cell salesReportCell = new Cell("Selling");
            table.addCell(salesReportCell,5,3);

             document.add(table);

The last cell should be in row 5 and column 3.
it is not.

how come ?

regards, i
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to