لدي صفحة ب ASP
و أريد اذا ضغط على الزر المحدد تفتح له برنامج PDF بالبيانات الموجودة في صفحة الويب لكي يطبعها
وقد جربت كود لفتحها بالوورد فعملت بشكل جيد
Response.Clear();
Response.AddHeader("Content-Disposition", "Attachment;Filename=Word.doc");
Response.Buffer = true ;
Response.Charset = "UTF-8";
Response.ContentType = "application/vnd.word" ;لكن للPDF لا تعمل و تظهر رسالة الخطأ (the doccument can not be opened )
Response.Clear();
Response.AddHeader("Content-Disposition", "Attachment;Filename=Word.pdf");
Response.Buffer = true;
Response.Charset = "UTF-8";
Response.ContentType = "application/vnd.pdf";فما الحل ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
