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

Recommended Answers

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

Jump to Post

i use datareport instead of crystal report, would you like to try this one? then click here http://www.martin2k.co.uk/forums/index.php?act=Attach&type=post&id=1134

Jump to Post

All 6 Replies

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.