In the pdf generated file ,on the email click the file is attached with extension .apsx instead of .pdf

I have used the following line of code to embed the pdf file into browser.

Response.AddHeader("Content-Disposition", "inline; filename=" + reportName + Session.SessionID + ".pdf");

I am getting th epdf file generated into browser perfectly.But when i click the EMAIL option i found the file is attached with .aspx extension instead of .pdf.

So do suggest some ideas or solution.

0
sravanmarch
10/28/2006 9:00:46 AM
asp.net.getting-started 91979 articles. 4 followers. Follow

1 Replies
746 Views

Similar Articles

[PageSpeed] 21

Hi ,

I also need to generated pdf file in browsers.

I tried with your line of code (  Response.AddHeader("Content-Disposition", "inline; filename=" + reportName + Session.SessionID + ".pdf");)

But not able to generate pdf in browsers.

Can you post some sample code here.

Bye

Amit  


Regards
Amit
0
thakur_amit
10/30/2006 2:55:44 PM
Reply:

Similar Artilces:

dw.saveAs (PDF) generates a PS file instead of PDF file
Guru(s), I have PowerBuilder 10.5 build 5048 and GhostScript 8.57. In simple words, I am trying to print DW into a PDF using SaveAs ("file name", PDF!) The PDF file is generated, but I can not open with Acrobat or any other PDF viewers. But I can open it fine with a PostScript Viwer like GSView. It looks like a PS file more than a PDF file. What am I missing? Do I need to convert this PS into PDF by calling a GhostScript script? Appreciate you help, Div FYI, The header of the file looks like ------------------------------------------------------- %!PS-A...

FF 3.0 Printing to PDF file with generating WPS Object for the PDF File and Growth of obsolete WPS handles
FF 3.0 Printing to PDF file with generating WPS Object for the PDF File and Growth of obsolete WPS handles Every time yout print to WPS and delete the WPS object after processing, you generate an obsolete WPS handle. Hint to Readme to schedule an WPS "Clean Operation" regulary ( e. g. by Checkini tool ) ? Kind Regards Rainer On 02.07.2008 13:20, Rainer Stroebel wrote: > Every time yout print to WPS and delete the WPS object after processing, > you generate an obsolete WPS handle. > > > Hint to Readme to schedule an WPS "Clea...

SM 1.1.1 renaming *.pdf files to *.pdf.doc when downloading email attachments
Hi Gang. I have a very strange problem. When opening PDF email attachments, SM 1.1.1 is renaming to invoice.pdf.doc. That is, the attachment shows up as a .pdf file, but when I right click > open, the download manager opens but the file is then called invoice.pdf.doc and of course opens in word. Which displays it as a virtually unreadable source file. I know that it's not good practice to open attachments with out scanning them first, but seeing as these are just invoices from my ISP, it's not really a problem. I also know I can just right click the file in the...

Combining PDF files into one very large pdf file
Does anyone have a utility/componennt that will combine various PDF files into one very large PDF file? The size of the final file may be larger then the current memory available for the computer. Thanks Ed Dressel On Thu, 2 Apr 2009 08:29:47 -0700, Ed Dressel <none@tbinc.com> wrote: >Does anyone have a utility/componennt that will combine various PDF files >into one very large PDF file? The size of the final file may be larger then >the current memory available for the computer. > >Thanks >Ed Dressel Ed, I would check out www.adultpdf.com Str...

