> Getting the former. Not the latter.
>
[quoted text clipped - 18 lines]
>
> Tony K
I find the problem with Crystal is that it is not very good at handling
reports where you need to compare records with each other in the same table.
For example, if you want to find the newest record before a certain date,
where the date is selected from a different table.
It's difficult to make calendars, too. For example if you have an
appointment database that only has records for those days that have
appointments, it is hard to show the days without appointments because
Crystal's reporting model needs a record to display.
My preferred reporting model is to have a VB program output an MS Word
document. The VB PrintDocument object model is great, but it doesn't allow
you to save the printout in a useful format.

Signature
David Streeter
Synchrotech Software
Sydney Australia
> Hi again Tony,
> I am not sure I understand the problem. Is CR not able to connect to the
[quoted text clipped - 36 lines]
> >
> > Tony K
Terry - 29 Jan 2008 22:53 GMT
Seems to me, both cases are good examples of where you would want to suck the
data into a DataSet, add records programatically (calendar) or filter based
on some other data and then after doing the manipulation - shove the DS to CR
to report on. That way you can concentrate on the logic and not spend time
with a ruler trying to figure out where to place a piece of data on the
report.

Signature
Terry
> I find the problem with Crystal is that it is not very good at handling
> reports where you need to compare records with each other in the same table.
[quoted text clipped - 50 lines]
> > >
> > > Tony K
Terry,
I did try just a simple report with 3 fields from 1 table. I know there
was/is data in the table I was trying to create a report on. Started from
scratch (with a new form, new viewer...even tried selecting the form from
the smart tag for the CRViewer. I got nothing. It was then I tried, just
for the heck of it, to create a new connection in the Set DataSource
Location from the field explorer. When I noticed that connecting to an
Access/Excel file I could get data using the same form. Without changing
the properties of the fields. Now, I made another connection to connect to
a Jet/OLE DB and that also works. I can view this information by doing the
following. Right click on the Database Fields (from Field Explorer).
Select "Set Datasource Location". Click on the + next to report to expand.
Click on the + next to the database. Click on the + next to properties.
View the Database Type. If it is an ADO.NET Dataset or...from my current
locations "Inventory_management_databaseDataSet" I do not receive any data.
If I create a new connection as a Microsoft.Jet.OLEDB.4.0 Provider / OLE DB
(ADO) Database Type with a path such as "C:\Users\Tony\Documents\...." I can
view the difficult query you helped me on last week. It works GREAT...
Until I deploy to another laptop because the database is not in the same
location as on my laptop. (ps. I have a registry entry I programmed for if
the user wants to move the DB to another location. That is why I would
prefer my "current connection" under the Set Datasource Location. I hope
this explains my dilemma.
Again...thanks for the great info on the parameters. If you would like, you
can email me your email address, I can zip my solution and you can see my
messy code...but it does work.
Tony K
> Hi again Tony,
> I am not sure I understand the problem. Is CR not able to connect to
[quoted text clipped - 51 lines]
>>
>> Tony K
Terry - 30 Jan 2008 13:11 GMT
Hi Tony,
Sorry, but I am still confused. Some of what you are talking about is at
design time and some is at run time. At design time, your DS won't have any
data in it to report on. But then if you are using a DS, why does CR need to
go to the Db? Don't you fill the DS in code yourself? You originally talked
about having a DGV of the data - does that work?
As far as moving to different machines, creating different paths to the
data, you can set the connection for the report at run time, as I just did a
little poking around to see - never have really done it since I am using SQL
server express.
Dim i As CrystalDecisions.Shared.IConnectionInfo =
myrpt.DataSourceConnections(0)
'you may have to fool with the right hand side to get the right connection -
2 more overloads
i.SetConnection(server, database, user, password)
HTH

Signature
Terry
> Terry,
> I did try just a simple report with 3 fields from 1 table. I know there
[quoted text clipped - 81 lines]
> >>
> >> Tony K
Pankaj - 20 May 2008 16:16 GMT
I'm having more than 30 reports in a project and everytime i move the reports to another server i need to change the datasource location of every report separately. Is there any way i can change the datasource location for all the reports through some code. I'm using typed dataset for showing the data in the reports. I would like to get the solution ASAP.
Mayur H Chauhan - 20 May 2008 16:51 GMT
Pankaj,
As per my understanding, you might be binding Dataset to the
report control. In this case, while populating dataset from the database,
read the datasource information from the configuration file which should be
ship along with your tool.
Mayur
> I'm having more than 30 reports in a project and everytime i move the
> reports to another server i need to change the datasource location of
> every report separately. Is there any way i can change the datasource
> location for all the reports through some code. I'm using typed dataset
> for showing the data in the reports. I would like to get the solution
> ASAP.