Hi,
i wanted to know if i could use Prince to generate pdfs from html + css and fill the page with variables, and if possible - how?
I want to use a default invoice.html file with a default css-file to generate said invoices with .net and fill the necessary information through an xml file that should be read by my program.
This is a sample of my current xml file. Every Document node should be run through and each item that is found in the html file should be replaced by the given item in the xml file.
[CODE]<?xml version="1.0" encoding="utf-8"?>
<PdfPrinter>
<Document>
<FNR>FNR</FNR>
<ID>ID</ID>
<KNR>123456</KNR>
</Document>
<Document>
<FNR>10</FNR>
<ID>123456 701</ID>
<KNR>123456</KNR>
</Document>
</PdfPrinter> [/CODE]
Do i have to generate a html file with variable fillers (e.g %%FNR%%) then read said html and build a new string with me replacing each variable, or is there a more... refined way of doing it?
i wanted to know if i could use Prince to generate pdfs from html + css and fill the page with variables, and if possible - how?
I want to use a default invoice.html file with a default css-file to generate said invoices with .net and fill the necessary information through an xml file that should be read by my program.
This is a sample of my current xml file. Every Document node should be run through and each item that is found in the html file should be replaced by the given item in the xml file.
[CODE]<?xml version="1.0" encoding="utf-8"?>
<PdfPrinter>
<Document>
<FNR>FNR</FNR>
<ID>ID</ID>
<KNR>123456</KNR>
</Document>
<Document>
<FNR>10</FNR>
<ID>123456 701</ID>
<KNR>123456</KNR>
</Document>
</PdfPrinter> [/CODE]
Do i have to generate a html file with variable fillers (e.g %%FNR%%) then read said html and build a new string with me replacing each variable, or is there a more... refined way of doing it?