📄 report.odl
字号:
// report.odl : type library source for ActiveX Control project.
// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (report.tlb) that will become a resource in
// report.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(0FC3B4C8-675F-43CF-B2A4-4D169834FD7A), version(1.0),
helpfile("report.hlp"),
helpstring("report ActiveX Control module"),
control ]
library REPORTLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CReportCtrl
[ uuid(2C0C8B70-484B-497D-B8FD-12E231AFF4E2),
helpstring("Dispatch interface for Report Control"), hidden ]
dispinterface _DReport
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CReportCtrl)
[id(1)] BSTR ReportTemplateFileName;
[id(6)] BSTR DateSourceName;
[id(7)] short ReportType;
[id(2)] BSTR ReportFileName;
[id(8)] short ReportCharacter;
[id(3)] BSTR GroupProperty;
[id(4)] BSTR FilePath;
[id(5)] BSTR DataSourceKey;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CReportCtrl)
[id(9)] BSTR GetErrorInformation();
[id(10)] short MakeReport();
[id(11)] void QuitExcel();
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CReportCtrl
[ uuid(334267BE-E9E0-42E0-8513-7DC7FD03B0C2),
helpstring("Event interface for Report Control") ]
dispinterface _DReportEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CReportCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CReportCtrl
[ uuid(3B7F977A-7926-4EC5-977E-945A3A19E862),
helpstring("Report Control"), control ]
coclass Report
{
[default] dispinterface _DReport;
[default, source] dispinterface _DReportEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -