如何从数据库中检索pdf文件
问题描述:
pdf文件的路径是这样的(E:/certificates/ssc.pdf).在本地系统中.我想检索pdf并使用silverlight显示pdf.
我在asp.net中使用了此代码.
pdf files path is there like(E:/certificates/ssc.pdf). in the local system. i want to retrieve the pdf''s and display the pdfs using silverlight.
i used this code in asp.net.
protected void LinkButtonDownloadPdf_Click(object sender, EventArgs e)
{
Response.ContentType = "Application/pdf";
Response.AppendHeader("Content-Disposition";"attachment; filename=Test_PDF.pdf");
Response.TransmitFile(Server.MapPath("~/Files/Test_PDF.pdf"));
Response.End();
}
如何在silverlight中转换以上代码
how to convert above code in silverlight
答
此CP文章: ^ ]有点旧,但可能会给您一些想法.
我也是在forums.silverlight.net上找到的.
http://forums.silverlight.net/t/70573.aspx [
This CP article: Blend PDF with Silverlight[^] is a little old, but may give you some ideas.
I found this at forums.silverlight.net as well.
http://forums.silverlight.net/t/70573.aspx[^]