Tabla XML Parser

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Tabla XML Parser

Noel Ricardo Medina Graterol
Hi, I'm using the Itext for to pass a file XML named recaudo.xml, this XML
has some Nodos, I?m using the file TAGMap: tag:recaudo.xml.
The problem is that I can?t do the table  in the file PDF, just show me
dates in one line.

thank you for your help

Noel Medina
Caracas,  Venezuela

/* ------This is the XML file
<?xml version="1.0"?>
<resultset>
<titulo>ESTE ES EL TITULO</titulo>
<sg_recaudo_rubro>UNO</sg_recaudo_rubro>
<sg_recaudo_rubro>DOS</sg_recaudo_rubro>
<sg_recaudo_rubro isbn="14">
   <re_codigo valor="3">1</re_codigo>
   <re_cod_rango>1</re_cod_rango>
   <re_recaudo>INFTEC</re_recaudo>
</sg_recaudo_rubro>
</resultset>

/*   ------- This is the TAG MAP
<tagmap>
        <tag name="itext" alias="resultset" />
        <tag name="newpage" alias="NEWPAGE" />
        <tag name="newline" alias="NEWLINE" />
        <tag name="paragraph" alias="titulo">
                <attribute name="size" value="18" />
                <attribute name="align" value="Center" />
        </tag>
        <tag name="Table" alias="sg_recaudo_rubro">
                <attribute name="border" value="false" />
                <attribute name="align" value="Left" />
                <attribute name="tablefitspage" value="false" />
                <attribute name="cellpadding" value="1" />
                <attribute name="cellspacing" value="0" />
                <attribute name="columns" value="2" />
                <attribute name="bordercolor" value="#000000"/>
                <attribute name="backgroundcolor" value="#FFFFFF"/>
                <attribute name="AutoFillEmptyCells" value="true"/>
                <attribute name="BorderWidth" value="10"/>
        </tag>
        <tag name="Cell" alias="re_codigo valor">
                <attribute name="align" value="Right" />
        </tag>
        <tag name="Cell" alias="re_cod_rango">
                <attribute name="leading" value="10" />
                <attribute name="align" value="Right" />
        </tag>
        <tag name="Cell" alias="re_recaudo">
                <attribute name="leading" value="10" />
                <attribute name="align" value="Right" />
                <attribute name="border" value="3" />
                <attribute name="Colspan" value="2" />
        </tag>
</tagmap>

/* ------------ This is the C# code
                        Document docA = new Document(PageSize.LEGAL);
                        string xmlFile = Page.MapPath("recaudo.xml");
                        string archivo = Page.MapPath("recTag.pdf");

                        PdfWriter.getInstance(docA,new FileStream(archivo,FileMode.Create));
                        XmlParser.Parse(docA, xmlFile,Page.MapPath("tag_recaudo.xml"));
                        Response.Write ("Ready");




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
itextsharp-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
Reply | Threaded
Open this post in threaded view
|

RE: Tabla XML Parser

Paulo Soares
You have a better change of getting an answer about XML if you post it in the iText list.

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On
> Behalf Of Noel Ricardo Medina Graterol
> Sent: Tuesday, October 04, 2005 12:19 AM
> To: [hidden email]
> Subject: [itextsharp-questions] Tabla XML Parser
>
> Hi, I'm using the Itext for to pass a file XML named
> recaudo.xml, this XML
> has some Nodos, I´m using the file TAGMap: tag:recaudo.xml.
> The problem is that I can´t do the table  in the file PDF,
> just show me
> dates in one line.
>
> thank you for your help
>
> Noel Medina
> Caracas,  Venezuela
>
> /* ------This is the XML file
> <?xml version="1.0"?>
> <resultset>
> <titulo>ESTE ES EL TITULO</titulo>
> <sg_recaudo_rubro>UNO</sg_recaudo_rubro>
> <sg_recaudo_rubro>DOS</sg_recaudo_rubro>
> <sg_recaudo_rubro isbn="14">
>    <re_codigo valor="3">1</re_codigo>
>    <re_cod_rango>1</re_cod_rango>
>    <re_recaudo>INFTEC</re_recaudo>
> </sg_recaudo_rubro>
> </resultset>
>
> /*   ------- This is the TAG MAP
> <tagmap>
> <tag name="itext" alias="resultset" />
> <tag name="newpage" alias="NEWPAGE" />
> <tag name="newline" alias="NEWLINE" />
> <tag name="paragraph" alias="titulo">
> <attribute name="size" value="18" />
> <attribute name="align" value="Center" />
> </tag>
> <tag name="Table" alias="sg_recaudo_rubro">
> <attribute name="border" value="false" />
> <attribute name="align" value="Left" />
> <attribute name="tablefitspage" value="false" />
> <attribute name="cellpadding" value="1" />
> <attribute name="cellspacing" value="0" />
> <attribute name="columns" value="2" />
> <attribute name="bordercolor" value="#000000"/>
> <attribute name="backgroundcolor" value="#FFFFFF"/>
> <attribute name="AutoFillEmptyCells" value="true"/>
> <attribute name="BorderWidth" value="10"/>
> </tag>
> <tag name="Cell" alias="re_codigo valor">
> <attribute name="align" value="Right" />
> </tag>
> <tag name="Cell" alias="re_cod_rango">
> <attribute name="leading" value="10" />
> <attribute name="align" value="Right" />
> </tag>
> <tag name="Cell" alias="re_recaudo">
> <attribute name="leading" value="10" />
> <attribute name="align" value="Right" />
> <attribute name="border" value="3" />
> <attribute name="Colspan" value="2" />
> </tag>
> </tagmap>
>
> /* ------------ This is the C# code
> Document docA = new Document(PageSize.LEGAL);
> string xmlFile = Page.MapPath("recaudo.xml");
> string archivo = Page.MapPath("recTag.pdf");
>
> PdfWriter.getInstance(docA,new
> FileStream(archivo,FileMode.Create));
> XmlParser.Parse(docA,
> xmlFile,Page.MapPath("tag_recaudo.xml"));
> Response.Write ("Ready");
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> itextsharp-questions mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
itextsharp-questions mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions