473,325 Members | 2,816 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,325 software developers and data experts.

C# - APP: trying to get to the TextObject in Subreport in Crystal Reports

Hello, experts.

I'm using C# to create WinForms application with Crystal Reports as a reporting tool.

I have three very simple table-like reports and I have one report with three subreports, every subreport on separate section and every subreport represents one of simple reports.

How can I get access to TextObject which resides in, say, Section1 of the first Subreport? Or can I get access to any Section of Subreport?

Smth like:
Expand|Select|Wrap|Line Numbers
  1. ((Reports.MyReport)report.Subreports[0]).Section1
Sep 20 '07 #1
1 4715
Atithi
5
This is how you can refer the text object


Expand|Select|Wrap|Line Numbers
  1. TextObject txtObj = (TextObject)crReportDocument.ReportDefinition.Sections["Section1"].ReportObjects[0];
Jan 22 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sean G. | last post by:
Howdy, I have a series of crystal reports, some have subreports, that I need to put together in one file on one click form the user. So put I imported the separate rpt files as subreports into...
0
by: Aaron | last post by:
The following code works fine when previewing a Crystal report using ASP, EXCEPT when it gets to a report using a SubReport and its associated parameters. The whole report just comes up blank with...
0
by: Chibyboy | last post by:
Hi fellow developers, I have a crystal report with a subreport whose (N of M) special field only shows the page number at the last page of the subreport. The page number is on the subreport and...
0
by: amber | last post by:
Hello, I have created a report using Crystal Reports 9 in VB.NET. I'm having trouble with a subreport. I have created a view in SQL server, and a dataset in VB.NET based on that view. I'm a bit...
0
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...
0
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...
1
by: Josep Blanch | last post by:
Hi, I'm making a report with Crystal Reports and I use a TextObjet witch I assign a string, but I need to show the text in multiline. How I could do it? Thanks!
0
by: C | last post by:
Hi, I have a main Report which has a SubReport. This SubReport also has a SubReport. I set the data of my main Report and Subreport through code DataSet dsMainReport =...
5
by: Pasan Indeewara | last post by:
Hi, I want to assign some parameter values passed into crystal report constructor to textobjects on crystal reports. Is there a way of doing it? coz when i checked intellisence does not show the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.