Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
memaster
Starting Member
3 Posts |
Posted - 2010-07-06 : 16:22:58
|
| HelloI try to get the following code working:DECLARE @object intDECLARE @hr intDECLARE @out varchar(8000)EXEC @hr = sp_OACreate 'RichText.RichTextCtrl', @object OUTprint @hrEXEC @hr = sp_OASetProperty @object, 'TextRTF', 'A'print @hrEXEC @hr = sp_OAGetProperty @object, 'Text', @out OUTprint @hrEXEC @hr = sp_OADestroy @objectprint @hrprint @outBut I only get this output:-2147024891-2147211481-2147211482-2147211480I found out that the first error code is something about access. But I don't know how to fix this. Can anyone help?Cheers |
|
|
slimt_slimt
Aged Yak Warrior
746 Posts |
Posted - 2010-07-07 : 01:50:57
|
add:EXEC sp_OAGetErrorInfo @object to get the error. |
 |
|
|
|
|
|