Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PDF Problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00941610
Message ID:
00946868
Vues:
19
>Danny, Try this...

FileName = Session["pdffile"].ToString(); // Set pdffile previously
Attach = "filename="+FileName.ToString();
Dest = @"c:\mylocation\"+FileName.ToString();

FileInfo PDFFile = new FileInfo(Dest.ToString());

Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; "+Attach.ToString());
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Length", PDFFile.Length.ToString());
Response.WriteFile(PDFFile.FullName);
Response.End();

With Acrobat Reader 6.0 I am able to Save and Open a PDF this way.


Eric,

I had meant to try this earlier and still haven't had the opportunity. I wanted to say thanks very much for passing it along though. Did this help you resolve the issue with the corrupted header message?

Thanks again,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform