在asp页面中显示pdf文件。 ? [英] Show pdf file in asp page. ?
本文介绍了在asp页面中显示pdf文件。 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨开发者,
i希望在asp.net页面的一个文件夹中显示pdf文件。
我该怎么做?
Hi Developers,
i want to show pdf files from one folder in asp.net page.
How can i do this?
StringWriter stringWriter1 = new StringWriter();
HtmlTextWriter writer1 = new HtmlTextWriter(stringWriter1);
writer1.RenderBeginTag(HtmlTextWriterTag.Iframe);
writer.AddAttribute(HtmlTextWriterAttribute.Src, strFilename);
writer1.RenderEndTag();
我尝试使用此代码为每个文件添加iframe,但它在我的页面中没有显示任何内容。
需要你的帮助...
要求:在asp页面的文件夹中显示pdf文件。
I tried this code to add iframe for each file, but it doesnt show anything in my page.
Need your help...
Requirement : Show pdf files from a folder in asp page.
推荐答案
请尝试
将PDF嵌入带有自定义控件的网页 [ ^ ]
使用GhostScript在ASP.NET应用程序中显示PDF文件的内容 [ ^ ]
http://www.aspdotnet-suresh.com/2012/11/aspnet-open-pdf-file-in-web-browser.html [ ^ ]
第一个链接本身就足够了,如果你想要的话可以通过剩下的链接。
Please try
Embed PDFs into a Web Page with a Custom Control[^]
Displaying the contents of a PDF file in an ASP.NET application using GhostScript[^]
http://www.aspdotnet-suresh.com/2012/11/aspnet-open-pdf-file-in-web-browser.html[^]
The first link itself is enough , if you want you can go through the remaining.
这篇关于在asp页面中显示pdf文件。 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文