|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
cleanden
Joined: 04 Sep 2008 Posts: 3
|
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Sep 04, 2008 8:06 am Post subject: |
|
|
The server sends PDF - I guess the content type is missing, so the browser shows it as TXT or HTML.
Look here _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
cleanden
Joined: 04 Sep 2008 Posts: 3
|
Posted: Thu Sep 04, 2008 11:59 am Post subject: |
|
|
Line 61:
Response.ContentType = "application/pdf"
Any other suggestions? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Sep 04, 2008 12:08 pm Post subject: |
|
|
You might try this (for a "Save as" prompt):
Response.AddHeader("content-disposition", "attachment; filename=test.pdf")
Or this (should be the default, but can't harm):
Response.AddHeader("Content-Disposition", "inline; filename=test.pdf")
Are other PDF files showing correct in the Browser? _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
cleanden
Joined: 04 Sep 2008 Posts: 3
|
Posted: Thu Sep 04, 2008 12:12 pm Post subject: |
|
|
Already there in line 63
However, I changed:
Response.AddHeader("content-disposition", "attachment; filename=test.pdf")
to:
Response.AddHeader("Content-Disposition", "inline; filename=test.pdf")
and it started working.
Changed it back and it's still working!
Thanks for the help! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|