Web
Using export to HTML feature you can print the grid very easily just by adding following JavaScript to the export output: <script type=""text/javascript"">print();</script> You can use WebClient to save the output as file on the server: Silverlight client side: Uri uri = new Uri(HtmlPage.Document.DocumentUri, String.Format("PrintHandler.aspx?FileName={0}", fileName));
WebClient client = new WebClient();
client.UploadStringCompleted += new UploadStringCompletedEventHandler(client_UploadStringCompleted);
client.UploadStringAsync(uri, String.Format("{0}{1}", RadGridView1.ToHtml(), printScript)); ASP.NET server side: protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["FileName"] != null)
{
File.WriteAllText(Server.MapPath(Request.QueryString["FileName"]),
new StreamReader(Request.InputStream).ReadToEnd(), Encoding.UTF8);
}
} and request this file when upload...