
Crystal Reports printing through VB
The quick answer for just one simple report is to place the crystal reports
control on your form. Once you have done that, you click with your right
mouse button on the crystal reports control and choose "crystal properties"
from the popup menu. Associate the report in the crystal reports properties
by using the 'ReportFileName' field and browsing for your report, or typing
the report path and file name in the text box.
You would then create a button and on the click event you would call the
crystal report print action as:
CrystalReport1.Action = 1
(this sends the report directly to the printer, however, I suggest that in
the crystal properties, you select the option to send the report to a
window. That will give the user an opportunity to view the report first and
either print it or save it to a text file).
Hope this helps.
Dawn
You associate the report you created to the
Quote:
>Can someone help
>I am trying to use the Crystal Reports in Visual Basic to print a report
>How can i code this in VB 5.0
>Can i create a button to print it by clicking the button ?
>In the tool BAR there is Crystal Preort 4.6 control How can i use this
>to print a report based in a Query from an ACCESS Database.
>Any help woulfd be appreciated
>Thanks
>Jawahar