问题标签 [dynamics-sl]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
dynamics-sl - How to jump to a tab using VBA code
I'm using VBA code to enter a SiteID on the Purchase Order Maintenance screen while I'm in the Line Items tab. Unfortunately, it jumps to the shipping information tab when I do this. What is the vba code to refocus the Line Items tab?
vba - VBA如何在函数中替换“As Any”
我有一个使用此签名的 dll:
我可以用简单的变量来调用它,比如Integer
使用自定义类型的更复杂的变量。
我想创建一个接收参数并将其发送到 dll 的函数,我尝试了不同的解决方案,但总是有错误。
在所有情况下,我都是这样称呼它的:
返回Null
而不是一个值
回来Variable uses an Automation type not supported in Visual Basic
回来Variable uses an Automation type not supported in Visual Basic
无法调用函数ByRef argument type mismatch
甚至不会编译,Syntax error
c# - 如何通过在 VBA 项目中导入自定义 DLL 来修复运行时错误 430
我已经为此奋斗了几个小时,但我找不到我做错了什么。
我创建了一个新的 C# dll 项目,这是它包含的唯一类的内容:
我基本上删除了它试图让它工作的所有东西,唯一的参考是System
.
我检查了Make assembly COM-Visible
标志Assembly Information
并且我的项目已签名(代码库需要接缝)。
它编译得很好,在那之后,我打电话RegAsm.exe
给它,给它我的dll,我添加了/codebase
,/tlb
命令成功了。
当我进入我的 VBA 项目时,我可以将我的新 tlb 文件添加到引用中,工作正常。之后,我可以在我的代码中使用它,自动完成功能正在工作,我可以毫无错误地编译。
然后,当我执行时,我得到了这个:
这是我在 VBA 中的代码示例:
我尝试了后期绑定,并且我的代码运行良好,但我希望能够使用自动完成功能。
有人对我可以尝试使其工作的建议有什么建议吗?
编辑(在我的环境中添加一些细节)
- 我为与 Dynamics SL(Microsoft ERP 之一)相关的项目使用 VS2008
- 我在 Windows Server 2008 R8 Standard 上,从 VMWare 运行
- 在 Framework 3.5、Release、x86 上编译,Dynamics SL 客户端为 32 位
- 我在 Dynamics 和 Excel 上尝试了我的 dll,以确保问题不是 Dynamics ;)
dynamics-crm - Microsft Dynamics SL SoHeader 和 SalesPerson 关系 - 无法链接
我正在尝试通过 api 创建 SalesOrder 并将它们插入 SQL 数据库。我正在使用的表:SOHeader 和 SOLine
要插入两个对象的列:SlsperID 我可以将行与 SLsperId 链接,但不能与 Soheader 链接。我尝试手动创建它,然后在 SQL 中克隆该行,但它仍然没有与销售订单链接。也许还有另一个表包含 Salesperson 和 SOheader 之间的关系