Dear All,

I'm developing an application in visual basic 6.0. I'm using Crystal Report 11 developer. I've taken Report Viewer using which I can able to view the report but PrintReport method gives error. Anybody has solution for this?

Shrinivas

Please post what exactly is the error that you are facing.

This was the code in Form_Load that gives the error:

'Assign Report source & view
CrystalActiveXReportViewer1.ReportSource = m_CrRep

'For printing
If g_boolPrintReport Then
CrystalActiveXReportViewer1.PrintReport
Unload Me
Else
CrystalActiveXReportViewer1.ViewReport
End If

I've modified it to:

'Assign Report source & view
CrystalActiveXReportViewer1.ReportSource = m_CrRep
CrystalActiveXReportViewer1.ViewReport
DelayWait

'For printing
If g_boolPrintReport Then
Me.Hide
CrystalActiveXReportViewer1.PrintReport
Delay 100
Unload Me
End If

Now I don't get the error. If there is another method then please let me know.
Thank you.
Regards,
Shrinivas.

i want to do a project for my III bsc computer science using vb.net...
plz tell me information about that...

I want to do a project for my III yr comp. Sc.... plz tell me which title and language will be useful for my projects...

what project?