📄 accessautomation.idl
字号:
// AccessAutomation.idl : IDL source for AccessAutomation.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (AccessAutomation.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(DABFC771-8012-11D3-BF05-00C04F7384E9),
dual,
helpstring("IAccess Interface"),
pointer_default(unique)
]
interface IAccess : IDispatch
{
[propput, id(1), helpstring("property ReportName")] HRESULT ReportName([in] BSTR newVal);
[propput, id(2), helpstring("property DatabaseName")] HRESULT DatabaseName([in] BSTR newVal);
[propput, id(3), helpstring("property QueryName")] HRESULT QueryName([in] BSTR newVal);
[propput, id(4), helpstring("property QueryString")] HRESULT QueryString([in] BSTR newVal);
[id(5), helpstring("method ShowReport")] HRESULT ShowReport(BOOL Preview);
// [id(6), helpstring("method Initialize")] HRESULT Initialize();
[id(7), helpstring("method CloseAccess")] HRESULT CloseAccess();
//[propput, id(8), helpstring("property Preview")] HRESULT Preview([in] BOOL newVal);
};
[
uuid(DABFC764-8012-11D3-BF05-00C04F7384E9),
version(1.0),
helpstring("AccessAutomation 1.0 Type Library")
]
library ACCESSAUTOMATIONLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(DABFC773-8012-11D3-BF05-00C04F7384E9),
helpstring("_IAccessEvents Interface")
]
dispinterface _IAccessEvents
{
properties:
methods:
};
[
uuid(DABFC772-8012-11D3-BF05-00C04F7384E9),
helpstring("Access Class")
]
coclass Access
{
[default] interface IAccess;
[default, source] dispinterface _IAccessEvents;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -