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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Key cannot be null and append

Thread ID:





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


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 06:36 AM UTC


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon