您好,我正在使用 VB.net 创建一个 Windows 应用程序,我想知道如何创建一个下载按钮,以便当用户单击它时,它能够从数据库中的附件列下载特定附件。
我试图用谷歌搜索如何去做这件事,但不幸的是,我仍然找不到答案。如果有这方面经验的人能够指导我编写此函数的过程,我将不胜感激。
Hi I am creating a windows application using VB.net and I would like to know how I can go about creating a download button so that when the user clicks it, it is able to download the specific attachment from the attachment column in the database.
I have tried to google on how I can go about doing this but unfortunately still, I am not able to find that answer. I appreciate it if someone with experience in this could guide me in the process of coding this function.
发布评论
评论(1)
使用 DAO(添加 Microsoft.Office.Interop.Access.Dao.DLL 的引用)从 Ms-Access 数据库读取附件字段。
示例代码:
Use DAO (Add the reference of Microsoft.Office.Interop.Access.Dao.DLL ) to read attachment field from the Ms-Access database.
Sample code: