Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?
From: Brian Bischof (BrianNoSpam_at_BischofSystems.com)
Date: 05/14/04
- Next message: Abdolhosein Vakilzadeh Ebrahimi: "Re: Summary of data not in range of SELECT EXPERT"
- Previous message: Bob Holmes: "Re: Running Total"
- In reply to: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Next in thread: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Reply: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 10:41:53 -0700
Hi Michael,
I think I understand now. You want to display the viewer control, but not
use a form to do so? If that's true, then you can't do it. It's like trying
to write a book without paper. The words have to be put on something so you
can read them. They can't just float in space. The viewer has to be hosted
within a form to run. However, I don't understand why having a generic form
with a generic viewer control that is passed a report object would be a
problem. I guess you are just trying to streamline things by eliminating the
form?
Re parameters, again I'm a little confused. It's perfectly feasible to
create a generic dialog box that takes input from the user and sends it to
the report object. To make the dialog box specific to the individual report
parameters, you have to loop through the parameter collection and examine
each parameter's properties to find out what type of paramter it is, its
name and its prompt message.
HTH,
Brian Bischof
http://www.crystalreportsbook.com/123aspx.asp
A Crystal Reports.NET book for programmers? Its here!
* Covers ASP.NET and Windows Forms
* Gives complete code listings in VB.NET and C#
* Connect to ADO.NET, XML, DataGrids, Blobs
* Modify parameters during runtime
* Maps out the complex ReportDocument object model
* Alerts you to the bugs and how to get around them
* Shows how to perform runtime customization
"Michael" <use4forums@yahoo.com> wrote in message
news:8b027d12.0405140919.7025b9a3@posting.google.com...
> Brian,
>
> Thanks for the insight. I've tried those, and they work great.
> However, most of the reports requires some of interaction with user
> and pass parameters to the report. Due to resource limitation, the
> choice is either creating WinForm for the report which required user
> interaction, or using generic CR parameter dialog. The first choice
> involves more resources and time which we don't have now. Thus, I am
> exploring if there is a way to launch the CR without the Form. It's as
> simple as "why one more hop?". Is this feasible? If it is feasible,
> can you point me to the right direction or sample as how-to.
>
> Of course, there is UI concern of generic CR Parameter dialog box. I
> am having problem to show the custom Prompting Text in .NET WinForm
> even though I do set it in CR v10(but that's not this thread topic,
> but if you have insight on that issue that's great). :-)
>
> Thanks for the help,
> MichaelJ
>
>
>
> "Brian Bischof" <BrianNoSpam@BischofSystems.com> wrote in message
news:<ODjgaGROEHA.640@TK2MSFTNGP12.phx.gbl>...
> > Why are you creating a form for hundreds of reports? Is anyone
actually
> > going to be looking at them? Off the top of my head, I can think of
two
> > reasons why you are asking this question.
> >
> > 1) You want to print reports in a batch mode and you are under the
> > assumption that the only way to print is by using the viewer. To print
> > reports in a batch mode, just load each report into a ReportDocument
object
> > and call the PrintToPrinter() method. This doesn't require using the
viewer
> > at all.
> >
> > 2) You think that the viewer can only print a single report (i.e.
there is
> > a one-to-one relationship). This is not true. You can have a single
form
> > with one viewer control and it can print any report. Just assign the
report
> > to the viewer's ReportSource property and it will preview it. To close
the
> > report set the ReportSource property to Nothing.
> >
> > If this doesn't address your question, then please post a follow up
> > message to clarify my misunderstanding.
> >
> > HTH,
> >
> > Brian Bischof
> > http://www.crystalreportsbook.com/123aspx.asp
> >
> > A Crystal Reports.NET book for programmers? Its here!
> > * Covers ASP.NET and Windows Forms
> > * Gives complete code listings in VB.NET and C#
> > * 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
> >
> >
> >
> > "Michael" <use4forums@yahoo.com> wrote in message
> > news:8b027d12.0405130603.60bedfb1@posting.google.com...
> > > Is there a way to display Crystal Report file without depending on
the
> > > WinForm with CrystalReportViewer control in it, such as evoke the
> > > Crystal Report engine directly or something like that?
> > >
> > > I am trying to find way to avoid creating Form for each report(out
of
> > > a couple of hundreds reports).
> > >
> > > What is the best practice of solving this? Has someone done this
> > > before, and how to?
- Next message: Abdolhosein Vakilzadeh Ebrahimi: "Re: Summary of data not in range of SELECT EXPERT"
- Previous message: Bob Holmes: "Re: Running Total"
- In reply to: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Next in thread: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Reply: Michael: "Re: is CrystalReportViewer the only way to display Crystal Report file from .NET WinForm?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|