|Date: ||Mon, 6 Jul 1998 13:03:18 -0500|
|Reply-To: ||"Bauer, John" <bauer@SPSS.COM>|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>|
|From: ||"Bauer, John" <bauer@SPSS.COM>|
|Subject: ||Re: Output to VB. HOW?|
SPSS PivotTables, SPSSRTFText controls, etc. cannot be directly
instantiated in a VB program. Instead, you will have to paste them into
a suitable container.
By default SPSS will not place PivotTables (or other controls) on the
clipboard as ActiveX controls. To allow ActiveX controls to be pasted,
run the batch file OBJS-ON.BAT which may be found in the SPSS directory
(you can just double-click it in the Explorer). To restore the default
behavior, run OBJS-OFF.BAT instead. Or, you can check the .BAT file to
see what Registry setting is being altered, and make sure that the value
is correct with an API call from your VB app.
The reason for this choice of default behavior is that Word 6 and many
other popular applications cannot distinguish older OCX controls from
ActiveX controls, and such programs will crash immediately if the wrong
format is chosen when pasting objects. See the README file for further
John BauerSPSS Developer's Kit Support
>From: Marso, David
>Sent: Tuesday, June 30, 1998 8:55 PM
>Subject: Re: Output to VB. HOW?
>See the SPSS DevKit VB examples at
>kuoching <kuoching@TM.NET.MY> wrote in article
>> How to send SPSS's object(result) to VB rather than convert the output to
>> picture as in 1 of the samples which is downloadable from SPSS site.