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

RadGrid PDF Export password???

4 Answers 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raju
Top achievements
Rank 1
Raju asked on 21 Nov 2012, 10:42 AM
I have used telerik rad grid client-side programmatic binding. Every thing working fine but when we export data to pdf, it is asking password. How to open this pdf?

Radgrid.AutoGenerateColumns = true;
       Radgrid.MasterTableView.AllowPaging = true;
       Radgrid.MasterTableView.IsItemInserted = true;
       Radgrid.ExportSettings.OpenInNewWindow = true;
       Radgrid.AllowFilteringByColumn = false;
       Radgrid.ExportSettings.ExportOnlyData = true;
       Radgrid.ExportSettings.HideStructureColumns = true;
       Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
       Radgrid.MasterTableView.NestedViewTemplate = null;
       Radgrid.MasterTableView.HierarchyDefaultExpanded = false;
       Radgrid.MasterTableView.ClearChildEditItems();
       Radgrid.ExportSettings.FileName = filename;
       Radgrid.ExportSettings.Excel.Format = GridExcelExportFormat.Html;
       Radgrid.MasterTableView.ExportToPdf();
        

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 21 Nov 2012, 06:23 PM
Hello Raju,

RadGrid does not support export with client-side binding out-of-the-box. The fact that the PDF viewer is asking you for a password means that the header of the PDF file is broken. In the older versions of RadControls for ASP.NET AJAX there was a bug that caused this behavior but it was fixed a long time ago. This is why I suppose that you are using a very old version of our controls. If this is so, please try to upgrade to a newer one and then let me know if the problem still persists.

Kind regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Raju
Top achievements
Rank 1
answered on 22 Nov 2012, 10:46 AM
Thanks for quick reply Mr.Daniel . Let me check and get back to you.
0
Raju
Top achievements
Rank 1
answered on 05 Dec 2012, 08:25 AM
We are using Telerik.web.ui.dll vesion 2012.3.1016.35
0
Daniel
Telerik team
answered on 07 Dec 2012, 09:33 AM
Hello Raju,

The version of RadControls you mentioned should not exhibit this behavior. Could you please try to isolate the problem in a simple, runnable demo so that I can debug it on my end?

Thanks,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Raju
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Raju
Top achievements
Rank 1
Share this question
or