c# windows form cyrstal reports

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

In my ASPNet C# Windows Form, how do I open a Crystal Report without using a
Crystal Report Viewer? And in this situation, how do I pass parameter
value?
Thanks for help.

Jason
 
Jason,

Do you mean you want to open it in the same window that you are showing
from your ASP.NET page, or you don't want to use the Crystal Report Viewer
at all? If it is the former, then you can just embed the Crystal Report
control (I believe there is one) in the form. If it is the latter, then I
don't think you can do it, as you need the viewer to view the reports.

Also, if it is the former, you will have to have the crystal report dlls
installed on the local client machine.

Hope this helps.
 
Hi,

I do not quite understand what you want, first you have a asp.net or a
windows app?

You do need a viewer , at least AFAIK. what you can do is make it not
visible. but then, what is the point of doing this?

I do the above when I want to export a report ( to .pdf, etc ), is this your
case?

cheers,
 
Thanks Nicholas.
I want my MyCrystalReport to be shown indepently, like a big windows form,
not like within a frame in a Windows Form.
Cuz now the MyCrystalReport looks like a fram in MyWinForm, and that report
is restricted to the size of MyWinForm,
this is not convient.




Nicholas Paldino said:
Jason,

Do you mean you want to open it in the same window that you are showing
from your ASP.NET page, or you don't want to use the Crystal Report Viewer
at all? If it is the former, then you can just embed the Crystal Report
control (I believe there is one) in the form. If it is the latter, then I
don't think you can do it, as you need the viewer to view the reports.

Also, if it is the former, you will have to have the crystal report
dlls installed on the local client machine.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jason Huang said:
Hi,

In my ASPNet C# Windows Form, how do I open a Crystal Report without
using a Crystal Report Viewer? And in this situation, how do I pass
parameter value?
Thanks for help.

Jason
 
Thanks Ignacio.
I apologize that I didn't make myself clear.
I am coding on Microsoft C#.Net Windows Form project, and I am making a
report MyReport using Crystal Report.
Now MyReport is within MyWinForm, and MyReport look likes a frame in
MyWinForm, so it is restricted to the size of MyWinForm. So I'm thinking if
I can have my MyReport shows up like an indepent windows form, not like a
frame.
That is my point.
 
Hi,

You need to use the viewer no matter what, what you can do is customize it,
you could for example remove the drilling options what you will find in the
left panel, etc.
You have to play with the different options of the control itself.

Also is a good idea to create a new form with the viewer being the sole
control in the page.


cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top