3 Replies Latest reply on Nov 24, 2011 2:06 AM by Venkataramana Reddy

    Problem with PDF dialog..PDF file is directly opening in Browser..

    Venkataramana Reddy Newbie

      I am using the following code for PDF generation ......

       

      response.setContentType("application/pdf"); 

      response.setHeader("Content-Disposition", "attachment; filename=sampleName.pdf");   

       

       

      The PDF is generating with out any Problems. But it is directly opened in Browser.

      i want the option for the save or open dialog.

       

       

      Can any one help on this.....