We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Key cannot be null and append

Hi

When im trying to append a pdf i get an "Key cannot be null" when is trying to append a document for third time

Sample Code
for (int i = 0; i < records.Count; i++)
{
Response.Write(records[i].ToString() + "
");
WebClient objClient = new WebClient();


if (records[i].ToString().ToLower().Contains (".pdf"))
{
byte[] myhtmlrequest = objClient.DownloadData(records[i].ToString());
PdfLoadedDocument lDoc = new PdfLoadedDocument(myhtmlrequest);
page = lDoc.Pages.Add() as PdfPage;
g = page.Graphics;
text ="Document Number="+ i.ToString ();
g.DrawString(text, font, PdfBrushes.Black, PointF.Empty);
doc.Append(lDoc);



}


}



1 Reply

SS Sri Subhashini M Syncfusion Team September 9, 2008 06:36 AM UTC

Hi,

Thank you for choosing Syncfusion products.

I am afraid that I was not able to reproduce the issue. Kindly look into the sample from the below specified link:

http://www.syncfusion.com/support/user/uploads/Pdf_Web_76467_dde1cd93.zip

Could you please update me the below questions so that we could sort out the cause of the issue and provide you a solution?

1) Could you please send us the reproducing steps with the couple of PDF files.
2) Please let me know, Which version you are using now?

Please let me know if I misunderstand your requirement.

Regards,
Suba



Loader.
Live Chat Icon For mobile
Up arrow icon