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

Does crystal reports always needs a database ?

Hi all,

I'm new to this whole thing. I have a bunch of text files that are created
by a software at work that keeps info one of our products. Each unit being
calibrated gets a "record" (track by serial number) which is a text file
with data. The data is almost all the same format. There is header info
about the customer, then some more specs about the product then between 5 to
14 rows of calibration data.

The software that controls the whole thing is ancient. I don't want to touch
it. It writes this text file to the network for every unit that ships out. I
need to look at the files whenever I need to. I was hoping to have a windows
form to open the text file and somehow have the report template in a crystal
report file. The windows form coud display the data and print it if required
but it looks like I need to have the data in a database... which I do not.

Is this even possible ?
Thanks in advance.
Apr 23 '07 #1
4 1902
"Rodo" <ds*****@yahoo.comwrote in message
news:syXWh.1049$nR1.209@trnddc06...
>[...] I was hoping to have a windows form to open the text file and somehow
have the report template in a crystal report file. The windows form coud
display the data and print it if required but it looks like I need to have
the data in a database... which I do not.
Crystal Reports can take the data from inside a DataSet that you provide
via the SetDataSource method of the ReportDocument. You can build the
dataset in memory with your own code, without using a database at all.

Apr 23 '07 #2
On Apr 23, 10:33 am, "Rodo" <dsp1...@yahoo.comwrote:
Hi all,

I'm new to this whole thing. I have a bunch of text files that are created
by a software at work that keeps info one of our products. Each unit being
calibrated gets a "record" (track by serial number) which is a text file
with data. The data is almost all the same format. There is header info
about the customer, then some more specs about the product then between 5 to
14 rows of calibration data.

The software that controls the whole thing is ancient. I don't want to touch
it. It writes this text file to the network for every unit that ships out. I
need to look at the files whenever I need to. I was hoping to have a windows
form to open the text file and somehow have the report template in a crystal
report file. The windows form coud display the data and print it if required
but it looks like I need to have the data in a database... which I do not.

Is this even possible ?

Thanks in advance.
Hi!

Use you own custom code to populate a dataset and then pass it to
Crystal Reports ReportDocument Object using SetDataSource Method.

The easiest way is to Design your DataSet using DataSet Designer. Then
Create Your Report using Crystal Reports and specify the Data Source
for the report as ADO.net DataSet.

Then at runtime Populate that Data Set with Data using your custom
code and then pass it on the Crystal Report using SetDataSource
Method.

If you need any further info fee free to contact me

Bye
Manu Singhal
MCP
ma********@gmail.com

Apr 23 '07 #3


I would recommend going ALL your CRs using a dataset.

CR is basically a "presentation layer", and if you seperate your code to
create a datasource (dataset) from the presentation layer, you will find
maintenance much easier.

CR talking directly to your db is "rapid development", which isn't always
"the best development".

You will also have the ability to switch to another report tool (Active
Reports?) in the future if you go with the DataSet model.


"Rodo" <ds*****@yahoo.comwrote in message
news:syXWh.1049$nR1.209@trnddc06...
Hi all,

I'm new to this whole thing. I have a bunch of text files that are created
by a software at work that keeps info one of our products. Each unit being
calibrated gets a "record" (track by serial number) which is a text file
with data. The data is almost all the same format. There is header info
about the customer, then some more specs about the product then between 5
to
14 rows of calibration data.

The software that controls the whole thing is ancient. I don't want to
touch
it. It writes this text file to the network for every unit that ships out.
I
need to look at the files whenever I need to. I was hoping to have a
windows
form to open the text file and somehow have the report template in a
crystal
report file. The windows form coud display the data and print it if
required
but it looks like I need to have the data in a database... which I do not.

Is this even possible ?
Thanks in advance.


Apr 23 '07 #4
On Apr 22, 10:33 pm, "Rodo" <dsp1...@yahoo.comwrote:
Hi all,

I'm new to this whole thing. I have a bunch of text files that are created
by a software at work that keeps info one of our products. Each unit being
calibrated gets a "record" (track by serial number) which is a text file
with data. The data is almost all the same format. There is header info
about the customer, then some more specs about the product then between 5 to
14 rows of calibration data.

The software that controls the whole thing is ancient. I don't want to touch
it. It writes this text file to the network for every unit that ships out. I
need to look at the files whenever I need to. I was hoping to have a windows
form to open the text file and somehow have the report template in a crystal
report file. The windows form coud display the data and print it if required
but it looks like I need to have the data in a database... which I do not.
I'll echo what the others have said here: you can put the data into a
DataSet and pass it to Crystal. We do that here exclusively. (Note
that Crystal has some quirks when designing from an ADO.NET data
set... some bits of the Crystal Reports Designer that deal with this
are buggy and have been for several versions. It's not a show-stopper,
just annoying.)

That said, you may want to do yourself a favour and put the data in a
database anyway, just because it will be so much more accessible for
other purposes. Whether you then decide to use Crystal to pull from
the database directly, or still feed it via a DataSet in your program,
well that's up to you.

You can write Windows services in C#, and C# has a FileSystemWatcher
class that will alert you when new files are created in a directory.
Even if you have multiple directories, you could write a small Windows
service that monitors them all and, when a new file is created by your
ancient application, parses the file and puts the information into a
database in whatever format you choose. You could then write all new
software to read the database. There would be only a short delay
between the file being created and the database being updated (a delay
that you could determine and tune in your application).

I believe that you could even cope with files being updated and, with
some cleverness, files being deleted, although I don't know whether
your ancient application does these things.

All of this doesn't necessarily help you with your reporting issue.
It's more of a springboard for later development, all without touching
the legacy app, as you said.

Apr 23 '07 #5

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

Similar topics

1
by: Chris Neal | last post by:
I recenetly purchased VB.net standard and in the box was a card saying that it included crystal reports (as it always used to) but I cannot find CR in the templates or in the toolbox. Can anyone...
1
by: jandoca | last post by:
Hi, I am new to crystal reports and I have to build some reports and call them from an ASP page and display them. I am using Crystal Reports Developer 9.0 and the client has Professional 9.0. I...
4
by: Ryan Gregg | last post by:
I've got a background service running that needs to check a database periodically and print reports whenever it finds that the data has changed. I've built a class library that scans the database...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
1
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some...
9
by: Altman | last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
0
by: The Mad Ape | last post by:
Hi experts. I am using VB.Net 2005 as my development environment. I have created an application for the Pocket PC. The data is transferred to the desktop via OpenNETCF and then I use SQL...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
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: 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
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...
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
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
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,...
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...
0
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
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...

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.