473,385 Members | 1,944 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,385 software developers and data experts.

Creating a dynamic Crytsal Report

Hi,

Hope I've posted to the right groups.

I'm trying create a Crystal Report for the first time using C# (novice
at that as well). The CR I can handel. What I want to do is to have a
whole bunch of fields in my application (winforms) which the user can
select to include in the report or not.

I believe I can use the CR Engine to change the report at runtime. Here
is my problem. If there's 20 items the user can select to include in
the report, for argument sake, in the report header. You would need to
put all 20 items in the report header section. Even though you could at
runtime show/hide what is displayed, the space each one takes is the
same, and so if the user selects 1 or 2 items, then they will display,
but the other 18 or 19 items would simply be blank spaces.

I want to allow the user be able to select data, and charts/graphs, so
they fully customize the report, but can't think of a way around the
spacing issue. Can this be done in the built in version of CR? Is there
another reporting package which is better suited to what I want to do?

I would've thought that this would be quite a common request. Allowing
the user to customize the report before generating it.

Thanks in advanced.

Puunda

Oct 21 '05 #1
3 1787

There are always other options. But lets answer the question at hand, and
make no mistake I am not a CR expert and I don't like CR.

You would like to allow the user to specify 1:20 data elements to be
displayed. That tells me you will need 40 formula fields, and 20 paramater
fields.

20 Paramater fields state what data elements are turned on, simple a
boolean.
20 for the headers, 20 for the data. Conditionally, these will look at the
paramaters and display the appropriate values or blanks. This allows you to
be dynamic.

I hope that was clear.
As to other solutions. The simplest would be HTML output using XML and CSS
stylesheets, this would allow for totals and such, barring that, CSV files
that populate excel or 123 would work as well. Of course if you have it
available, I would say that Access make an excellent reporting tool.

<pu****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

Hope I've posted to the right groups.

I'm trying create a Crystal Report for the first time using C# (novice
at that as well). The CR I can handel. What I want to do is to have a
whole bunch of fields in my application (winforms) which the user can
select to include in the report or not.

I believe I can use the CR Engine to change the report at runtime. Here
is my problem. If there's 20 items the user can select to include in
the report, for argument sake, in the report header. You would need to
put all 20 items in the report header section. Even though you could at
runtime show/hide what is displayed, the space each one takes is the
same, and so if the user selects 1 or 2 items, then they will display,
but the other 18 or 19 items would simply be blank spaces.

I want to allow the user be able to select data, and charts/graphs, so
they fully customize the report, but can't think of a way around the
spacing issue. Can this be done in the built in version of CR? Is there
another reporting package which is better suited to what I want to do?

I would've thought that this would be quite a common request. Allowing
the user to customize the report before generating it.

Thanks in advanced.

Puunda

Oct 21 '05 #2
You can embed multiple data items in a text field in CR. CR will then
format the text field appropriately: if some items "disappear" then the
other items will flow leftward to take up the space. As AMDRIT points
out, the best way is to use boolean parameters and formulae within
Crystal: each formula returns the desired data item plus any desired
padding space if the parameter says to turn it "on", and returns an
empty string if the parameter says to turn that data item "off".

The other possibility, for larger data items, is to each one in its own
section, and instruct Crystal to suppress the section if it's blank (in
section options).

Yes, this does limit what you can do in your reports, but then Crystal
isn't really designed to dynamically "flow" report items very well.

Oct 21 '05 #3
Some things which I had forgot to mention were that this report is
designed to be either printed or saved as a pdf then emailed. It also
includes a lot of graphs/chart etc, the the user would also want to be
able to select on creation. Is there a way of accomindating this
feature using CR?

Thanks again,

Puunda

Oct 24 '05 #4

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

Similar topics

0
by: rroca | last post by:
I var a report which is designed to represent a form. The detail rows need to be seperated by lines. I am recieving mmy data accirately from a SQL database. The report works fine; however whjen...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
1
by: authorking | last post by:
I had just binded a DataSet obj to a crytstal report obj with the following code: crystal_report.setdatasource(DataSet obj); but how can I make the dataset's selected data field to be displayed in...
3
by: puunda | last post by:
Hi, Hope I've posted to the right groups. I'm trying create a Crystal Report for the first time using C# (novice at that as well). The CR I can handel. What I want to do is to have a whole...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
3
by: veaux | last post by:
Adobe has WAY to many forums and I wasn't sure which was correct so thought I'd try here first. I'm trying to see if there is a product that will allow us to create a large (1,100 pg) directory,...
0
by: sapsy | last post by:
How can i extract report sql from my Crystal report using c# Thanks Rohit
5
by: ofilha | last post by:
I have created a report in design mode. However, some of the fields i need are dynamic. That is, i have a series of fields text boxes mostly that must show up only as needed. I also have some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.