Professional Documents
Culture Documents
Crystal Reports Notes
Crystal Reports Notes
Step 6 a Expand database fields a table ( in this case it is 'FactCurrencyRate' table). Now you can drag
and drop the fields on the report.
Step 8:- Now we need to go to code behind and specify the report source. That's it now compile and run
the project you can see your report live in action.
Some times we want to accept input parameter and the report works according to the parameter. To add
a input parameter go to field explorer , go to parameter fields , right click , create parameter and you
should be popped with a dialog box as shown in the figure 'Parameter field'. Give a name to the
parameter , type and that's it you are in action.
There are two way of using the export option one is when we display a report using crystal report viewer
you can see a export icon as shown in figure 'Export' below. You can the select in which format you want
to export.
Report.PrintOptions.PrinterName = "MyPrinter"
Report.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA4
Report.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape
Report.PrintToPrinter(1, True, 1, 3)