如何在页面加载的winform中从accessdatabase检索pdf文件到pdf阅读器 [英] How to retrieve pdf file from the accessdatabase to pdf reader in winform in page load

查看:92
本文介绍了如何在页面加载的winform中从accessdatabase检索pdf文件到pdf阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将pdf文件附加到ms访问数据库中的列,我需要使用pdf reader在winforms中检索该pdf文件。我需要加载该pdf页面中的文件



我尝试过:



我做的不知道如何从访问数据库中检索pdf文件到winform.im中的pdf阅读器,不太热衷于从数据库中检索数据。

i have attach a pdf file to a column in ms access database and i need to retrieve that pdf file in winforms using pdf reader .i need to load that pdf file in the pageload

What I have tried:

I do not know how to retrieve that pdf file from the access database to the pdf reader in winform.im not much keen on retrieving data from databases.

推荐答案

这很难。您必须首先知道如何从数据库中获取pdf。搜索一些文档或询问该存储功能的开发人员,或者查看存储该文件的存储过程和代码。



比你需要获得pdf某处(可能是一些本地缓存)并在获取后加载它。使用回调(完成处理程序),因为此操作可能需要一些时间或被延迟。解决方案可能是一个重复查找文件的线程,而不是加载它。



完成后不要删除文件。
That is hard. You must know how you get the pdf from the database at first. Search for some documentation or ask the developer of that storage function or take a look at the stored procedure and code which storing that file.

Than you need to get the pdf somewhere (may some local cache) and load it after the fetch. Work with callbacks (completion handler) because this operation may take some time or be delayed. The solution could be a thread which looks repeatly for the file and than load it.

Dont ferget to delete the file after all is done.


这篇关于如何在页面加载的winform中从accessdatabase检索pdf文件到pdf阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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