Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2005, 01:25 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default Display RTF data From oracle BLOB to RichTextBox

Hi All,

i have a richtextbox control in which i can paste any content from a word document. it may contain bold , color and formatted characters. i have stored this content to the oracle table ( the column used is of type BLOB) using AppendChunk property and retrieved & displayed again in the rich text control using getchunk property. my only problem is ... the retrieved contents are only in the plain text format (bold & color attributes were gone) . how can i display the content in the same manner i have stored? pls help me asap.

Thanks in advance.

Best Regards,
A. Saravanan.
__________________
Best Regards,
Saran.
 
Old July 22nd, 2005, 04:51 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

Check this link
http://in.geocities.com/raghavendra_mudugal/RTFData.zip

It contains the vb project. I have written the
instructions at the end of the code on how get
back the format that you have typed.

Please check this and let me know

Hope this helps.

With Regards,
Raghavendra Mudugal
 
Old July 26th, 2005, 12:03 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default

Thanks Raghav!

Thanks a Lot!

earlier, I have tried with textRTF property to store the data, but while retrieving i 've used just text property and got fedup. here is the code i have used after ur valuable suggesstion

=========

rs(2).AppendChunk (RichTextBox1.TextRTF)

...

...

RichTextBox1.TextRTF = rs(2).GetChunk(rs(2).ActualSize)

=========

Thank You Very Much Once Again for your Kind & timely help.

sorry for the delayed reply. i was out of station.

Best Regards,
Saran.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Display RTF data in crystal report 8.5 using VB shahvismay76 Crystal Reports 1 May 16th, 2013 07:37 AM
BLOB: file is empty after retrieving blob data thr taraprasad Pro JSP 0 May 22nd, 2008 10:02 AM
Display RTF data From oracle LONG to RichTextBox gotu Beginning VB 6 0 October 20th, 2006 09:43 AM
insert image in to oracle blob data type rajesh_bamane Pro VB Databases 3 July 15th, 2006 02:06 AM
problem in inserting blob data to oracle selphyr JSP Basics 2 December 2nd, 2004 01:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.