# 有无可能通过Access的二次开发做一个词典的制作和查询的综合方案

**URL:** <https://forum.freemdict.com/t/topic/16375>\
**Category:** 技术交流与词典编修\
**Created:** [2022 年10 月 19 日 02:54 UTC](https://forum.freemdict.com/t/topic/16375 "2022-10-19T02:54:22Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 20 日 10:38 UTC](https://forum.freemdict.com/t/topic/16375/29 "2022-10-20T10:38:10Z")

</div>

> [@last\_idol](#):
>
> SQLITE

我不知道你说的SQLITE是什么，但我对Office VBA有点经验。VBA定制一个功能媲美GD的查词端应该工作量不是很大。

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2022 年10 月 20 日 10:41 UTC](https://forum.freemdict.com/t/topic/16375/30 "2022-10-20T10:41:31Z")

</div>

工作量不大就自己先干吧，现在的开源项目/方案，不先写好一半代码，基本没人考虑的。

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 20 日 10:43 UTC](https://forum.freemdict.com/t/topic/16375/31 "2022-10-20T10:43:18Z")

</div>

近期没这个时间和急迫性，而且还要先熟悉一下Access的VBA的API。

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 20 日 11:09 UTC](https://forum.freemdict.com/t/topic/16375/33 "2022-10-20T11:09:06Z")

</div>

> [@Impact](#):
>
> 但似乎又觉得好像缺些什么，技术跟不上想法。

你的感觉很准确，有点三脚猫的功夫，啥东西都是懂点皮毛。

---

<div class="post-metadata">

**Author:** ![jiangws](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/jiangws/32/18560_2.png) [@jiangws](https://forum.freemdict.com/u/jiangws)\
**Post date:** [2022 年10 月 20 日 11:36 UTC](https://forum.freemdict.com/t/topic/16375/34 "2022-10-20T11:36:11Z")

</div>

语言工具的好坏因人而异，你喜欢就好，做你的，让别人说去。加油！

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 21 日 11:07 UTC](https://forum.freemdict.com/t/topic/16375/37 "2022-10-21T11:07:04Z")

</div>

有兴趣的可以体验下

 ![Image](https://forumcdn.freemdict.com/uploads/default/original/3X/b/b/bb605569b5b05bed09c7a89bcb3c97ab0849b6a1.png)  
[Barrons (Access)(2022.10.21).zip](https://forum.freemdict.com/uploads/short-url/Aaxp4NjNc2GnQUqLgVvh9uCTtXv.zip) (600.8 KB)

---

<div class="post-metadata">

**Author:** ![mdict6](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mdict6](https://forum.freemdict.com/u/mdict6)\
**Post date:** [2022 年10 月 21 日 11:27 UTC](https://forum.freemdict.com/t/topic/16375/39 "2022-10-21T11:27:21Z")

</div>

barrons 有不少好东西😁😁

---

<div class="post-metadata">

**Author:** ![jiangws](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/jiangws/32/18560_2.png) [@jiangws](https://forum.freemdict.com/u/jiangws)\
**Post date:** [2022 年10 月 21 日 14:41 UTC](https://forum.freemdict.com/t/topic/16375/40 "2022-10-21T14:41:44Z")

</div>

写的不错 👍  
在WebControl里面双击单词里会有等待光标出来，是不是那里可以设置一下？

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 21 日 14:49 UTC](https://forum.freemdict.com/t/topic/16375/41 "2022-10-21T14:49:52Z")

</div>

> [@jiangws](#):
>
> WebControl

这个控件 [WebBrowserControl.Object](https://learn.microsoft.com/en-us/office/vba/api/access.webbrowsercontrol.object) 属性有点诡异，费了牛鼻子劲还没搞明白是个什么对象，文档也看不懂，你要是有精力可以研究下，或者请坛子里有懂ActiveX的朋友提示下。你指出正是这个工作烂尾的地方。

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2022 年10 月 21 日 15:03 UTC](https://forum.freemdict.com/t/topic/16375/42 "2022-10-21T15:03:23Z")

</div>

做的不错啊。

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 21 日 15:06 UTC](https://forum.freemdict.com/t/topic/16375/43 "2022-10-21T15:06:18Z")

</div>

还行。。。。

---

<div class="post-metadata">

**Author:** ![jiangws](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/jiangws/32/18560_2.png) [@jiangws](https://forum.freemdict.com/u/jiangws)\
**Post date:** [2022 年10 月 21 日 15:07 UTC](https://forum.freemdict.com/t/topic/16375/44 "2022-10-21T15:07:20Z")

</div>

I have revised this issue by using ActiveX(Microsoft Web Brower), please try it.  
[Barrons (Access)(2022.10.21).zip](https://forum.freemdict.com/uploads/short-url/XF8jryP2qQQJlZquTxgwuuQAs5.zip) (606.6 KB)

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 21 日 15:14 UTC](https://forum.freemdict.com/t/topic/16375/45 "2022-10-21T15:14:23Z")

</div>

你是点石成金啊，谢谢！请教下，这个 ActiveX(Microsoft Web Brower) 我查了半天，越查觉得水越深，有什么说明清楚点的文档吗？

---

<div class="post-metadata">

**Author:** ![jiangws](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/jiangws/32/18560_2.png) [@jiangws](https://forum.freemdict.com/u/jiangws)\
**Post date:** [2022 年10 月 21 日 15:18 UTC](https://forum.freemdict.com/t/topic/16375/46 "2022-10-21T15:18:58Z")

</div>

基本上没有文档，试出来的:)  
不过Access你有任何问题都可以帮到你，不要担心。

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 21 日 15:20 UTC](https://forum.freemdict.com/t/topic/16375/47 "2022-10-21T15:20:53Z")

</div>

日后一定还有问题要请教，非常感谢！

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 22 日 14:00 UTC](https://forum.freemdict.com/t/topic/16375/49 "2022-10-22T14:00:30Z")

</div>

这个工作下一步我想就应该是做一个可对词条内容进行编辑的表单，如果简单地对某个词条的html源码进行编辑并在旁边一个框中实时显示效果这很简单，重要的是编辑器控件最好能对 html 代码标记颜色，粗看了下没什么可行的线索，有可能办不到或工程浩大。是不是可能用一个浏览器控件载入一个包含JS编辑器的网页，可是那个浏览器控件连文档都找不到。估计在 python环境下选择就多了

![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/2/3246d79f0f21f6a3ef8b3e927b66bb08b414bc41.png)

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2022 年10 月 23 日 15:58 UTC](https://forum.freemdict.com/t/topic/16375/51 "2022-10-23T15:58:16Z")

</div>

WebBrowser已经淘汰了，直接用WebView2吧。

> **[Microsoft.Web.WebView2 1.0.1587.40](https://www.nuget.org/packages/Microsoft.Web.WebView2)**
>
> The WebView2 control enables you to embed web technologies (HTML, CSS, and JavaScript) in your native applications powered by Microsoft Edge (Chromium).
> This package is necessary for Win32 C/C++, WPF, and WinForms applications. To learn more about...

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 23 日 16:05 UTC](https://forum.freemdict.com/t/topic/16375/52 "2022-10-23T16:05:00Z")

</div>

我就说嘛，我的Access里面出来的是旧的IE的界面，你这个应该就是 Edge 的界面，Access工具栏里面找不到这个可能是office版本太老，回头看看怎么用。谢谢！

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [2022 年10 月 23 日 16:12 UTC](https://forum.freemdict.com/t/topic/16375/53 "2022-10-23T16:12:52Z")

</div>

只会CSharp，这里有篇用 [VB.NET](http://VB.NET) + WebView2的教程，你看能不能用。

> **[VB .NET WebView2 WinForms tips](https://adonetaccess2003.blogspot.com/2021/07/vb-net-webview2-winforms-tips.html)**
>
> WebView2 WinForms in VB .NET exceptions and installation guide in developer environment. WebView2 we could not create the data directory.

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [2022 年10 月 23 日 16:16 UTC](https://forum.freemdict.com/t/topic/16375/54 "2022-10-23T16:16:10Z")

</div>

找时间仔细研究一下。不过VBA是VB的一个子集，希望最终能用。

[上一页](https://forum.freemdict.com/t/topic/16375.md?page=1)

[下一页](https://forum.freemdict.com/t/topic/16375.md?page=3)
