Basics of Pdf

Hello,

I have been playing around with the aspose.Pdf product and have a few questions.
I use VS2003 vb.net & SQL2000.

I have been trying the basic examples with xml.
The only way I can get it to work is by using a xml file formatted as stated in the examples. If I call on VB.net to generate an xml file from a dataset the pdf examples does not work.

how do I overcome this issue?
Does aspose.pdf generate xml files from datasets that it can read?

Thanks
Craig

Dear Ceaig,

Thank you for considering Aspose.

Please make sure the xml you generated :

1) cab be loaded correctly by .Net;
2) match the Aspose.Pdf’s xml format;

You can save your xml to a file and see if it is correct.

Tommy,
My xml file is below. What format changes do I make to it so that aspose.pdf will read it.
I am not very proficient with xml. this is the xml file that my vb.net generates.


<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Table>
<Date>2005-01-05T00:00:00.0000000+11:00</Date>
<Product>Semo </Product>
<Time>12:47:00</Time>
<Sample>Bulk Outloading </Sample>
<Code> </Code>
<Bin> </Bin>
<Protein>9.3</Protein>
<Moisture>14.7</Moisture>
<Invoice>O1011398 </Invoice>
<Customer>Rinoldi </Customer>
</Table>
</NewDataSet>

Thanks
Craig

Dear Craig,

Thank you for considering Aspose.

Your XML does not match Aspose.Pdf’s format. You need to write an XSLT file to transform it. Please refer to Create PDF from XML using XSLT.