袁绍伦
路人甲
路人甲
  • 注册日期2003-08-08
  • 发帖数654
  • QQ164646905
  • 铜币1336枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1460回复:1

Delphi Example of a NotesView Dataset

楼主#
更多 发布于:2003-09-03 21:42
procedure TMapForm.NotesButtonClick(Sender: TObject);
var
 NVI: Variant;
 ds: Dataset;
begin
 try
  { Create a new NotesViewInfo object.
    CreateOleObject is found in the 'ComObj' package }
  NVI := CreateOleObject('MapX.NotesViewInfo.4');

  { Change this to point to the appropriate server and
    database; a sample database is included on the MapX CD.
    Leave the Server field empty if accessing a local
    database }
  NVI.Server := '';
  NVI.Database := 'C:\Windows\Desktop\LotusNotes\Notesamp.nsf';

  NVI.View := 'NS View';

  ds := Map1.Datasets.Add(miDataSetNotesView, NVI, 'NotesDS', 'State', EmptyParam, EmptyParam, EmptyParam, EmptyParam);

  ds.Themes.Add(miThemeRanged, 'Value', 'NotesThematic', EmptyParam);
 except
  on E: EOleException do
   Application.MessageBox(PChar(E.Message), 'Error',
    MB_OK or MB_ICONERROR);
 end;
end;
喜欢0 评分0
愿意和大家交朋友! QQ:47559983 MSN:shaolun_yuan@hotmail.com eMail:shaolun-yuan@163.com
xiaonai
路人甲
路人甲
  • 注册日期2003-11-27
  • 发帖数87
  • QQ
  • 铜币418枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2003-11-27 20:32
谢谢
举报 回复(0) 喜欢(0)     评分
游客

返回顶部