超链接搜索结果/ SQL DB / BLOB字段/在浏览器/ Visual C#中查看PDF [英] Hyperlink Search Results/SQL DB/BLOB Field/View PDF in Browser/Visual C#

查看:86
本文介绍了超链接搜索结果/ SQL DB / BLOB字段/在浏览器/ Visual C#中查看PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想创建一个简单的应用程序,其中一个功能是能够在Web浏览器中查看SQL数据库中BLOB字段中保存的PDF图像(发票)。


目前的情况,我已经成功创建了一个表单,要求用户输入一个发票编号,然后从SQL DB中的BLOB中提取PDF图像并将其显示在浏览器中。


但是,现在我要做的是创建一个表单,询问用户的客户端号码,然后从SQL DB中提取客户端当前拥有的所有发票号码。在显示发票号码列表时,我希望这些是超链接的,并且在点击后,定向到相应的PDF图像...但我被卡住了!!!


以下是我必须通过输入发票号来提取实际PDF的编码:

Hi,

I am trying to create a "simple" application, of which, one of the functionalities is to be able to view a PDF Image (Invoice) held in a BLOB field on an SQL Database in the web browser.

As it stands, I have successfully created a form that asks the user to enter an Invoice Number and it pulls up the PDF Image from the BLOB in the SQL DB and displays it in the browser.

However, now what i''m trying to do is to create a form that asks the user for a Client number and then pulls up all the Invoice numbers that client currently has from the SQL DB. Upon displaying the list of Invoice Numbers, I would like these to be hyperlinked and, upon being clicked, directed to the corresponding PDF Image... but i''m stuck!!!

Here is the coding I have to pull up the actual PDF by entering the invoice number:

展开 | 选择 | Wrap | 行号

推荐答案

一种方法是将链接放置到显示图像的位置,并使用带有Invd_id的查询字符串来显示正确的图像。 HTH。
One way would be placing the link to where the image is displayed and using a querystring with the Invd_id to display the right image. HTH.



一种方法是将链接放置到图像显示的位置,并使用带有Invd_id的查询字符串显示正确的图像。 HTH。
One way would be placing the link to where the image is displayed and using a querystring with the Invd_id to display the right image. HTH.



感谢您的回复。


http:// localhost:1053 / PDF_Viewer / Default.aspx - 那是'显示时显示在浏览器中的链接...

如何在我编码的上下文中使用查询字符串?你能为我发一些示例代码吗?我真的很感激。


再次感谢。


Thanks for responding.

http://localhost:1053/PDF_Viewer/Default.aspx - that''s the link that shows up in the browser when it is displayed...

how would i use a querystring in the context my coding? Could you possibly post some sample code for me? I''d really appreciate it.

Thanks again.


任何人?请?


谢谢。
Anyone? Please?

Thanks.


这篇关于超链接搜索结果/ SQL DB / BLOB字段/在浏览器/ Visual C#中查看PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