PrintReport method of Crystal Report viewer 11 failed

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jun 2007
Posts: 44
Reputation: kshrini is an unknown quantity at this point 
Solved Threads: 3
kshrini kshrini is offline Offline
Light Poster

PrintReport method of Crystal Report viewer 11 failed

 
0
  #1
Sep 14th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,146
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #2
Sep 14th, 2007
Please post what exactly is the error that you are facing.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 44
Reputation: kshrini is an unknown quantity at this point 
Solved Threads: 3
kshrini kshrini is offline Offline
Light Poster

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #3
Sep 17th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 43
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #4
Sep 18th, 2007
i use datareport instead of crystal report, would you like to try this one? then click here http://www.martin2k.co.uk/forums/ind...e=post&id=1134
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 2
Reputation: krishna_2007 is an unknown quantity at this point 
Solved Threads: 1
krishna_2007 krishna_2007 is offline Offline
Newbie Poster

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #5
Sep 18th, 2007
i want to do a project for my III bsc computer science using vb.net...
plz tell me information about that...
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 2
Reputation: krishna_2007 is an unknown quantity at this point 
Solved Threads: 1
krishna_2007 krishna_2007 is offline Offline
Newbie Poster

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #6
Sep 18th, 2007
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...
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 43
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: PrintReport method of Crystal Report viewer 11 failed

 
0
  #7
Sep 19th, 2007
what project?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 4069 | Replies: 6
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC