Home > Archive > Visual Basic Crystal Reports > May 2005 > preview
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| vgarcia 2005-05-25, 4:00 pm |
| Hello. I want to know if is possible to use preview in crystal report .net,
and if it is possible how.
| |
| Charles A. Lackman 2005-05-25, 4:00 pm |
| Yes,
Place a Crystal Report Viewer on your form. Then Implement the following
code.
Dim TheCrystal as New MyCrystalReport
TheCrystal.SetDataSource(ADataset) ' If using a dataset to populate the
report
Form1.CrystalReportViewer1.ReportSource = TheCrystal
Form1.ShowDialog()
When using Crystal Reports and Datasets you have to create a dataset from
inside the VS designer then populate the dataset before you send it to the
report. After you have created the dataset, Crystal Reports will allow you
to see it inside the designer and place the fields onto the Crystal Report.
Chuck
"vgarcia" <toston_enterprises@hotmail.com> wrote in message
news:%234x3RPSYFHA.3356@TK2MSFTNGP15.phx.gbl...
Hello. I want to know if is possible to use preview in crystal report .net,
and if it is possible how.
| |
| vgarcia 2005-05-26, 9:00 am |
| Thaks a lot
"Charles A. Lackman" <Charles@CreateItSoftware.net> escribió en el mensaje
news:u6iK3lUYFHA.1368@tk2msftngp13.phx.gbl...
> Yes,
>
> Place a Crystal Report Viewer on your form. Then Implement the following
> code.
>
> Dim TheCrystal as New MyCrystalReport
> TheCrystal.SetDataSource(ADataset) ' If using a dataset to populate the
> report
>
> Form1.CrystalReportViewer1.ReportSource = TheCrystal
>
> Form1.ShowDialog()
>
> When using Crystal Reports and Datasets you have to create a dataset from
> inside the VS designer then populate the dataset before you send it to the
> report. After you have created the dataset, Crystal Reports will allow
you
> to see it inside the designer and place the fields onto the Crystal
Report.
>
>
>
> Chuck
>
>
>
> "vgarcia" <toston_enterprises@hotmail.com> wrote in message
> news:%234x3RPSYFHA.3356@TK2MSFTNGP15.phx.gbl...
> Hello. I want to know if is possible to use preview in crystal report
..net,
> and if it is possible how.
>
>
>
|
|
|
|
|