in my project i have a gridview,and i provide a print option for every row...if i print the selected row it will be printed in the crystal reports..its working fine..what i need is ,when i click the print option it will opens in pdf format....i tried but when i click the print option a pop up box will displayed like open with and save us..i dont need like that.if i click the print option it will open directly in pdf format..how?thanks in advance.....here is my code
Dim CrystalReport As New ReportDocument CrystalReport.Load(Server.MapPath("CrystalReport.rpt")) CrystalReport.SetParameterValue("fname", fname) CrystalReport.SetParameterValue("lname", lname) CrystalReport.SetParameterValue("company", company) CrystalReport.SetParameterValue("desig", desig) CrystalReport.SetParameterValue("dept", dept) CrystalReport.SetParameterValue("tsalary", tsalary) CrystalReport.SetParameterValue("gsalary", gsalary) CrystalReport.SetParameterValue("npayable", npayable) CrystalReportViewer1.ReportSource = CrystalReport Response.Buffer = False Response.ClearContent() Response.ClearHeaders() CrystalReport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "Employee")