473,480 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Crystal Report for VS.NET 2003: Adding a new FieldObject at Runtime

22 New Member
Hello,

I am creating a report that can have a varying number of columns that are only determined at run time.

I saw a solution that comes near what i want. I downloaded a collection of sample applications at businessobjects.com . The application a VB.NET windows application in vbnet_win_dynamic_report_formula.zip in the downloaded folder.

The slight problem with this solution is that you have to insert FormulaFields at design time then populate them at run time. Then you can suppress the unpopulated fields.

Is there a way of creating and inserting/adding the Fields (either TextObjects of Formula) on the fly without having to do this at design time first? I have a scenario where my columns can range from 2 to 48 and i do not want to create 48 of them at design time, but will eventually only use 2.
Aug 8 '07 #1
2 2928
dip_developer
648 Recognized Expert Contributor
Hello,

I am creating a report that can have a varying number of columns that are only determined at run time.

I saw a solution that comes near what i want. I downloaded a collection of sample applications at businessobjects.com . The application a VB.NET windows application in vbnet_win_dynamic_report_formula.zip in the downloaded folder.

The slight problem with this solution is that you have to insert FormulaFields at design time then populate them at run time. Then you can suppress the unpopulated fields.

Is there a way of creating and inserting/adding the Fields (either TextObjects of Formula) on the fly without having to do this at design time first? I have a scenario where my columns can range from 2 to 48 and i do not want to create 48 of them at design time, but will eventually only use 2.
you can do what you want........please refer to this excellent article

Dynamic crystal report generation
Aug 8 '07 #2
gkinu
22 New Member
Thank you very much. I had actually seen this article earlier. But this article prescribes that you create a maximum number of FormulaFields at design time then suppress those to which there are no values assigned at run time. My question is, is there a way of creating the Fields at Runtime rather than DesignTime?
Aug 8 '07 #3

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

Similar topics

1
19119
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...
4
14226
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I...
6
4093
by: Dr. Indera | last post by:
hello, much to my surprise, the version of crystal that comes with visual studio.net 2003 does not have a report preview window. i found out that i have to build a form in visual basic.net and...
4
1130
by: Grant Stanley | last post by:
I'm developing an application in VS.Net 2003 using C#, which uses Crystal Reports. When creating each report, crystal asks where the database to use is, so I specify our SQL server using the ADO...
2
760
by: Tim Burda | last post by:
I posted this in another forum, but I'm adding it here to for more exposure.I am using Visual Studio 2003 and trying to get Crystal Reports to produce output. If you have any ideas, please let me...
2
2253
by: Guy Mahieu | last post by:
All, Is there a simple way to manipulate the details section of a Crystal Report at runtime on a per-record basis? The reason I want to do this is that my database table contains an image url...
1
1390
by: Manny | last post by:
I'm having a problem constructing an ASP.NET page that displays a Crystal Reports .rpt file using the CrystalReportViewer Control. Everytime I execute it from VS.NET 2003 it never loads and "hangs"...
2
12444
by: blackdevil1979 | last post by:
Hello, Is there a way to format the data when it is passed into the Crystal Report(CR).. for example.. In the original table, a number may be left aligned, how to change it to right alignment?.....
0
2245
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a...
0
7041
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
6908
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
7043
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,...
1
6737
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6921
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...
0
4481
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...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.