protected void ToPdf_Click(object sender, ImageClickEventArgs e)
gvStudent.PageSize = 50;
gvStudent.ExportSettings.IgnorePaging = true;
gvStudent.ExportSettings.OpenInNewWindow = true;
6 Answers, 1 is accepted
This problem is addressed in RadControls for ASP.NET AJAX Q1 2010 SP1.
Let me know if you need more information.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I have same issue. After created pdf, it asks for password although I didn't set any property related with password.
I have 2010.3.1317.35 version of Telerik.Web.UI.dll installed (last updated). I want to save pdf in a directory and send it with mail without showing it.
Please help !
void grdResult_GridExporting(object source, GridExportingArgs e)
using (FileStream fs = File.Create(path))
Byte info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
fs.Write(info, 0, info.Length);
The Default encoding is the root cause for this issue. Try the following:
the Telerik team
Encoding.GetEncoding(1252) is works for none-DBCS only.
Consider the DBCS too Okay.
So, How to resolve the DBCS, Encoding.GetEncoding(950), etc. the exported pdf still password protected.
The problem is most probably a broken header of the PDF file which may be caused by different factors. For example:
- postback compression in IIS or RadCompression
- changes to the binary array
- SSL + Internet Explorer
To get better assistance, please let us know what are your browser/version and share the corresponding code so that we can examine it.
I have attached a simple website (add a web.config and binary files to run it) which you could test at your side. The first button saves the output to the file then sends the file to the browser. The second one sends the output directly to the browser. RadGrid is bound to a simple DataTable with multi-byte character text (japanese and chinese) for testing purposes.