Crystal Reports, Viewing the report

  • Thread starter Thread starter Atley
  • Start date Start date
A

Atley

I have imbedded a report in my project (added a report to my project and set
some fields)

How the heck do I access the report in my program?

I have looked on MSDN and searched for a walkthrough...

I can't find anything that tells me how to use the report viewer or how to
bring it up on screen...

isn't there a way to bring up the report in a test view when you are
creating it? if not that is horrible and should be created.

btw, I am using Visual Studio.net 2003 Ent. Arch and my reports are imbedded
in my EXE, not saved as .rpt files when the applicaiton runs.

Thanks, this used to be so much different...
 
First, if you are trying to do this with the Compact Framework, you're out
of luck.
However if this is a desktop app The Test View support isn't in Crystal with
VS.NET. I agree, it needs to be implemented.

To reference everything, here's an example

Here's a code snippet:

Dim vw As New ReportViewerForm ' This is a form with a Crystal Report Viewer
on it.
Dim lr As New Transcriptionists
vw.vwr2.ReportSource = lr 'vwr2 is the name of the Viewer on form vw
vw.Show()

You can set the properties of the viewer, the selection formula etc from
here.

As far as rpt files, reports are now compiled and they are strongly typed
which is definitely much different from previous versions. It has many
benefits and the only downside is the viewer (which is a big deal but
hopefully will be resolved soon).

HTH,

Bill
 
Hi Atley,

I have a free ebook that you can download that tells you how to integrate
Crystal Reports with .NET. It walks you through each step of the way.

Re previewing a report while you are designing it, you can't do it. However,
if you are writing an ASP.NET page and using the ReportDocument component,
then you can view it in design mode. Its very strange that they let you do
this with ASP.NET but not Windows forms.

Anyway, check out my free ebook and you'll be set.


Brian Bischof

A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented


http://www.crystalreportsbook.com/123aspx.asp
 
Thanks, this group is in my news viewer right above the VB languages one and
it got stuck in here by accident... thanks for your patience and you
response.

BTW, is there a report tool for CF.net? if not, it is something that might
be worthwhile looking into building.
 
syware has a software called reportce which can report from a sqlce db
crystal has a thing called 'report parts' which can be used to display
standard reports on a variety of devices like phones and pdas

Regards,

éric
 
Where would I get the Crystal Software? I didn't see it on their website.

is it included in the Visual Studio Enterprise Architect?
 
I don't think it is included in VS.Net. you have to buy a certain version(I
don't know which one) of crystal reports to get it. Mind you I am not sure
if they are still doing this since they got bought out a few months ago. I
saw a demo of the Crystal Report Parts for devices about 12 months ago.

Regards,

éric
 
Hello,

Try this code to view crystal report through visual basic


first draw crystal report control on visual basic form

and try this code on form load

CrystalReport1.Connect = Module1.Connection

pathNAme = App.Path & "\report.rpt"
CrystalReport1.ReportFileName = pathNAme
CrystalReport1.Action = True



Thanks,



Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 
Back
Top