Dmitar,
Can you provide Sample Code Using Webservice instead of WCF service,
I tried creating the Service.asmx and created the Export method but no luck.
Below is the WebMethod with Modified Code,
[WebMethod]
public Stream Export(Stream input)
{
StreamReader sr = new StreamReader(input);
string s = sr.ReadToEnd();
sr.Dispose();
NameValueCollection qs = HttpUtility.ParseQueryString(s);
string fileName = qs["fileName"];
string base64 = qs["base64"];
string contentType = qs["contentType"];
byte[] data = Convert.FromBase64String(base64);
MemoryStream stream = new MemoryStream(data);
HttpContext.Current.Response.ContentType = contentType;
stream.Position = 0;
return stream;
}
Below is the change in the ASPX Page,
protected void Page_Load(object sender, EventArgs e)
{
var relativePath = "~/service.asmx/export?file";
RadClientExportManager1.PdfSettings.ProxyURL = ResolveUrl(relativePath);
RadClientExportManager1.PdfSettings.Author = "Telerik ASP.NET AJAX";
}
Let me know if I need to make any other changes,
Thanks in Advance