When using the following code shown below to convert an XSLT style sheet and XML file to a PDF document, I get the following error “Invalid index in Rows indexer:1”.
Code being used to convert to PDF
public void ConvertXmlXsltToPDF(MemoryStream msXml, MemoryStream msXslt, MemoryStream msMergedXslXml)
{
msXslt.Position = 0;
msXml.Position = 0;
msMergedXslXml.Position = 0;
aGenPDF.Pdf pdfNew = new aGenPDF.Pdf();
pdfNew.BindXML(msXml, msXslt);
pdfNew.Save(msMergedXslXml);
}
I have attached the style sheet and the XML file that is creating the error for testing. Any help would be greatly appreciated.
Thanks