Re: convert rtf to plain text

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The 'RICHTEXT.RichtextCtrl' ActiveX control might be the Microsoft Rich
Textbox Control 6.0 (from VB6) that you can download from the following
page:

http://www.mediamonkey.com/wiki/index.php/Scripting_Resources

or:
http://activex.microsoft.com/controls/vb6/RICHTX32.CAB

You might have some permission issue running this from SQL-Server, I don't
know.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"tinique" <u37370@uwe> wrote in message news:7815a97b70b90@xxxxxx
can anybody please tell me how to use below sql function.I have a
requirement to convert rtf formatted string as plain text from sql
table.I found below sql function in google search. but I dont know how
to use this.what is 'RICHTEXT.RichtextCtrl' ?

CREATE function dbo.RTF2Text(@in varchar(8000)) RETURNS varchar(8000)
AS
BEGIN
DECLARE @object int
DECLARE @hr int
DECLARE @out varchar(8000)
-- Create an object that points to the S
-- QL Server
EXEC @hr = sp_OACreate 'RICHTEXT.RichtextCtrl', @object OUT
EXEC @hr = sp_OASetProperty @object, 'TextRTF', @in
EXEC @hr = sp_OAGetProperty @object, 'Text', @out OUT
EXEC @hr = sp_OADestroy @object
RETURN @out
END
GO

How can I run in the SQL server? Need to download RICHTEXT.RichtextCtrl
activeX?? THANKS!



.



Relevant Pages

  • Sql Express (Merge Subscriber) / SQL Server 2000 (Merge Publisher)
    ... Previously we were running MSDE on a client machine and SQL Server 2000 at ... running the Merge ActiveX Control or running a COM enabled control with RMO. ...
    (microsoft.public.sqlserver.replication)
  • Re: Simple division
    ... Sylvain, maybe this will help. ... This is the SQL. ... Sylvain Lafontaine, ing. ... you will have rounding & truncating problem dividing two tinyint as ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Inserting Records into SQL tables
    ... Thanks Sylvain that helped to explain the phenomona... ... as to Unique fields is apparently wiped out and the Linked Table Manager DOES ... >> View in SQL and was able to add a record so I would think that the View ...
    (microsoft.public.access.forms)
  • Re: Sql Express (Merge Subscriber) / SQL Server 2000 (Merge Publisher)
    ... the publisher must also be SQL 2005 Workgroup edition or above. ... longer supported on Vista. ... running the Merge ActiveX Control or running a COM enabled control with RMO. ...
    (microsoft.public.sqlserver.replication)
  • Re: Sql Express (Merge Subscriber) / SQL Server 2000 (Merge Publisher)
    ... pull subscription from sql server 2000? ... Head Office running Merge Replication. ... running the Merge ActiveX Control to manage the replication process, ... longer supported on Vista. ...
    (microsoft.public.sqlserver.replication)