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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Key cannot be null and append

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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



}


}



Sri Subhashini M [Syncfusion]
Replied On 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



CONFIRMATION

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.

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

;