cancel
Showing results for 
Search instead for 
Did you mean: 

ReportDocument.PrintToPrinter in CR12

jorge_rocha
Participant
0 Kudos

Hi,

i have a big problem, in web application using vb.net 2005 and CR 12 Dev.

when i execute te line:

ReportDocument.PrintToPrinter

the web service stop ! With a try catch doesnu2019t give a error, simples stop.

This workers fine in CR 11 SP2

Any ideas ?

Thanks

Jorge Rocha

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

First, make sure you are using CR 2008 (12) SP0. The version of the CR should be 12.0.0.683 or higher.

Next, ensure that the assemblies you are referencing are version 12.0.2000.0

If the above checks out, does the app work without going through the service?

jorge_rocha
Participant
0 Kudos

yes, the version is 12.0.2000.0

I'm using VS2005, Vista Pro with IIS7.

i tried in win2003 and is the same

former_member183750
Active Contributor
0 Kudos

What is the version of Crystal Reports (Help | About)?

Does the app work without going through the service?

jorge_rocha
Participant
0 Kudos

CR 12? 12.0.0.549

Yes works fine in winforms.

in web services (asp.net ) doesn't work

Former Member
0 Kudos

Have you allowed popups and enabled the Active X from the browser?

jorge_rocha
Participant
0 Kudos

More Info:

Try

oRpt1.Load(Nome_Mapa, OpenReportMethod.OpenReportByDefault)

Catch ex As Exception

WebConfig.Erro = "RPT ERRO carregar mapa: " & ex.Message

Return False

End Try

i received an access denied in win2003

or

oRpt1.PrintToPrinter(1, False, 0, 0)

crachs

former_member203619
Contributor
0 Kudos

It could be that the account your web app is running under is being denied permission to a folder (such as the windows temp folder)

To check this, go into IIS Manager, and change the account that the application context for your app is running under to local administrator. If it is a file permissions error, then this will prove it.

If that does fix it, you can then run filemon from www.sysinternals.com to determine the exact folder that the permissions problem is occurring on.

Shawn

jorge_rocha
Participant
0 Kudos

Hi, thanks for the support,

I install a virtual machine and install de VS2005 with crystal reports and works fine.

I will try remove the CR12 and install again.. to see. If doesn't work, i will install the vista again

The process w3u2026 stop when I load the report not on printeru2026 In the first place, I cannot see it, but with iis debug and running gradually slowly, I realize thatu2026

Again, thanks to everybody u2026

jorge_rocha
Participant
0 Kudos

hi,

this post is only the say after install CR 12 works fine again..

thank you all

Jorge Rocha

Former Member
0 Kudos

I am having similar issue. I am not using any subreports at all; just trying to print one report using PrintToPrinter command. This works fine from within my development environment; however, when I deploy it on the server using the merge modules, it hangs in the PrintToprinter function forever. Any ideas?

0 Kudos

Hi Faisal,

Your issue is not related. Search on other install issues. lots posted.

This has been marked as closed so no one is going to look at it or answer your question since it's un-related.

Thank you

Former Member
0 Kudos

Hi Don,

Thanks for your reply. I think it is the same issue where application hangs in the PrintToPrinter and never returns. I do not think this is installation or deployment related at all. There are numerous people having the same issue without any resolution posted. If you know of any posts that resolve this issue, please point me to those posts.

Regards,

Faisal

Edited by: Faisal Ali on Dec 22, 2008 8:00 PM

former_member183750
Active Contributor
0 Kudos

These issues are quite individual and as Don, I would really recommend in starting a new thread. There are solutions, but there is not a "one fits all". But, it's up to you...

Ludek

Answers (0)