Hi All !
Im generating the pdf file in webservice , that is binded with my aplication. And the webservice method returns the file in memory stream.
My question is how to flush the document , eg. so im presing the button and can download the document. In aspx that was following code
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment;filename=zamowienie.pdf");
Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
Response.End();
but i don't know how to do code this in silverlight.
Im generating the pdf file in webservice , that is binded with my aplication. And the webservice method returns the file in memory stream.
My question is how to flush the document , eg. so im presing the button and can download the document. In aspx that was following code
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment;filename=zamowienie.pdf");
Response.OutputStream.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
Response.End();
but i don't know how to do code this in silverlight.