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.
Unfortunately, activation email could not send to your email. Please try again.

Key cannot be null and append

Thread ID:





76467 Sep 8,2008 06:05 PM Sep 9,2008 02:36 AM ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On September 8, 2008 06:05 PM


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);



Sri Subhashini M [Syncfusion]
Replied On September 9, 2008 02:36 AM


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:


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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.