473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Crystal RTF question with VB.Net

Hi,

I am trying to get a rich text box to display some text in rich text
format and am having a very difficult time getting it to work properly.
Here is what I am doing...

I have created a crystal report that only has the field (called Memo1)
that I want to display. I set the TextFormat property of the field to
crRTFText (and I also made sure that the "Text Interpreter" under the
Paragraph tab of the Format menu was also set to "RTF Text").

The text I want to display is saved in an Access DB, already in rich
text format. I am connecting to the db using ADO.NET and am able to
populate the corresponding field on my crystal report. The problem is
that when the report displays, it is showing all of the rich text code
rather than the text formatted as such.

I also tried to put a Text Object on my report and drag the Memo1 field
into it, but that did not work either as I got the same result.

This is really driving me up the wall, and I will be very grateful if
anyone is able to help me with this issue. Thank you very much!

--Matt

Nov 21 '05 #1
2 3221
Matt,

There is a VB6 control 'richtx32.ocx'. You can add this from references
'COM' objects.

HTH,

Phil
"GatorBait" <MP****@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Hi,

I am trying to get a rich text box to display some text in rich text
format and am having a very difficult time getting it to work properly.
Here is what I am doing...

I have created a crystal report that only has the field (called Memo1)
that I want to display. I set the TextFormat property of the field to
crRTFText (and I also made sure that the "Text Interpreter" under the
Paragraph tab of the Format menu was also set to "RTF Text").

The text I want to display is saved in an Access DB, already in rich
text format. I am connecting to the db using ADO.NET and am able to
populate the corresponding field on my crystal report. The problem is
that when the report displays, it is showing all of the rich text code
rather than the text formatted as such.

I also tried to put a Text Object on my report and drag the Memo1 field
into it, but that did not work either as I got the same result.

This is really driving me up the wall, and I will be very grateful if
anyone is able to help me with this issue. Thank you very much!

--Matt

Nov 21 '05 #2
Phil,

Thank you very much for your response. I was able to find the
reference you mentioned and I added it to my project and I have a
feeling that there is more that I need to do. I'm a newbie to .NET,
I've only been using it for about a month now, can you please give me
some more details on what else I need to do? Here is the code I am
using:

Dim conStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\QuickFL\QFWindata.mdb"
Dim conn As OleDbConnection = New OleDbConnection(conStr)
Dim sqlStr As String = "SELECT " & _
"*" & _
"FROM " & _
"Letters " & _
"WHERE " & _
"Client_ID = 1141751058"
Dim da As OleDbDataAdapter = New OleDbDataAdapter(sqlStr, conn)
Dim ds As DataSet = New DataSet()
Dim rpt As New Letter()

da.Fill(ds, "tLetters")

rpt.SetDataSource(ds.Tables("tLetters"))
fReportViewer = New ReportViewer()
fReportViewer.crvMain.ReportSource = rpt
fReportViewer.MdiParent = Me.MdiParent
fReportViewer.Show()

Thanks again!

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
0
by: Dr. Indera | last post by:
hello, i previously posted the questions below on several crystal reports newsgroups, including the one for the company that makes crystal reports, but never got an answer, so i'm hoping that...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
14
by: LP | last post by:
Hi, I will be taking on a new project developing a web-based "reporting system". The first requirement I got from BI group is "we just want to look at the data". Basically, there is a huge...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: bthomas71chevy | last post by:
I have just setup a WebServer and all the applications work fine, but when every any of the applications try to generate a Crystal Report the page errors out. "File or assembly name...
2
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This...
4
by: John R. Dougherty | last post by:
I have developed an application with VB.NET, which includes the Crystal Reports (Visual Studio .NET 2003 edition) controls. I can run the application on my PC and it does work fine, but on any...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.