Email Attachment - PDF file
Hi, I need to attach a PDF file to an email.  My code works when the file attachment is a .doc file, but not a .pdf file.  I get an "Invalid mail attachment" error when I attach the .pdf file.    ( I don't need to attach a WORD file, I just did that to see if the code would work with a diferent file type). Both files exist so that is not the problem.  Any reason why I'd get an "Invalid mail attachment" error for a PDF file and not a WORD file?   eMail = new MailMessage(); eMail.To = sTo; if(sCC!="") ...

PDF File I/O Error while trying to load pdf file
Name: Dale Product: Shiretoko Summary: PDF File I/O Error while trying to load pdf file Comments: I was loading this site's pdf file: http://www.mead-usa.com/reference/instructions/Air_Presses.pdf and I received a window saying that there was a File I/O Error, but the page was trying to load anyway. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3 (.NET CLR 3.5.30729) From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one...

COnverting image file into PDF file in C#.NET
hi friends, i have a problem in creating a PDF file from an image file. first of all pls clarify what is the internal concept in converting to PDF file. if nay one knows pls mail me the related code if you find any solution pls mail me at spend5mins@yahoo.com thank u all hari babu...

Convert Gridview Data in to PDf file. or Convert report data in pdf file
 Hi have problem to convert Gridview data into PDF file..let me know is there any solution or open source components..Regards Rambhopal Reddy EPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark asAnswer” if a marked post does not actually answer your question. Friend, Check this thread for soultions http://forums.asp.net/t/1164793.aspx and then to http://www.aspnetworld.com/articles/2004011801.aspx   Good luck!     Please Don't forget to click "Mark as Answer" on the post that helped you.This can be benef...

superreview granted: [Bug 242953] an Imported eudora attached file is always named "Attached File" instead of its real name : [Attachment 153467] set the attachment name as the leaf name of the file
David Bienvenu <bienvenu@nventure.com> has granted Scott MacGregor <mscott@mozilla.org>'s request for superreview: Bug 242953: an Imported eudora attached file is always named "Attached File" instead of its real name http://bugzilla.mozilla.org/show_bug.cgi?id=242953 Attachment 153467: set the attachment name as the leaf name of the file http://bugzilla.mozilla.org/attachment.cgi?id=153467&action=edit ...

exclude file extension (.pdf) when saving file name with fileupload?
Hi, I have the following code to save the file name, file size and file type from a file uploaded:Dim fileName As String = FileUpload1.PostedFile.FileNameDim filesize As Integer = sender.parent.findcontrol("FileUpload1").PostedFile.ContentLength / 1000Dim filetype As String = FileUpload1.PostedFile.ContentTypeThis works great, but i'm wanting to exclude the file extension from the file name, eg. so filename1.pdf appears as just filename1 What what i have to add to the above code to be able to do this?  TIA There's probably a slicker way... but you can : str...

superreview denied: [Bug 242953] an Imported eudora attached file is always named "Attached File" instead of its real name : [Attachment 148287] Set the real name to an eudora imported attached file.
Scott MacGregor <mscott@mozilla.org> has denied Scott MacGregor <mscott@mozilla.org>'s request for superreview: Bug 242953: an Imported eudora attached file is always named "Attached File" instead of its real name http://bugzilla.mozilla.org/show_bug.cgi?id=242953 Attachment 148287: Set the real name to an eudora imported attached file. http://bugzilla.mozilla.org/attachment.cgi?id=148287&action=edit ------- Additional Comments from Scott MacGregor <mscott@mozilla.org> Yann, is the fileName argument that gets passed into AddAttachment already...

Generating a PDF file using c#.net
Hello,  I' m having to create  a pdf file at the click of a button. I' m new to this can you please suggest a procedure I could follow or a tutorial I could read. thanks Mythili You would be best advised to use a component to help you with this. It's going to be very hard to do by hand. Google should be able to find you alternatives fairly easily.  check this 3rd party control  HTML to PDF converter. The conversion can be done with only a few lines of code.  and also check this linkMy Blog"Don't be afraid to be wrong; otherwise you'l...

WebDatawindow.net Save As PDF creates 0 byte pdf file
Hello all, I am having issues with the save as pdf function of the web datawindow. I am using the ghostwriter ps method and have confirmed with another app that the ps generation is working properly. I have also confirmed that the datawindow is throwing a ps file in the windows temp directory during execution of this method. However, the pdf file generated is always 0 bytes. For whatever reason i am finding the documentation hard to understand and im sure its a setup problem on my behalf. Like placement of the "gs" directory and needed dl's missing or not ...

PDF files and DOC files
Name: Jeff Kopacz Email: Jeffkopacz_at_mchsi.com Product: Firefox Summary: PDF files and DOC files Comments: When using Firefox and have to view a pdf file or Doc file I have to have Adobe Reader or Word started before selecting the file or the computer will lockup. I am using XP and Firefox 1.0.7. If I use either IE or Netscape they will open properly. This has recently occured with either version 6 or 7 Browser Details: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 ...

Web resources about - In the pdf generated file ,on the email click the file is attached with extension .apsx instead of .pdf - asp.net.getting-started

Generated collection - Wikipedia, the free encyclopedia
In diatonic set theory , a generated collection is a collection or scale formed by repeatedly adding a constant interval in integer notation ...

Moontoast, VideoGenie Team Up To Bring Brand Advocates’ User-Generated Videos To Facebook
It’s not quite the Facebook video ads that have been the subject of rumors, but social rich media advertising platform Moontoast and user-generated-video ...

Auto-generated message: (someones name) has left this conversation and will no longer see your messages ...
Well I figured out how to stop it for me, do not leave the conversation, instead open the conversation and go to the Actions tab, click "Report ...

User Generated Photos in Open Graph - Facebook-Entwickler
... With the increasing number of users having access to mobile cameras, there is a growing need to be able to share and associate those user-generated ...

Does Hyperlapse signal a bigger shift to user-generated content?
... of the level of seriousness Facebook and Instagram as a whole are taking with video creation. There’s a battle being played out on user-generated ...

Minecraft Command Block : Randomly Generated Forest - YouTube
In this video, I demonstrate what can be done by using the spreadplayers command. Keep in mind, this is just a proof of concept, and hopefully ...

Prayers for man who generated love
JOHN McCARTHY'S farewell had been billed as a football funeral. It was attended by a who's who of the game he loved, yet as a tribute it laid ...

Ex-Miss Universe Jennifer Hawkins makes way for data-generated Miss Fantasy, Eva
Former Miss Universe Jennifer Hawkins probably wasn't counting on the ignominy of being sidelined at Myer for a data-generated fantasy woman ...

CGI - Computer Generated Effects In Movies
CGI has revolutionised filmmaking in the past decade, affecting just about every movie we watch.

Chile earthquake live: Tsunami generated after shallow 8.2 magnitude quake hits in Pacific
Parts of Chile's coastline have been hit by a tsunami after a huge magnitude 8.2 earthquake in the Pacific Ocean.

Resources last updated: 11/25/2015 4:52:57 AM