We can able to view Bookmarks section by clicking on Bookmars icon manually as shown in below figure.
But My requirement is to display Bookmarks section in PDF by default. Please Help how to display that section dynamically.
We have used the below code:
<iframe id="ifPDF" src='@Url.Action("GetHtmlReport", "StandardReports")' class="resultPDF">
public ActionResult GetHtmlReport()
{
byte[] result = null;
string mimeType = "application/pdf";
result = popstreatmernt;
return File(result, mimeType);
}
private void GetReportInfo(StandardReportsListViewModel stdReportsFilters)
{
try
{
RequistionParameters ReqParams = new RequistionParameters();
RequisitionCheckListbase ReqchkParams = new RequisitionCheckListbase();
RequistionChecklistReport reportRequistionChecklist = new RequistionChecklistReport();
reportRequistionChecklist.ReportInput = ReqchkParams;
byte[] pdfbytesReport = GetPdfBytes(reportRequistionChecklist);
popstreatmernt = pdfbytesReport;
}
catch { }
}
public byte[] GetPdfBytes(Report rpt)
{
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
//set any deviceInfo settings if necessary
System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
Telerik.Reporting.Processing.RenderingResult result1 = reportProcessor.RenderReport("PDF", rpt, deviceInfo);
byte[] result = result1.DocumentBytes;
return result;
}