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

Converting an old CR 8.5 to CR 9.0, using datasets instead

Rod
We've got an old VB6 application we wrote years ago, that we're working on
converting parts of, to an ASP.NET application. So far, the work is going
well.

Now I'm looking at trying to convert the Crystal Reports to the new system.
To use the terminology that Crystal uses, the old VB6 application used a
"pull" methodology, meaning that the stored procedure was specified within
the .RPT file, and parameters were all there, and when you invoked it, you
passed an array of parameters (and formulas, if you used any) to the report
so that it could run the stored procedure, giving the parameters it needs to
the stored procedure in order to run the report. (These reports are all
written using Crystal Reports 8.5.)

The new system will use Crystal Reports 9, and I would rather use a "push"
methodology instead, giving it a dataset of data that I'll have previously
filled by running the stored procedure outside of the Crystal Report.

My problem is, I don't know how to remove the stored procedure from the .RPT
file, but leave all of the formatting and design that has been written
already into the report. All of the examples that come with Crystal Reports
9 assume that you're going to be writing a report from scratch, which doesn'
t work for me.

How do I do what I am trying to do?

Rod


Nov 18 '05 #1
2 1720
Hi Rod,

Generally the .net framework has the new design for supporting the CRYSTAL
REPORT and has its class library. And the "PUSH" mode you mentioend is just
create a ReportDocument class instance which can set DataSource from a
DataSet object. And we can bind the ReportDocument with a CrystalReport
Viewer.

#ReportDocument.SetDataSource Method
http://msdn.microsoft.com/library/de...us/crystlrf/ht
ml/crlrfreportdocumentclasssetdatasourcemethodtopic.a sp

And the stored procedure is only used when we need to fill the dataset via
ado.net processing. As the
"removing the stored precdure from the .RPT file", do you mean the old VB6
rpt file? I think it is restricted by the Crystal reprot's design feature.
And you may try asking the Crystal Guys for some further assistance. Here
is a kb article on this:

#How To Get Help with Crystal Reports - International and U.S.
http://support.microsoft.com/default...b;en-us;100368

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #2
Rod
Steven,

Thank you for replying. When the original developer wrote the dozen or so
Crystal Reports that need converting, she assigned the stored procedure into
the report itself. (I think the report actually uses ODBC, requiring a DSN
on the server.) It required you to feed the parameters using the
ParameterFields collection. However, at least as far as I understand it, if
I were to instead give Crystal Reports a dataset, then the .RPT file
wouldn't have to reference a stored procedure and we wouldn't have to use
the ParameterFields collection (assuming that the ParameterFields collection
is still a part of version 9). The important thing to me is, if at all
possible, can I leave all of the formatting that she did (placing of
database fields onto the report, headings, etc), because that represents a
very significant amount of work. I would, if possible, like to leave the
design of the report in place but change the mechanism by which the report
gets its data, rather than design a new report from scratch.

I'll see what the "Crystal guys" have to say about this.

Rod

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:3M**************@cpmsftngxa10.phx.gbl...
Hi Rod,

Generally the .net framework has the new design for supporting the CRYSTAL
REPORT and has its class library. And the "PUSH" mode you mentioend is just create a ReportDocument class instance which can set DataSource from a
DataSet object. And we can bind the ReportDocument with a CrystalReport
Viewer.

#ReportDocument.SetDataSource Method
http://msdn.microsoft.com/library/de...us/crystlrf/ht ml/crlrfreportdocumentclasssetdatasourcemethodtopic.a sp

And the stored procedure is only used when we need to fill the dataset via
ado.net processing. As the
"removing the stored precdure from the .RPT file", do you mean the old VB6
rpt file? I think it is restricted by the Crystal reprot's design feature.
And you may try asking the Crystal Guys for some further assistance. Here
is a kb article on this:

#How To Get Help with Crystal Reports - International and U.S.
http://support.microsoft.com/default...b;en-us;100368

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

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

Similar topics

1
by: amitbadgi | last post by:
Hi I am converting an asp application to asp.net, I am geeting the following error, Compiler Error Message: BC30201: Expression expected. Source Error: Line 299:<li><a
2
by: Fredrik Rodin | last post by:
All, I'm having problems with my resource manager in ASP.NET 2.0 after conversion from ASP.NET 1.1. Here is a background: In ASP.NET 1.1 All my user controls and aspx pages inherit from...
19
by: Larry Lard | last post by:
In the old days (VB3 era), there was a thing called the Data Control, and you could use it to databind controls on forms to datasources, and so (as the marketing speak goes), 'create database...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
0
by: news.microsoft.com | last post by:
Hi! I have developed both a Web Service and a client application, and they works fine. All classes used in the Web Service interface are declared in an assembly named Entities, that is...
10
by: Ron | last post by:
I want to calculate the surface area of a sphere from an inputed radius with option strict on. I guess I am not converting something correctly. Here is what I am doing: I have a textbox...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
0
by: S.Tedeschi | last post by:
Hi all; as posted some days ago, I'm converting an on-line app; I used to heavily rely on strongly-typed DataSets directly dropped onto pages, and so viewed by code(-behind) as well. In the next...
9
by: gardnern | last post by:
We have X number of data sets, of Y length each. For example... Small, Medium, Large and Red, Green, Blue, Yellow We need to generate a list of all possibilities Small Red
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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.