473,545 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to access textObject in crystalreport

Hi,

I'm trying to find my way in my first crystalreport. To make a summary I
need of course put text and results on it. There is a TextObject, but
how do I reach it from code ?

--
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz
Nov 4 '06 #1
2 7108
I found how to access it. But I dont have a Text property, can someone
help ?

also the way to access is seems difficult. Is there a better one ?

// Seems I can access is as this:
Console.WriteLi ne(CrystalRepor t61.ReportDefin ition.Sections["Section5"].ReportObjects["Text5"].ToString());
// Seems to be a: CrystalDecision s.CrystalReport s.Engine.TextOb ject
//(CrystalDecisio ns.CrystalRepor ts.Engine.TextO bject)(CrystalR eport61.ReportD efinition.Secti ons["Section5"].ReportObjects["Text5"]).Text
= "hello";

--
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz

Wilfried Mestdagh wrote:
Hi,

I'm trying to find my way in my first crystalreport. To make a summary I
need of course put text and results on it. There is a TextObject, but
how do I reach it from code ?
Nov 4 '06 #2
Hello,

I think I found it :)
It is hard way to find this :)

using CrystalDecision s.CrystalReport s.Engine;

TextObject text5;
text5 =
(TextObject)Cry stalReport61.Re portDefinition. Sections["Section5"].ReportObjects["Text5"];
text5.Text = "It works";

--
rgds, Wilfried [MapPoint MVP]
http://www.mestdagh.biz
Nov 4 '06 #3

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

Similar topics

0
1594
by: s-galit | last post by:
hi, i have a formula parameter in my crystalReport how can i initalize the parameter so that in every line in the crystalReport the parameter will have a different string? how to get to line in crystalReport? thanks thats what i have wrote till now but im getting in my field only "-" (in every line) For i = 0 To 9
0
7757
by: Matt Theule | last post by:
Visual Studio 2002, Crystal Reports.NET I am unable to set the text of a text object in a crystal reports report. I have found lots of examples for doing this, and what I have does not throw any errors or warnings, but in my displayed report, the textobject in question is not being changed. Code: crReport1 Rpt = new crReport1 ();...
0
1524
by: Matt Theule | last post by:
Visual Studio 2002, Crystal Reports.NET I am unable to set the text of a text object in a crystal reports report. I have found lots of examples for doing this, and what I have does not throw any errors or warnings, but in my displayed report, the textobject in question is not being changed. Code: crReport1 Rpt = new crReport1 ();...
3
15517
by: redneon | last post by:
I've populated a DataSet in my C# program and verified that it contains the data I passed it. I've then created a blank CrystalReport and set it's DataSource to my DataSet. Then I created a CrystalReportViewer and set it's ReportSource to my CrystalReport. When I run the program though nothing get's shown in my viewer. The following is how I...
2
8467
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so many features buried in the sample but all I want to know is a very simple thing, how to create bar charts with CrystalReport in VS.NET using SQL...
0
1564
by: agcabutotan | last post by:
Hi to everyone. I am new in this thread, please help me. I'm having difficulty with CrystalReport.Net. I have a completed project written and compiled in VB.Net (and I used CrystalReport.Net in all of my reports). I used to connect in our SQL server using ADO datasets and It worked. Long after I created a new SQL server (not a member from...
1
1806
by: mhsasono | last post by:
Hi all, Has anybody experienced with CrystalReport? My question is: Does CrystalReport have capability to print the Microsoft Word document? Reason: I want to know CrystalReport capability since now I am in the middle of developing a system that generate a report or document from various resources, e.g. some parts are Oracle fields and...
0
1376
by: amri | last post by:
How to define CrystalReport object in ASP.NET ? I take a CrystalReportViewer & CrystalReportSource........& their name is in CrystalReport is respectively CrystalReportViewer1 & CrystalReportSource1..............& I take a textbox object in CrystalReport ..............How can I define this textbox in ASP.NET form.........? advance Thanx...
0
1209
by: amri | last post by:
How to define CrystalReport object in ASP.NET ? I take a CrystalReportViewer & CrystalReportSource........& their name is in CrystalReport is respectively CrystalReportViewer1 & CrystalReportSource1..............& I take a textbox object in CrystalReport ..............How can I define this textbox in ASP.NET web form.........?
0
7468
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7757
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5329
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4945
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1884
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.