View Single Post
  #8 (permalink)  
Old January 23rd, 2006, 02:56 AM
nalla nalla is offline
Friend of Wrox
Points: 464, Level: 7
Points: 464, Level: 7 Points: 464, Level: 7 Points: 464, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Dec 2005
Location: Colombo, , Sri Lanka.
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla

Hi Marcogol,
Follow these steps and tell me where you fail? (if needed)

(1) Create the report using crystal reports inside a folder called reports in your application path. Make sure your report is working properly without any bugs. (you can do this by refreshing report's data)
(2) Add a crystal report contrroller on your vb form. (if you can't see crystal report control in your tollbox, go to Project-->Components-->Crystal Report Control to add crystal report control to your toolbox)
(3) In your vb code,

    Private Sub cmdPrint_Click()
        ' Assign report name
        CrystalReport1.ReportFileName=App.Path & "\Report1.rpt"
        ' command to display the report
        ' Set window state and other properties laso
    End Sub

* Note: CrystalReport1 - Crystal report control name
         Report1.rpt - crystal report name which contain in reports folder

nalaka hewage
Reply With Quote