मैं पीडीएफ में क्रिस्टल रिपोर्ट की एक रिपोर्ट उत्पन्न करने के लिए एक कोड था ... लेकिन यह भी उपयोगकर्ता खोज किया था की एक ही पेज में खुलता है और बटन में क्लिक ... एक नए टैब में पीडीएफ को खोलने के लिए किसी भी तरीके हैं या पेज?क्रिस्टल की रिपोर्ट जेनरेट करें ... कैसे नए टैब या पेज में खुला?
मेरे कोड है:
private void OpenPDF()
{
ReportDocument Rel = new ReportDocument();
Rel.Load(Server.MapPath("../Reports/Test.rpt"));
BinaryReader stream = new BinaryReader(Rel.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat));
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.BinaryWrite(stream.ReadBytes(Convert.ToInt32(stream.BaseStream.Length)));
Response.Flush();
Response.Close();
}
मदद के लिए धन्यवाद!