943,876 Members | Top Members by Rank

Ad:
Sep 14th, 2007
0

PrintReport method of Crystal Report viewer 11 failed

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 3
Light Poster
kshrini is offline Offline
45 posts
since Jun 2007
Sep 14th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

Please post what exactly is the error that you are facing.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Sep 17th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

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.
Reputation Points: 10
Solved Threads: 3
Light Poster
kshrini is offline Offline
45 posts
since Jun 2007
Sep 18th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

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
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Sep 18th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

i want to do a project for my III bsc computer science using vb.net...
plz tell me information about that...
Reputation Points: 10
Solved Threads: 1
Newbie Poster
krishna_2007 is offline Offline
2 posts
since Sep 2007
Sep 18th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

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...
Reputation Points: 10
Solved Threads: 1
Newbie Poster
krishna_2007 is offline Offline
2 posts
since Sep 2007
Sep 19th, 2007
0

Re: PrintReport method of Crystal Report viewer 11 failed

what project?
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Help!!
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Insert DATE in .dbf - file From Vb6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC