954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PrintReport method of Crystal Report viewer 11 failed

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

kshrini
Light Poster
45 posts since Jun 2007
Reputation Points: 10
Solved Threads: 3
 

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

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

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.

kshrini
Light Poster
45 posts since Jun 2007
Reputation Points: 10
Solved Threads: 3
 

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

jireh
Posting Whiz
316 posts since Jul 2007
Reputation Points: 11
Solved Threads: 49
 

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

krishna_2007
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 1
 

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...

krishna_2007
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 1
 

what project?

jireh
Posting Whiz
316 posts since Jul 2007
Reputation Points: 11
Solved Threads: 49
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You