【问题标题】:Microsoft Access Report ActiveX Control written using .Net Framework使用 .Net Framework 编写的 Microsoft Access 报表 ActiveX 控件
【发布时间】:2011-01-12 16:30:38
【问题描述】:

我为我糟糕的英语提前道歉,我是意大利人。 我有个问题。我正在为 Microsoft Access 报告开发 .Net ActiveX 控件。控件是使用 COM 接口作为合同和互操作服务(如属性)构建的。控件由 Access 检索并正常工作,现在我需要处理“ControlSource”,即设计模式下用于数据源列选择的 Access 属性。

我试图在接口契约中实现的属性“ControlSource”是这样的:

    [DispId(0x1b)]
    string ControlSource { 
        [return: MarshalAs(UnmanagedType.BStr)] 
        [MethodImpl(
            MethodImplOptions.InternalCall, 
            MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] get; 
        [param: In, MarshalAs(UnmanagedType.BStr)] 
        [MethodImpl(
            MethodImplOptions.InternalCall, 
            MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] set; 
    }

但是还是不行。任何的想法? 提前感谢任何想帮助我的人。

【问题讨论】:

    标签: .net ms-access activex report


    【解决方案1】:

    我发现了问题:无法使用 dot.net 构建 MS Access Report Control! VB6 或 C 是​​解决方案!

    我希望它对某人有用,以避免花费不必要的时间来寻找不存在的解决方案

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-02-09
      • 1970-01-01
      • 2011-01-02
      • 2015-02-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多