FileNET and OLE2 in Forms

From: John Estess <jestess_at_wcnet.net>
Date: Mon, 18 Dec 2000 00:16:49 -0600
Message-ID: <Y%h%5.36274$n51.670946_at_e420r-atl1.usenetserver.com>


I'm getting my butt kicked trying just trying to open a regular file with the FileNET viewer using OLE2. Yes, I plan on doing much more later, but I've burned many hours trying to learn about forms OLE2 interfaces and the FileNET quagmire called instructions. This is what I have so far - can anyone help? Since I don't have news at work, could you also CC comments to jestess_at_stpegs.com? Thanks.

DECLARE

 application ole2.obj_type;
 documents   ole2.obj_type;
 document    ole2.obj_type;
 windows     ole2.obj_type;
 window      ole2.obj_type;
 ctrl        ole2.obj_type;

BEGIN
 application := ole2.create_obj('IDMViewerApp.APPLICATION');

 ole2.set_property(application,'Visible','True');
 ole2.invoke(application,'Activate');
 ole2.set_property(application,'WindowState','1');

 documents := ole2.invoke_obj(application, 'Documents');

 document := ole2.invoke_obj(documents,'Add');  ole2.set_property(document,'Visible','True');

  windows := ole2.invoke_obj(document, 'Windows');   window := ole2.invoke_obj(windows,'Item');   ole2.set_property(window,'Visible','True');

ole2.set_property(window,'IDMViewerCtrl1.DocumentFilename','c:\Kristin.jpg') ;

END; Received on Mon Dec 18 2000 - 07:16:49 CET

Original text of this message