PC Review


Reply
Thread Tools Rate Thread

Crystal Reports, Viewing the report

 
 
Atley
Guest
Posts: n/a
 
      4th Mar 2004
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...


 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      4th Mar 2004
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
"Atley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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...
>
>



 
Reply With Quote
 
Brian Bischof
Guest
Posts: n/a
 
      4th Mar 2004

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







"Atley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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...
>
>



 
Reply With Quote
 
Atley
Guest
Posts: n/a
 
      4th Mar 2004
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.



"William Ryan eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> "Atley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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...
> >
> >

>
>



 
Reply With Quote
 
Atley
Guest
Posts: n/a
 
      4th Mar 2004
Very Cool,

I got more on this issue in this newsgroup than in the VB one... Thanks



"Brian Bischof" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
>
>
>
>
>
>
>
> "Atley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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...
> >
> >

>
>



 
Reply With Quote
 
éric
Guest
Posts: n/a
 
      5th Mar 2004
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

"Atley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>
>
> "William Ryan eMVP" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> > "Atley" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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...
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Atley
Guest
Posts: n/a
 
      5th Mar 2004
Where would I get the Crystal Software? I didn't see it on their website.

is it included in the Visual Studio Enterprise Architect?



"éric" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
> "Atley" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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.
> >
> >
> >
> > "William Ryan eMVP" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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
> > > "Atley" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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...
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
éric
Guest
Posts: n/a
 
      5th Mar 2004
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

"Atley" <(E-Mail Removed)> wrote in message
news:%23Bl9%(E-Mail Removed)...
> Where would I get the Crystal Software? I didn't see it on their website.
>
> is it included in the Visual Studio Enterprise Architect?
>
>
>
> "éric" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> > "Atley" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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.
> > >
> > >
> > >
> > > "William Ryan eMVP" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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
> > > > "Atley" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > 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...
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ayaz Ahmed
Guest
Posts: n/a
 
      11th Mar 2004

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
First time crystal report user - How do i create a crystal reports from asp.net web form? Learner Microsoft ASP .NET 1 11th Jan 2006 08:20 PM
Crystal Reports Viewing - Help! Shahid Juma Microsoft ASP .NET 0 4th Oct 2005 05:42 PM
Viewing Crystal Reports heathereandrews Microsoft Access Reports 0 3rd May 2005 05:42 PM
Viewing Crystal Reports =?Utf-8?B?Q29ubnVsbA==?= Microsoft VB .NET 1 30th May 2004 05:47 AM
Crystal Reports, Viewing The Report Atley Microsoft VB .NET 2 4th Mar 2004 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 AM.