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:
PDF Problem
Divers
Thread ID:
00941610
Message ID:
00941610
Vues:
66
I am creating a Crystal Report and generating a PDF. The PDF, when opened directly is fine however when using the following code to download the document I get:

"File is damaged and could not be repaired"

I put this in the page_load and call the web form. lcFilePath is a physical path to a location on the local disk.

Response.ContentType="Application/pdf";
Response.AppendHeader("Content-Disposition",lcFilePath);
Response.WriteFile(lcFilePath);
Response.Flush();
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform