This is a migrated thread and some comments may be shown as answers.

Display BookMarks Section in PDF by Default

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pavan
Top achievements
Rank 1
Pavan asked on 24 Apr 2012, 03:41 PM
We are showing pdf by pushing pdfbytes array. 
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;
        }

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Apr 2012, 12:57 PM
Hi Pavan,

Such functionality is currently not available, however this suggestion is logged to our features database for investigation and if there is a way to accomplish this, it would be considered for implementation for subsequent version of the product.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Pavan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or