Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adobe and ASP.Net
Message
De
13/05/2003 10:45:20
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Adobe and ASP.Net
Divers
Thread ID:
00787725
Message ID:
00787725
Vues:
61
Hi,

One of the members of my team is working on creating Adobe forms to submit data and retrieve data. The submitting works great. We can't get the retrieving to work in ASP.Net. They've been able to get it to work in ASP.

Here's what's happening:

After working with the Adobe product testing things to get it to work in .Net, I have determined that a problem may lie in the response object. I'm unclear how this works in ASP and not ASP.Net. A .PDF file has an associated .FDF with it that contains the tags that map to fields in my database. So to display a "filled in" pdf file, you load the FDF file and open it in the browser. Since this FDF file is tied directly to a PDF, it opens the proper pdf file in adobe on the client. This is performed in ASP by the following:
'Load FDF File
...
'Set the FDF to the appropriate pdf file.
outputFDF.FDFSetFile(http://localhost/.../Procedures_Forms.pdf)

Response.ContentType = "application/vnd.fdf"

'Write the FDF file to the browser for display.
Response.BinaryWrite (outputFDF.FDFSaveToBuf) 'SaveToBuf converts the output to a byte() array

In ASP, the binary write line will cause Adobe Reader to open on the client and displays the proper pdf file.
in ASP.Net, the binary write line causes the browser to download the aspx page. After searching google, and some trial and error, Bob and I found that if we set the Response.Charset="" on the aspx page, the PDF would open with a warning that the file was corrupt. Not knowing enough about the Response object myself, does anyone have any ideas as to a possible solution? I've found one article on Adobe's website in reference to setting the MIME type to Application/vnd.fdf on the server which I've tried, but I'm not sure if I set it properly.

Any insight into this?

Thanks,

Jacci
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform